Skip to content
Business logic Audit finding Intermediate

Proposals can be bricked and Auctions stalled by bad settings

The protocol did not validate governance and auction settings, so values such as quorumThresholdBps above 10,000 or a very large auction duration could make proposals impossible to create or execute and stop auctions from ending. An attacker or careless founder could set such values, potentially bricking governance or stalling NFT minting.

chatch Follow

Originally disclosed on Code4rena

Submitted by chatch, also found by 0x4non, ak1, ayeslick, Chom, fatherOfBlocks, hyh, R2, rvierdiiev, scaraven, simon135, and zzzitron

Governor.sol#L588

The protocol assumes founders and proposals will set sane settings. However there are some settings that if set incorrectly will block proposals from being created or succeeding and block auctions from completing.

This vulnerability has a low likelihood of occurrence as the outcome is not in the interest of the community. However the possibility exists if there is some misunderstanding or miscalculation. If a bad setting is allowed the impact is high.

Proof of Concept

Bricking governance proposals

Governor settings.quorumThresholdBps > 10_000

If quorumThresholdBps is set above 10_000 then it would be impossible to get enough votes to succeed.

Without being able to execute a proposal the setting itself could never be fixed.

Governor settings.proposalThresholdBps > 10_000

If proposalThresholdBps is set above 10_000 then it would be impossible to submit a proposal.

Without being able to submit a proposal the setting itself could never be fixed.

Stalling a governance proposal

Treasury settings.delay

A very large value for delay would prevent a proposal from being executed.

For example 1000 years easily fits into delay and would result in a 1000 year wait before being able to execute.

A governance proposal could fix this property for future proposals but any proposal created with the large delay would remain stuck.

Stalling the auction

Auction settings.duration

The duration value is in seconds and any value up to type(uint40).max is permitted.

That is 1099511627775 seconds which is > 48000 years.

A large value like this would stop the auction from ever ending and thus stop new NFTs from being minted.

A governance proposal could fix this setting but ideally a very large duration would be blocked.

Auction settings.timeBuffer

Similar to duration but applies to the auction endTime extention.

So the auction could be extended a number of years for example.

Recommended Mitigation Steps

Implement reasonable range bounds reverting where appropriate. In particular for the above apply:

  • Governor settings quorumThresholdBps <= 10_000
  • Governor settings proposalThresholdBps <= 10_000
  • Treasury settings delay <= 6 months
  • Auction settings duration <= 6 months
  • Auction settings timeBuffer <= 6 months

Add these checks to the initialize() functions and in the setter / update functions where these individual settings properties can be updated.

Alex the Entreprenerd (judge) commented:

Lack of validation looks right, not convinced about severity if behind timelock.

Alex the Entreprenerd (judge) commented:

The warden has shown how, due to a lack of rational minimums and maximums, governance can be griefed if not effectively bricked.

Because this is contingent on allowing “irrational” values, I agree with Medium Severity.

Mitigation would require adding acceptable minimums and maximums, or forcing the deployer to set those in a rational way that is transparent to end users.

iainnash (Nouns Builder) confirmed


The original report as published on Code4rena, by chatch. Images and videos are our own copies; raw HTML is shown as text. View it on Code4rena.

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

Root cause

Likely the lack of validation on governance and auction settings, allowing values outside sensible ranges.

Impact

If bad settings are allowed, governance could be bricked or auctions stalled, but the report notes this has a low likelihood because it is not in the community's interest.

What the attacker needed

A bad setting is set by a founder or proposal

The fix

The settings should be fixed by adding reasonable minimum and maximum bounds in the initialize and setter functions.

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.

This report is about settings that control how a voting system and an auction work. If someone sets a number too high, like requiring more votes than can ever exist, the system gets stuck and no one can fix it because fixing it also requires a vote. The report suggests adding limits so such bad values are rejected.

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.

More from Nouns Builder contest

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.