reassignGlobalAdmin() Lack of Zero Address Check #113
Labels
1 (Low Risk)
Assets are not at risk. State handling, function incorrect as to spec, issues with comments
bug
Something isn't working
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
Meta0xNull
Vulnerability details
Impact
A wrong user input or wallets defaulting to the zero addresses for a missing input can lead to the contract needing to redeploy or Users'FUND Locked inside the Contract.
Proof of Concept
https://github.com/code-423n4/2021-11-malt/blob/main/src/contracts/Permissions.sol#L63-L77
Tools Used
Manual Review
Recommended Mitigation Steps
requires Addresses is not zero.
require(_admin != address(0), "Address Can't Be Zero")
The text was updated successfully, but these errors were encountered: