code-423n4 / 2022-08-nounsdao-findings

2 stars 0 forks source link

the `vetoer` could burn the Veto Power by mistake #281

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

Lines of code

https://github.com/code-423n4/2022-08-nounsdao/blob/main/contracts/governance/NounsDAOLogicV2.sol#L839-L845

Vulnerability details

Impact

the vetoer can burn the Veto Power by mistake without invoking the _burnVetoPower()

Proof of Concept

the vetoer could make a mistake by passing address(0x0) when he tries to set a new vetoer address by invoking _setVetoer()

Recommended Mitigation Steps

Add check for address(0x0)

davidbrai commented 2 years ago

Duplicate of #315