Skip to content
Smart contracts Audit finding Intermediate

Validator commission can be blocked

The validator reward update function uses flooring integer division to compute commission, and it advances the last-update timestamp even when the computed commission delta is zero. An attacker can repeatedly trigger the update cheaply, keeping the commission delta at zero and blocking the validator's commission rewards for a token.

Blobism Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

49700 sc high validator commission can be blocked

Submitted on Jul 18th 2025 at 14:15:52 UTC by @Blobism for Attackathon | Plume Network

Description

Brief/Intro

The validator reward function contains multiple flooring integer divisions to compute the commission delta for the validator since the last update. Anyone can get this update method to be invoked inexpensively, meaning validator commission rewards can be completely blocked for certain tokens.

Vulnerability Details

The updateRewardPerTokenForValidator contains the following lines of code with the flooring divisions:

Solidity
uint256 commissionRateForSegment = getEffectiveCommissionRateAt($, validatorId, oldLastUpdateTime);
uint256 grossRewardForValidatorThisSegment =
    (totalStaked * rewardPerTokenIncrease) / PlumeStakingStorage.REWARD_PRECISION;

// Use regular division (floor) for validator's accrued commission
uint256 commissionDeltaForValidator = (
    grossRewardForValidatorThisSegment * commissionRateForSegment
) / PlumeStakingStorage.REWARD_PRECISION;

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

At every iteration of this method, the validatorLastUpdateTimes value is set to the new block timestamp for this token, regardless of if the commission delta was nonzero. This means that repeatedly invoking this method at a frequent interval could keep the commission delta as always being zero. Any user can get this method invoked inexpensively, which is where the issue lies.

Recommended fix: Either consider making the updateRewardPerTokenForValidator method harder to invoke by any user, or do not update the timestamp when the commission delta is zero (though this may require more consideration of checkpoints).

Impact Details

Commission reward for a validator can be blocked with this attack.

The attack is more viable if the reward rate for a token is low, since this will require more time for the token rewards to increase to a sufficient level for the flooring division to not be zero. Having a small commission rate and a small total stake on the validator will also help the attacker.

References

See plume/src/lib/PlumeRewardLogic.sol

Proof of Concept

{% stepper %} {% step %}

Step

An attacker stakes with the validator. {% endstep %}

{% step %}

Step

The attacker unstakes dust amounts repeatedly, or unstakes then restakes repeatedly. {% endstep %}

{% step %}

Step

Each unstake/restake invokes PlumeRewardLogic.updateRewardsForValidator, which will internally call updateRewardPerTokenForValidator. {% endstep %}

{% step %}

Step

The last update time of the validator is updated, but the commission reward delta remains at zero. {% endstep %} {% endstepper %}

The original report as published on Immunefi, by Blobism. 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 update function advances the validator's last-update timestamp even when the flooring division produced a zero commission delta, so repeated cheap calls discard the fractional commission instead of carrying it forward.

Impact

Commission rewards for a validator can be blocked, and the attack is more viable when the token reward rate, commission rate and total stake are low.

What the attacker needed

Attacker can stake with the validator; attacker can unstake or restake repeatedly; low reward rate, commission and stake help

The fix

The update function should either be harder for any user to invoke or should not advance the timestamp when the commission delta is zero, though checkpoints would need consideration.

How it was found

  1. The attacker stakes with the validator.
  2. The attacker unstakes dust amounts repeatedly, or unstakes then restakes repeatedly.
  3. Each unstake or restake invokes the reward update, which internally calls the per-token validator update.
  4. The validator's last update time is advanced while the commission delta stays at zero.

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 smart contract pays a validator a small cut (commission) of staking rewards. The code rounds that cut down to a whole number, and if the cut is less than one unit it becomes zero. The contract also records that it has already paid up to now, so if someone triggers the update often enough, the validator's cut is always rounded to zero and never accumulates.

What is Smart contracts?

Flaws in on-chain code that let an attacker drain funds, freeze them or break the protocol's accounting.

More by Blobism

View all

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

Smart contract vulnerabilities

The lesson behind this report.

Flaws in on-chain code that let an attacker drain funds, freeze them or break the protocol's accounting.