51502 sc low enabling transfer restrictions permanently blocks minting and burning
Description
Brief/Intro
Vulnerability Details
function isTransferAllowed(address from, address to, uint256 /*amount*/ ) external view override returns (bool) {
WhitelistStorage storage ws = _getWhitelistStorage();
// If transfers are unrestricted, allow all transfers
if (ws.transfersAllowed) {
return true;
}
// Otherwise, only allow if both the sender and receiver are whitelisted
return ws.isWhitelisted[from] && ws.isWhitelisted[to];
}Impact Details
References
Proof of Concept
Previous49731 sc high theft on re added tokensNext52937 sc insight redundant raffle ticket balance check
Was this helpful?