A proposal can be vetoed before it’s created #440
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
duplicate
This issue or pull request already exists
sponsor disputed
Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue
Lines of code
https://github.com/code-423n4/2022-09-nouns-builder/blob/main/src/governance/governor/Governor.sol#L387
Vulnerability details
Impact
Currently, there is nothing preventing a malicious vetoer from vetoing a proposal before it is created.
Proof of Concept
A proposal is discussed
A proposer is set to call propose on the Governor contract
The vetoer is opposed to this proposal
The vetoer copies the proposal hash and vetoes the proposal before it can be created so that it’s dead on arrival.
Recommended Mitigation Steps
Check if the proposal exists before vetoing.
The text was updated successfully, but these errors were encountered: