52843 sc low the zero address cannot be whitelisted which means during restrictions minting and burning cannot work
Description
Brief/Intro
Vulnerability Details
function addToWhitelist(
address account
) external onlyRole(MANAGER_ROLE) {
if (account == address(0)) {
revert InvalidAddress();
}
WhitelistStorage storage ws = _getWhitelistStorage();
if (ws.isWhitelisted[account]) {
revert AlreadyWhitelisted(account);
}
ws.isWhitelisted[account] = true;
ws.whitelistedAddresses.add(account);
emit WhitelistStatusChanged(account, true);
emit AddedToWhitelist(account);
}Impact Details
References
Proof of Concept
Previous52221 sc insight hardcoded supra subscription wallet can freeze spinNext51589 sc high tokencreator retains upgrade rights fix remains insufficient finding 01 immunefi report
Was this helpful?