Hunt prep
Before you test Nouns Builder contest
What 33 disclosed reports say about Nouns Builder contest: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 18 | 0 | – | – | $0 |
| DoS lesson | 6 | 0 | – | – | $0 |
| Smart contracts lesson | 6 | 0 | – | – | $0 |
| Access control lesson | 3 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
ERC721Votes’s delegation disables NFT transfers and burning
The _afterTokenTransfer function should use the delegates() of the sender and recipient instead of the raw addresses.
Disclosed
-
Token:mint : infinite loop if the founders’ shares sum up to 100
The code should use `_tokenId` instead of `baseTokenId` when checking if a token is for a founder, so the loop can find a token not reserved for founders.
Disclosed
-
Quorum votes have no effect for determining whether proposal is defeated or succeeded when token supply is low
A minimum quorum votes configuration of at least 1 should be added, and when quorum() returns 0, propose should set proposal.quorumVotes to that minimum.
Disclosed
-
ERC721Votes : Token owners can double voting power through self delegation
The delegates function should be made public and used in _delegate to return the account itself when no delegate is set, preventing the zero-address subtraction skip.
Disclosed
-
Try-catch block at Auction._createAuction() will only catch string errors
Remove the Error(string memory) from the catch clause so that it catches any kind of revert.
Disclosed
-
The quorum votes calculations don’t take into account burned tokens
The calculations in governor.quorum() and governor.proposalThreshold() should be adjusted to exclude burned tokens and tokens held by the auction contract, or totalSupply should be decreased when tokens are burned.
Disclosed
-
Truncation in casting can lead to a founder receiving all the base tokens
The code should not truncate the founder percentage to uint8 when summing, or should explicitly check that each percentage is within a valid range (e.g., less than or equal to 100).
Disclosed
-
Precision is not enough for proposalThreshold and quorum. Collections with at least 20000 NFTs in total supply may have some trouble.
Increase the division precision to 1e18 to allow setting threshold to 1 for high total supply NFTs.
Disclosed
-
Auction parameters can be changed during ongoing auction
The changes should either be cached in the auction parameters or applied only to the next auction, and a timelock could be added.
Disclosed
-
State function does not require majority of votes for supporting and passing a proposal
The comparison should be changed to less-than-or-equal (`<=`) so that a tie is considered defeated, or a governance configuration should be added to specify whether a majority is required.
Disclosed
-
Creating a new governance proposal can be prevented by anyone
The proposal ID should include the proposer's address or a per-account nonce so that identical proposals from different senders do not collide.
Disclosed
-
Tokens without properties can be minted and cannot be rendered
The onMinted function of MetadataRenderer should check that properties.length is greater than zero before allowing a mint.
Disclosed
-
Token: Founder percentages not always respected
The distribution scheme should be changed to mint founder tokens only when tokenId % 100 == 0, ensuring the actual percentages match the desired percentages.
Disclosed
-
Attackers can increase voting power by incentivizing
The report suggests adding a blacklist check and a function to remove voting power, but the judge and sponsor note that this introduces centralisation and may not be effective; the sponsor states that veto power is the intended mitigation.
Disclosed
-
Governor - Quorum could be less than intended
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.
Disclosed