Skip to content
Business logic Audit finding Intermediate

Validator will lose comission

The contract removes a reward token and settles the validator's accrued commission, but the claim function rejects any token that is no longer a current reward token. A validator therefore cannot withdraw commission earned on a token that was later removed.

shadowHunter Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

50409 sc high validator will lose comission

Submitted on Jul 24th 2025 at 10:46:43 UTC by @shadowHunter for Attackathon | Plume Network

Description

Brief/Intro

It seems that currently the contract does not provide any way for a Validator to claim commission on removed tokens (historical). This will cause a genuine Validator to lose commissions.

On removing a token, the contract correctly calls updateRewardPerTokenForValidator to calculate commission till now but fails to provide a way to claim this.

Vulnerability Details

See Proof of Concept section.

Impact Details

Validator will lose commission.

Recommendation

Instead of using _validateIsToken(token) in requestCommissionClaim, check that token is not part of both historical and current reward tokens before rejecting.

Proof of Concept

{% stepper %} {% step %}

Step

Reward token T1 exists. {% endstep %}

{% step %}

Step

REWARD_MANAGER_ROLE decides to remove it using removeRewardToken. {% endstep %}

{% step %}

Step

This calls updateRewardPerTokenForValidator to ensure commission till now is settled:

Solidity
for (uint256 i = 0; i < $.validatorIds.length; i++) {
    uint16 validatorId = $.validatorIds[i];

    // Final update to current time to settle all rewards up to this point
    PlumeRewardLogic.updateRewardPerTokenForValidator($, token, validatorId);

    // Create a final checkpoint with a rate of 0 to stop further accrual definitively.
    PlumeRewardLogic.createRewardRateCheckpoint($, token, validatorId, 0);
}

{% endstep %}

{% step %}

Step

The implementation calculates and accumulates the validator commission:

Solidity
uint256 commissionDeltaForValidator = (
    grossRewardForValidatorThisSegment * commissionRateForSegment
) / PlumeStakingStorage.REWARD_PRECISION;

if (commissionDeltaForValidator > 0) {
    $.validatorAccruedCommission[validatorId][token] += commissionDeltaForValidator;
}

{% endstep %}

{% step %}

Step

Validator V1 has accrued commission of X amount on Token T1. {% endstep %}

{% step %}

Step

Post removal of T1, V1 wants to claim the commission using requestCommissionClaim which calls _validateIsToken(token):

Solidity
function requestCommissionClaim(
    uint16 validatorId,
    address token
)
    external
    onlyValidatorAdmin(validatorId)
    nonReentrant
    _validateValidatorExists(validatorId)
    _validateIsToken(token)
{
    ...
}

{% endstep %}

{% step %}

Step

But _validateIsToken(token) reverts since token T1 is now removed:

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

This causes the validator to be unable to claim the previously accrued commission. {% endstep %} {% endstepper %}

The original report as published on Immunefi, by shadowHunter. 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 claim function validates the token against the current reward-token list instead of also allowing tokens that were removed but still have accrued commission.

Impact

A validator permanently loses the commission accrued on any reward token that is later removed.

What the attacker needed

Validator has accrued commission; reward token is removed

How it was found

  1. A reward token exists.
  2. The reward manager removes the token using removeRewardToken.
  3. The removal settles the validator's commission up to that point.
  4. The validator tries to claim the accrued commission using requestCommissionClaim.
  5. The claim reverts because the token is no longer a current reward token.

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 validator is a participant who earns a commission on rewards. When the project removes a reward token, the contract still records the commission owed for that token, but the claim function only accepts tokens that are still active. So the validator's earned commission becomes stuck and cannot be withdrawn.

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 shadowHunter

View all

25 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.