Skip to content
Business logic Audit finding Beginner

Burns blocked by both sides whitelist with zero address exclusion when restrictions are enabled

When transfers are restricted, the whitelist check requires both sender and receiver to be whitelisted, but the zero address cannot be whitelisted, so any burn to the zero address is permanently blocked. This prevents supply reduction, fee-burning, redemption, and bridging flows that rely on burning while restrictions are active.

Khay3 Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

52393 sc low burns blocked by both sides whitelist with zero address exclusion when restrictions are enabled

Submitted on Aug 10th 2025 at 12:08:27 UTC by @Khay3 for Attackathon | Plume Network

Description

Summary

When transfersAllowed == false, WhitelistRestrictions::isTransferAllowed requires both from and to to be whitelisted. Because the zero address cannot be whitelisted, any burn (to == address(0)) is permanently disallowed under restriction. This blocks protocol flows that depend on burning (supply reduction, redemption, bridging, fee-burning) whenever restrictions are active.

Vulnerability Detail

The isTransferAllowed function enforces a strict “both-sides must be whitelisted” rule under restriction:

WhitelistRestrictions::isTransferAllowed():

Solidity
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];
}

The whitelist admin/manager cannot add the zero address, making to == address(0) (burn) impossible under restriction:

WhitelistRestrictions::addToWhitelist():

Solidity
function addToWhitelist(address account) external onlyRole(MANAGER_ROLE) {
    if (account == address(0)) {
        revert InvalidAddress();
    }
    ...
}

The batch variant also refuses to add zero (silently skipping it):

WhitelistRestrictions::batchAddToWhitelist():

Solidity
for (uint256 i = 0; i < accounts.length; i++) {
    address account = accounts[i];
    if (account == address(0)) {
        continue; // Skip zero address
    }
    ...
}

In short: isTransferAllowed enforces both from and to whitelisted while the zero address cannot be whitelisted, therefore any burn to address(0) can never satisfy the condition when restrictions are enabled.

Impact

Burns are impossible whenever restrictions are active. This prevents supply reduction, fee-burning, redemption flows that rely on burn-to-zero, and common bridge patterns that require token burns on the origin chain. Operations such as emergency redemptions or compliance-driven supply adjustments are blocked, potentially freezing required lifecycle actions and creating governance and operational risks.

If burn gating is not intended, users and integrators will experience unexplained failures in legitimate burn calls during periods when restrictions are toggled on, degrading protocol reliability.

Recommendation

{% hint style="info" %}

  • Special-case the zero address in isTransferAllowed:
    • If to == address(0) (burn), consider allowing the burn when from is whitelisted (or when the caller has ADMIN_ROLE/MANAGER_ROLE).
    • If from == address(0) (mint), likewise allow when to is whitelisted (or authorized).
  • Optionally make the rule configurable:
    • Add a mode switch (both-sides vs one-side whitelist) and explicit mint/burn exemptions.
  • Keep zero address non-whitelistable; handle exemptions in logic instead:
    • Example logic:
      • If restricted and to == address(0): return ws.isWhitelisted[from] (or role-gated).
      • If restricted and from == address(0): return ws.isWhitelisted[to] (or role-gated). {% endhint %}

Proof of Concept

<details> <summary>High level PoC: burn blocked under restriction (click to expand)</summary>

Step-by-step POC (burn blocked under restriction):

StepAdmin sets WhitelistRestrictions::setTransfersAllowed(false).StepA token integrated with ITransferRestrictions attempts to burn: from = user, to = address(0).StepisTransferAllowed(user, address(0), amount) returns ws.isWhitelisted[user] && ws.isWhitelisted[address(0)].Stepws.isWhitelisted[address(0)] is always false; zero cannot be added.StepAuthorization fails; the token’s burn pathway reverts.

Conditions to allow the issue:

  • WhitelistRestrictions::setTransfersAllowed(false) (restriction enabled).
  • Token integrates and enforces ITransferRestrictions::isTransferAllowed on burn.
  • Zero address cannot be whitelisted (addToWhitelist rejects, batchAddToWhitelist skips).
</details>

The original report as published on Immunefi, by Khay3. 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

The transfer check requires both `from` and `to` to be whitelisted, but the zero address used for burns cannot be whitelisted, so burns can never satisfy the condition.

Impact

Burns are impossible whenever restrictions are active, which could temporarily freeze funds and block supply reduction, fee-burning, redemption, and bridging flows that rely on burning.

What the attacker needed

TransfersAllowed is set to false; token enforces isTransferAllowed on burn

The fix

The zero address should be special-cased in isTransferAllowed so that burns are allowed when the sender is whitelisted (or the caller has an admin or manager role), and mints are allowed when the receiver is whitelisted.

How it was found

  1. Admin sets transfersAllowed to false.
  2. A token integrated with the restrictions attempts to burn tokens from a user to the zero address.
  3. The isTransferAllowed check returns false because the zero address is not whitelisted.
  4. The burn reverts.

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.

A whitelist is a list of allowed addresses. When restrictions are on, the contract only lets a transfer happen if both the sender and the receiver are on that list. But the special zero address, which represents burning tokens, can never be added to the list, so burning always fails while restrictions are active.

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 by Khay3

View all

3 more disclosed reports, best first.

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.