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.
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
- Report ID: #50409
- Report Type: Smart Contract
- Report severity: High
- Target: https://github.com/immunefi-team/attackathon-plume-network/blob/main/plume/src/facets/ValidatorFacet.sol
- Impacts:
- Theft of unclaimed yield
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:
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:
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):
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:
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 %}
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
- A reward token exists.
- The reward manager removes the token using removeRewardToken.
- The removal settles the validator's commission up to that point.
- The validator tries to claim the accrued commission using requestCommissionClaim.
- 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.