In ValidatorFacet, validator cannot claims commissions of removed tokens
When a reward token is removed, the validator commission claim function rejects the token because it is no longer marked active, even though commission was already accrued and settled. A validator admin therefore cannot claim earned commission for that token, causing a permanent loss or indefinite lock-up of validator yield.
- Disclosed after under an hour
52711 sc high in validatorfacet validator cannot claims commissions of removed tokens
Submitted on Aug 12th 2025 at 15:17:16 UTC by @Paludo0x for Attackathon | Plume Network
- Report ID: #52711
- 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
When a reward token is removed by an account with REWARD_MANAGER_ROLE, validator admins can no longer call requestCommissionClaim() for that token because the function requires the token to still be “active.”
These requirement blocks claiming accrued validator commissions for removed tokens.
Vulnerability Details
ValidatorFacet::requestCommissionClaim() is gated by the _validateIsToken(token) modifier, which requires the token to be currently active.
When the reward manager removes a token, isRewardToken[token] becomes false, blocking the claim path even though commission was already accrued and properly settled at removal time.
There is an asymmetry with stakers: RewardsFacet::_validateTokenForClaim() explicitly allows claims for removed tokens if there are stored or calculable rewards. Validator commissions, however, are blocked by _validateIsToken. So users (stakers) can claim after removal; validators cannot.
Impact Details
In production, this causes permanent loss of validator yield (or at least indefinite lock-up), making the issue high severity.
Recommended fix
- Allow claims for removed tokens (preferred) by loosening the check so it also accepts “historical” tokens when there is accrued commission.
- Alternatively, when calling
removeRewardToken()automatically callrequestCommissionClaim()for each validator with a non-zero accrued amount.
Proof of Concept
{% stepper %} {% step %}
Step
REWARD_MANAGER_ROLE calls removeRewardToken(tokenX), which updates rewards for each validator, creates a checkpoint, then sets $.isRewardToken[tokenX] = false and removes tokenX from $.rewardTokens[].
Example excerpt:
function removeRewardToken(
address token
) external onlyRole(PlumeRoles.REWARD_MANAGER_ROLE) {
....
// 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);
}
// Set rate to 0 to prevent future accrual. This is now redundant but harmless.
$.rewardRates[token] = 0;
// DO NOT delete global checkpoints. Historical data is needed for claims.
// delete $.rewardRateCheckpoints[token];
// Update the array
$.rewardTokens[tokenIndex] = $.rewardTokens[$.rewardTokens.length - 1];
$.rewardTokens.pop();
// Update the mapping
$.isRewardToken[token] = false;
delete $.maxRewardRates[token];
emit RewardTokenRemoved(token);
}
{% endstep %}
{% step %}
Step
A validator admin attempts to claim by calling requestCommissionClaim:
function requestCommissionClaim(
uint16 validatorId,
address token
)
external
onlyValidatorAdmin(validatorId)
nonReentrant
_validateValidatorExists(validatorId)
_validateIsToken(token)
{ ... }
{% endstep %}
{% step %}
Step
The _validateIsToken modifier reverts the call because isRewardToken[token] was set to false during removal:
modifier _validateIsToken(
address token
) {
if (!PlumeStakingStorage.layout().isRewardToken[token]) {
revert TokenDoesNotExist(token);
}
_;
}
There appears to be no alternative path in ValidatorFacet to claim validator's accrued commission for removed tokens.
{% 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 commission claim function uses a check that only accepts currently active reward tokens, unlike the staker claim path which also allows removed tokens with stored rewards.
Impact
Validator commission for removed tokens becomes permanently unclaimable, causing loss of yield or at least an indefinite lock-up.
What the attacker needed
REWARD_MANAGER_ROLE removes a reward token; Validator has accrued commission in that token
The fix
The check should be loosened to allow claims for removed tokens when accrued commission exists, or removal should automatically trigger a commission claim for each validator with a non-zero amount.
How it was found
- The reward manager calls removeRewardToken for a token, which settles rewards, creates a final checkpoint, sets the token as inactive and removes it from the reward tokens array.
- A validator admin calls requestCommissionClaim for that validator and token.
- The call reverts because the token is no longer marked as an active 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 earns a commission in a particular reward token. If the reward manager later removes that token from the list of active tokens, the claim function refuses to process it because it only accepts active tokens. The earned commission is still recorded but there is no way to withdraw it, so the validator loses money.
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.