Zero address not checked on function reassignGlobalAdmin() #65
Labels
1 (Low Risk)
Assets are not at risk. State handling, function incorrect as to spec, issues with comments
bug
Something isn't working
duplicate
This issue or pull request already exists
Handle
BouSalman
Vulnerability details
Vulnerability Description
On contract Permissions, the function reassignGlobalAdmin is used to assign global admin However No checking is done on the _admin parameter.
Impact
locking.
Proof of Concept
https://github.com/code-423n4/2021-11-malt/blob/c3a204a2c0f7c653c6c2dda9f4563fd1dc1cecf3/src/contracts/Permissions.sol#L77
Tools Used
manual code review.
Recommended Mitigation Steps
use require() statement to check for address(0).
The text was updated successfully, but these errors were encountered: