Skip to content
Business logic Audit finding Intermediate

Commission changes can retroactively affect user rewards

When a validator is added, no commission checkpoint is created, so later commission changes can retroactively apply to user rewards for earlier intervals. A validator and user could collude to inflate rewards by staking under a high commission and then lowering it before claiming.

a16 Follow

Originally disclosed on Immunefi

Critical View original
  • Disclosed after under an hour

53037 sc critical commission changes can retroactively affect user rewards

Submitted on Aug 14th 2025 at 17:50:07 UTC by @a16 for Attackathon | Plume Network

Description

Brief/Intro

When a Validator is being added, no commission checkpoint is actually being pushed. This creates a situation where validator commission changes can retroactively affect user rewards for intervals that occurred before that change, possibly incentivizing validators and users to work together to increase gains.

Vulnerability Details

Instead of adding a commission checkpoint when a validator is being added, only the validator.commission variable is actually being set, and the code relies on that variable being returned if the correct commission is not found when getEffectiveCommissionRateAt() is being called (and it won't be found for that initial interval, because no commission checkpoint exists).

fallbackComm = $.validators[validatorId].commission;

However, when a validator's commission is being changed using setValidatorCommission(), the commission for previous intervals is only settled from the validator's perspective:

Solidity
// Settle commissions accrued with the old rate up to this point.
PlumeRewardLogic._settleCommissionForValidatorUpToNow($, validatorId);

Not from the user's perspective, whose rewards are still determined based on the checkpoint mechanism that calls getEffectiveCommissionRateAt(), which would return the current commission for the initial interval, not the one that actually applied at the time.

Impact Details

While this could just result in inaccurate accounting where users receive less/more (depending on if the validator commission was increased/decreased) than what they were entitled to, this issue could also incentivize validators and users to work together and game the system.

Suppose the initial commission when the validator is added is very high. A user can stake to that validator and not claim his rewards until enough time has passed and a validator purposefully decreases the commission to the minimum. While the validator's commission is not retroactively affected (as the code settles the state up until the change), the user would receive much more than he should have had, as it is that new (and smaller) commission that would be applied to his previous earnings, not the original one.

Suggestions

Actually add checkpoints when a validator is added.

Proof of Concept

{% stepper %} {% step %}

Step

Validator _v is added using addValidator() with maxAllowedValidatorCommission as the commission. Only _v.commission is actually set. {% endstep %}

{% step %}

Step

User stakes a large amount to Validator _v. {% endstep %}

{% step %}

Step

After a while, Validator admin calls setValidatorCommission() and changes _v.commission to 0. From the validator's perspective, commission for past intervals are settled correctly before the commission actually changes. {% endstep %}

{% step %}

Step

User calls claim() to calculate the accrued reward from the moment he staked. As no commission checkpoint actually exists for the first interval, _v.commission, which is now 0, is used.

Result: The user ended up not paying any commission for the interval between steps 2 and 3, but the validator still received the full commission for that same interval. {% endstep %} {% endstepper %}

The original report as published on Immunefi, by a16. 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 code sets the validator's commission variable on addition but does not create a commission checkpoint, so the fallback lookup returns the current commission for the initial interval instead of the historical rate.

Impact

Users could receive more or less than entitled, and a validator and user could collude to inflate rewards, potentially causing theft of unclaimed yield or permanent freezing of funds.

What the attacker needed

Validator added with high commission; user stakes large amount; validator lowers commission before claim; user delays claiming rewards

The fix

The code should create a commission checkpoint when a validator is added.

How it was found

  1. A validator is added with the maximum allowed commission, and only its commission variable is set.
  2. A user stakes a large amount to that validator.
  3. After some time, the validator admin changes the commission to zero, settling past commissions only from the validator's perspective.
  4. The user claims rewards, and because no checkpoint exists for the first interval, the new zero commission is applied to the whole period.

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 node that helps run the network and takes a cut (commission) of the rewards users earn by staking with it. The code failed to record the commission rate at the time a validator was first added, so when the rate was later changed, the system used the new rate for past rewards too. This let a validator and a user team up to pay less commission than they should have.

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 a16

View all

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