Nouns DAO contest - Trabajo_de_mates's results

A DAO-driven NFT project on Ethereum.

General Information

Platform: Code4rena

Start Date: 22/08/2022

Pot Size: $50,000 USDC

Total HM: 4

Participants: 160

Period: 5 days

Judge: gzeon

Total Solo HM: 2

Id: 155

League: ETH

Nouns DAO

Findings Distribution

Researcher Performance

Rank: 119/160

Findings: 1

Award: $35.44

🌟 Selected for report: 0

🚀 Solo Findings: 0

MSG.SENDER != ADDRESS(0) IRRELEVANT CHECK

Msg.sender can never be address(0) therefore in contract NounsDAOLogicV2.sol line 819 require(msg.sender == pendingAdmin && msg.sender != address(0) there is an error checking it, what needs to be check is that newPendingAdmin != address(0) when proposing a new admin on function _setPendingAdmin instead.

Error:

function _setPendingAdmin(address newPendingAdmin) external { require(msg.sender == admin, 'NounsDAO::_setPendingAdmin: admin only');}

function _acceptAdmin() external { require(msg.sender == pendingAdmin && msg.sender != address(0), 'NounsDAO::_acceptAdmin: pending admin only');

Fix: function _setPendingAdmin(address newPendingAdmin) external { require(msg.sender == admin, 'NounsDAO::_setPendingAdmin: admin only'); require(newPendingAdmin != address(0), 'NounsDAO::_setPendingAdmin: newPendingAdmin cannot be 0);

function _acceptAdmin() external { require(msg.sender == pendingAdmin, 'NounsDAO::_acceptAdmin: pending admin only');

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