Skip to content
Business logic Audit finding Intermediate

Commission on removed tokens is unclaimable

After a reward token is removed, any commission already accrued for that token cannot be claimed because the claim function rejects tokens that are no longer active. A validator admin therefore loses access to earned commission, which stays stuck in the contract.

axolot Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

53025 sc high commission on removed tokens is unclaimable

Submitted on Aug 14th 2025 at 17:20:20 UTC by @axolot for Attackathon | Plume Network

Description

Brief/Intro

After a reward token is removed via removeRewardToken, any already accrued validator commission for that token becomes unclaimable. requestCommissionClaim rejects the token because _validateIsToken currently requires isRewardToken[token] == true. Commission is hence stuck.

Vulnerability Details

Removing a token sets $.isRewardToken[token] = false and writes a 0-rate checkpoint. Accrued commission in $.validatorAccruedCommission[validatorId][token] remains.

But ValidatorFacet.requestCommissionClaim enforces _validateIsToken, which will revert for such token:

Solidity
   function requestCommissionClaim(
        uint16 validatorId,
        address token
    )
        external
        onlyValidatorAdmin(validatorId)
        nonReentrant
        _validateValidatorExists(validatorId)
        _validateIsToken(token) //@audit - will revert here
    {
      ...
    }

    ...

    modifier _validateIsToken(
        address token
    ) {
        if (!PlumeStakingStorage.layout().isRewardToken[token]) {
            revert TokenDoesNotExist(token);
        }
        _;
    }

This is unexpected as the token is still a historical reward token, and accrual happened until the removal point: according to the README https://github.com/plumenetwork/contracts/blob/main/plume/README.md?utm\\_source=immunefi#reward-token-lifecycle--historical-tokens

Removing a token (removeRewardToken) does not delete checkpoints. Instead it:
Records tokenRemovalTimestamps[token] = block.timestamp so future calculations cap at this moment.
Forces a final zero-rate checkpoint for each validator, guaranteeing no further accrual.
Leaves all historical checkpoints intact so users can still claim previously-earned rewards.
Users can therefore continue to claim even after a token is no longer active. View/claim helpers automatically fall back to historical calculations when isRewardToken[token] == false but isHistoricalRewardToken[token] == true.

There is no alternate path to claim that pre-removal commission.

Impact Details

The impact is freezing of the pre-removal validator commission (until the token is re-added as a reward, which defeats the purpose of removing it in the first place). This can be large for token emissions that lasted for a long time until removal.

Note that token removal is a normal operation in the reward lifecycle and does not require malicious operation from the admin.

Mitigation

{% hint style="warning" %} Allow commission claims for historical tokens: replace the _validateIsToken call in requestCommissionClaim with a check like:

require(isRewardToken[token] || isHistoricalRewardToken[token]);

and ensure accrual calculations are capped at the timestamp the reward token is removed (i.e., use tokenRemovalTimestamps[token] when computing historical accruals). {% endhint %}

Proof of Concept

PoC (steps - no code)

{% stepper %} {% step %} Run emissions for a token T long enough for a validator to accrue non-zero $.validatorAccruedCommission[id][T]. {% endstep %}

{% step %} Admin calls removeRewardToken(T). {% endstep %}

{% step %} Validator admin calls requestCommissionClaim(id, T). It reverts because _validateIsToken requires isRewardToken[T] == true.

There is no alternate route to claim the already-accrued amount. Funds are permanently stuck. {% endstep %} {% endstepper %}

The original report as published on Immunefi, by axolot. 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 commission claim function validates the token with a check that only accepts currently active reward tokens, ignoring the historical-token flag used elsewhere for past rewards.

Impact

Pre-removal validator commission is frozen and cannot be claimed unless the token is re-added, which defeats the purpose of removing it; the amount could be large for long-running emissions.

What the attacker needed

Validator has accrued commission; admin removes the reward token; no malicious action needed

The fix

The claim function should accept tokens that are either active or historical reward tokens, and accrual calculations should be capped at the token removal timestamp.

How it was found

  1. Run emissions for a token long enough for a validator to accrue non-zero commission.
  2. The admin removes that reward token.
  3. The validator admin requests a commission claim for the removed token, and the call 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 staking contract pays validators a commission in reward tokens. When the admin removes a token from the reward list, the contract still remembers the commission earned so far, but the claim function refuses to process that token because it is no longer on the active list. The earned commission is therefore locked with no other way to withdraw it.

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 axolot

View all

1 more disclosed report, 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.