Open code423n4 opened 3 years ago
Super.Propose is calling the inherited function which does have the proposal threshold check. So that's not an issue.
The voting period is low risk.
Agree that the documentation mismatching the code is a valid finding, agree with severity of Low.
Let's verify the sponsor statement:
Super.Propose is calling the inherited function which does have the proposal threshold check. So that's not an issue.
By going through the chain of inheritance we can verify that the voting threshold is indeed enforced: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/e63b09c9ad3a45484b6dc304e0e99640a9dc3036/contracts/governance/Governor.sol#L186
Handle
csanuragjain
Vulnerability details
Impact
Governor documentation requires :
Both of this condition are not fulfil in the contract
Proof of Concept
Lets navigate to contract at https://github.com/code-423n4/2021-10-union/blob/main/contracts/governance/UnionGovernor.sol
Check the function votingPeriod
As we can see contract is setting votingPeriod of 1 week even though documentation mention this to be 3 days which is wrong
Now lets check the propose function
Recommended Mitigation Steps
Add the necessary steps to enforce the voting restriction and change the voting period to 3 days