Open code423n4 opened 2 years ago
Duplicate of #247 (#74 for booster, this is for voterProxy)
I fail to see how the set of contracts would stop working when setting certain roles to address 0. You would still be able to withdraw and claim all rewards until that point.
Because of that I'm downgrading to QA
Lines of code
https://github.com/code-423n4/2022-05-vetoken/blob/main/contracts/Booster.sol#L123-L127 https://github.com/code-423n4/2022-05-vetoken/blob/main/contracts/VoterProxy.sol#L62-L65 https://github.com/code-423n4/2022-05-vetoken/blob/main/contracts/VeAssetDepositor.sol#L53-L57
Vulnerability details
Impact
The setter functions don't verify the address should not be equal to
address(0)
. The protocol will be frozen if setXXX toaddress(0)
.Proof of Concept
There are some
setOwner
orsetFeeManager
in the protocol. If the owner is set toaddress(0)
accidentally, the contract will be frozen.Tools Used
None
Recommended Mitigation Steps
Check address parameters
!= address(0)