Nouns Builder contest - Lead_Belly's results

A permissionless, governed protocol to deploy nouns-style DAOs complete with treasury, generative collections, and governance mechanisms.

General Information

Platform: Code4rena

Start Date: 06/09/2022

Pot Size: $90,000 USDC

Total HM: 33

Participants: 168

Period: 9 days

Judge: GalloDaSballo

Total Solo HM: 10

Id: 157

League: ETH

Nouns Builder

Findings Distribution

Researcher Performance

Rank: 142/168

Findings: 1

Award: $60.77

🌟 Selected for report: 0

🚀 Solo Findings: 0

Lines of code

https://github.com/eth-hacker/2022-09-nouns-builder/blob/7e9fddbbacdd7d7812e912a369cfd862ee67dc03/src/auction/Auction.sol#L344-L363

Vulnerability details

Impact

If the ERC20 transfer fails, in the createBid() function the "previous bidder" would not be refunded leading to a loss of funds. Also in the _settleAuction() function if the transfer fails the treasury would not receive payment, but the NFT would still be transferred to the highest bidder.

Proof of Concept

The createBid() function uses the _handleOutgoingTransfer() and it is also used in the settleCurrentAndCreateNewAuction() and does not check the return value - whether it has succeeded:

Tools Used

vscode

Add a check that verifies that the transfer has succeeded.

#0 - GalloDaSballo

2022-09-19T21:27:08Z

WETH never returns false

AuditHub

A portfolio for auditors, a security profile for protocols, a hub for web3 security.

Built bymalatrax © 2024

Auditors

Browse

Contests

Browse

Get in touch

ContactTwitter