52393 sc low burns blocked by both sides whitelist with zero address exclusion when restrictions are enabled
Description
Summary
Vulnerability Detail
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
Recommendation
Proof of Concept
Previous51887 sc medium safeapprove will cause revert of usdt and similar erc20 tokenNext51159 sc insight high gas iterative date calculations in datetime sol
Was this helpful?