Governor - Quorum could be less than intended
The Governor contract computes the quorum threshold at proposal creation using the current total token supply, but tokens minted later in the same block can still vote, making the effective quorum lower than intended. An attacker could exploit this to pass proposals with fewer votes than required, especially early in the token lifecycle when supply is low.
Submitted by Picodes, also found by CertoraInc and Chom
There could be tokens minted between the quorum computation and the vote, which would lead to a quorum lower than intended. It could be an issue at the beginning of the Token lifecycle, when the total supply is still low.
Proof of Concept
When creating a proposal in the Governor contract, proposal.quorumVotes is computed during the propose tx. However tokens could be minted after the propose in the same block. In this case, they’ll still have a vote during the proposal due to how token.getPastVotes works, therefore the quorum will be lower than intended given the actual total supply.
Recommended Mitigation Steps
Either compute the total supply afterwards, for example at the beginning of the vote, either takes the vote with a timestamp of proposal.timeCreated - 1 to not count the block during which the tx was submitted.
Alex the Entreprenerd (judge) commented:
The Warden has shown how the quorum value can be manipulated because instead of checking for the totalSupply at time of creation, the Governor checks for a totalSupply that can change.
This is tied to the burning mechanism, so a refactor of both would be necessary.
Alternatively this could be a nofix, however admins and end users should be aware that the Quorum math will be inconsistent due to that check.
Because the quorum is tied to actions that can cause a leak of value or theft, I agree with Medium Severity.
tbtstl (Nouns Builder) acknowledged and commented:
ACK on this confusion – but this is the current behaviour of both Nouns and Lil Nouns, so I’d say it is intentional for now – we may want to adjust this in a future upgrade.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
The quorum could be lower than intended, potentially allowing proposals to pass with fewer votes than required, which the judge rated as Medium severity because it could lead to value leaks or theft.
What the attacker needed
Low total token supply; ability to mint tokens after proposal creation
The fix
The total supply should be computed at the beginning of the vote, or the vote should use a timestamp of proposal.timeCreated - 1 to exclude the block in which the proposal was created.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
In many voting systems, a minimum number of votes (called a quorum) is needed for a decision to count. This report shows that the quorum was calculated too early, so if new voting tokens were created right after, the real number of votes needed became smaller than it should be. That could let a small group pass proposals that should have failed.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.