Token freezing via whitelist restriction bypass
The whitelist restriction contract does not treat the zero address as a special case for minting and burning, so when transfers are restricted, mint and burn operations fail because the zero address is never whitelisted. An attacker could exploit this to permanently freeze token supply adjustments, making the token economically unusable.
Originally disclosed on Immunefi
- Disclosed after under an hour
51451 sc low token freezing via whitelist restriction bypass
Submitted on Aug 2nd 2025 at 23:27:29 UTC by @technicalattri for Attackathon | Plume Network
- Report ID: #51451
- Report Type: Smart Contract
- Report severity: Low
- Target: https://github.com/immunefi-team/attackathon-plume-network/blob/main/arc/src/restrictions/WhitelistRestrictions.sol
- Impacts:
- Permanent freezing of funds
Description
The WhitelistRestrictions contract does not account for the zero address (address(0)) when transfersAllowed is set to false. As a result, minting and burning tokens becomes permanently blocked, even when user addresses are correctly whitelisted.
Impact: An attacker can exploit this vulnerability to permanently freeze core token functionality by bypassing whitelist restrictions on the zero address. Once transfer restrictions are enabled by the admin, any token operation involving the zero address (such as minting from address(0) or burning to address(0)) fails because the zero address is never whitelisted due to an intentional continue statement in batchAddToWhitelist(). Therefore, minting new tokens or burning existing ones becomes impossible, halting token supply adjustments and potentially rendering the token ecosystem economically unusable.
Recommendation
Update isTransferAllowed to handle mint and burn cases explicitly, instead of blindly requiring both from and to to be whitelisted:
{% code title="Suggested fix" %}
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];
}
{% endcode %}
This ensures mint and burn operations depend only on the user being whitelisted, not address(0).
Proof of Concept
Admin enables transfer restrictions:
setTransfersAllowed(false);
{% stepper %} {% step %}
Attack step
Attempt to whitelist multiple addresses:
batchAddToWhitelist([0xAAA, 0xBBB, address(0)]);
The function silently skips the zero address:
if (account == address(0)) {
continue;
}
As a result, address(0) is never whitelisted.
{% endstep %}
{% step %}
Consequence
address(0) is critical for token supply operations:
- Minting:
from == address(0) - Burning:
to == address(0)
Because the current logic requires both parties to be whitelisted, mint/burn transfers are blocked. {% endstep %}
{% step %}
Example failing check
When ArcToken attempts to burn tokens:
isTransferAllowed(user, address(0), amount) // → returns false
Since address(0) is never whitelisted, the call fails, making minting/burning impossible.
{% endstep %}
{% endstepper %}
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the `isTransferAllowed` function requires both `from` and `to` to be whitelisted without special-casing the zero address used for minting and burning.
Impact
Once transfer restrictions are enabled, minting and burning become impossible, permanently freezing token supply adjustments and potentially rendering the token ecosystem economically unusable.
What the attacker needed
Admin enables transfer restrictions; zero address is not whitelisted
The fix
The `isTransferAllowed` function should be updated to handle mint and burn cases explicitly, checking only the user's whitelist status when one side is the zero address.
How it was found
- Admin enables transfer restrictions by calling setTransfersAllowed(false).
- Attempt to whitelist multiple addresses including the zero address via batchAddToWhitelist.
- The function silently skips the zero address, so it is never whitelisted.
- When a mint or burn is attempted, isTransferAllowed returns false because the zero address is not whitelisted, blocking the operation.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This is a smart contract bug. The contract checks if both the sender and receiver of a token transfer are on a whitelist. But when new tokens are created (minted) or destroyed (burned), one side is a special 'zero address' that is never on the whitelist. So those operations always fail, and the token can no longer be created or destroyed.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.