51451 sc low token freezing via whitelist restriction bypass
Description
Recommendation
function isTransferAllowed(address from, address to, uint256) external view override returns (bool) {
WhitelistStorage storage ws = _getWhitelistStorage();
if (ws.transfersAllowed) return true;
// Handle minting and burning
if (from == address(0)) return ws.isWhitelisted[to]; // Minting
if (to == address(0)) return ws.isWhitelisted[from]; // Burning
return ws.isWhitelisted[from] && ws.isWhitelisted[to];
}Proof of Concept
Previous51910 sc low inconsistent yield token transfer logic causes permanent loss of yield in distributeyield Next51201 sc low contracts without payable entry points cannot withdraw nor claim rewards
Was this helpful?