Skip to content
Business logic Audit finding Intermediate

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.

technicalattri Follow

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

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" %}

Solidity
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:

Solidity
setTransfersAllowed(false);

{% stepper %} {% step %}

Attack step

Attempt to whitelist multiple addresses:

Solidity
batchAddToWhitelist([0xAAA, 0xBBB, address(0)]);

The function silently skips the zero address:

Solidity
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:

Solidity
isTransferAllowed(user, address(0), amount) // → returns false

Since address(0) is never whitelisted, the call fails, making minting/burning impossible. {% endstep %} {% endstepper %}

The original report as published on Immunefi, by technicalattri. Images and videos are our own copies; raw HTML is shown as text. View it on Immunefi.

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

  1. Admin enables transfer restrictions by calling setTransfersAllowed(false).
  2. Attempt to whitelist multiple addresses including the zero address via batchAddToWhitelist.
  3. The function silently skips the zero address, so it is never whitelisted.
  4. 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.

More from Plume Network

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.