Validators can not claim pending accrued commission when reward tokens have been removed from the isrewardtoken mapping
Validators cannot request a commission claim for a reward token once it has been removed from the isRewardToken mapping, because the requestCommissionClaim function enforces a token-validity check that the user claim path does not. This can permanently freeze the validator's accrued commission, or cause it to be lost if slashing occurs before the token is re-added.
- Disclosed after under an hour
51530 sc high validators can not claim pending accrued commission when reward tokens have been removed from the isrewardtoken mapping
Submitted on Aug 3rd 2025 at 18:15:58 UTC by @Outliers for Attackathon | Plume Network
- Report ID: #51530
- Report Type: Smart Contract
- Report severity: High
- Target: https://github.com/immunefi-team/attackathon-plume-network/blob/main/plume/src/facets/ValidatorFacet.sol
- Impacts:
- Permanent freezing of funds
Description
Brief/Intro
When a validator earns rewards, both the validator and their users receive a share. Users are allowed to claim their accrued rewards even if the associated reward tokens are no longer supported. However, validators currently cannot claim their share under the same conditions.
This creates an asymmetric behavior where users retain full access to their rewards, but validators may be permanently blocked from accessing theirs.
Vulnerability Details
Relevant code excerpts:
/**
* @notice Request a commission claim for a validator and token (starts timelock)
* @dev Only callable by validator admin. Amount is locked at request time.
*/
function requestCommissionClaim(
uint16 validatorId,
address token
)
external
onlyValidatorAdmin(validatorId)
nonReentrant
_validateValidatorExists(validatorId)
@audit>>> _validateIsToken(token)
{
PlumeStakingStorage.Layout storage $ = PlumeStakingStorage.layout();
PlumeStakingStorage.ValidatorInfo storage validator = $.validators[validatorId];
if (!validator.active || validator.slashed) {
revert ValidatorInactive(validatorId);
}
// Settle the commission up to now to ensure an accurate amount
PlumeRewardLogic._settleCommissionForValidatorUpToNow($, validatorId);
@audit>> uint256 amount = $.validatorAccruedCommission[validatorId][token];
@audit>> if (amount == 0) {
revert InvalidAmount(0);
}
if ($.pendingCommissionClaims[validatorId][token].amount > 0) {
revert PendingClaimExists(validatorId, token);
}
and the modifier:
modifier _validateIsToken(
address token
) {
@AUDIT>> if (!PlumeStakingStorage.layout().isRewardToken[token]) {
revert TokenDoesNotExist(token);
}
_;
}
When users claim this check was removed to prevent this same vulnerability, but this was incorrectly introduced into the Validators Reward claiming action. Causing validators' funds to remain frozen for hours/days.
Because of the time sensitivity of Slashing, Validators should be able to request tokens as long as they have accrued rewards with no pending claim request.
This modifier incorrectly blocks the flow of claiming these tokens, which can be lost forever if:
- Reward tokens are no longer added to the mix.
- If users request at day 2 + wait time, they should get it by day 9, but because of this delay and reward tokens get added again at day 4 validator will have to wait till day 11 to redeem. Validator gets slashed at day 10, hence they will still eventually lose access to these Commission tokens. This example shows the time sensitivity of this critical function as if Validator laid claim at day 2 they will lose these funds.
See Users flow below showing they are not denied:
function claim(
address token
) external nonReentrant returns (uint256) {
// Validate token
_validateTokenForClaim(token, msg.sender);
// Process rewards from all active validators
uint256 totalReward = _processAllValidatorRewards(msg.sender, token);
// Finalize claim if there are rewards
if (totalReward > 0) {
_finalizeRewardClaim(token, totalReward, msg.sender);
emit RewardClaimed(msg.sender, token, totalReward);
}
// Clear pending flags for all validators
PlumeStakingStorage.Layout storage $ = PlumeStakingStorage.layout();
uint16[] memory validatorIds = $.userValidators[msg.sender];
_clearPendingRewardFlags(msg.sender, validatorIds);
// Clean up validator relationships for validators with no remaining involvement
PlumeValidatorLogic.removeStakerFromAllValidators($, msg.sender);
return totalReward;
}
function _processValidatorRewards(
address user,
uint16 validatorId,
address token
) internal returns (uint256 reward) {
PlumeStakingStorage.Layout storage $ = PlumeStakingStorage.layout();
// Settle pending rewards for this specific user/validator/token combination.
// This updates both $.userRewards and $.totalClaimableByToken consistently.
PlumeRewardLogic.updateRewardsForValidatorAndToken($, user, validatorId, token);
// Now that rewards are settled, the full claimable amount is in storage.
reward = $.userRewards[user][validatorId][token];
if (reward > 0) {
// This function will now only *reset* the user's reward to 0, since it's being claimed.
_updateUserRewardState(user, validatorId, token);
emit RewardClaimedFromValidator(user, token, validatorId, reward);
}
}
As seen above user flow ensures users can claim these types of tokens.
Impact Details
This critical flaw affects the time-sensitive actions that deny Validators their ability to claim pending commissions. Any improper delays or delayed action until slashing actions can result in the total loss of these funds. If Reward tokens were temporarily removed, users would still have full rights to successfully claim their funds, but Validators would be incorrectly denied.
References
Enable validators to claim all pending rewards unconditionally, or utilize historical reward token mapping to validate tokens instead of the current isRewardToken mapping.
Proof of Concept
{% stepper %} {% step %}
PoC path 1: Token permanently removed
- Rewards are explicitly accrued within the contracts.
- The reward token is systematically removed from the
isRewardTokenmapping. - Users are entitled to claim their accrued rewards linked to these tokens.
- Validators are unequivocally denied access to the commissions accrued on the claimed rewards.
- Tokens are never re-added. Commissions are permanently frozen. {% endstep %}
{% step %}
PoC path 2: Token temporarily removed with timing causing slashing loss
- Rewards are accrued and a validator requests commission at time T (starts timelock).
- The reward token is removed from
isRewardTokenafter T. - Validator cannot request/claim due to
_validateIsTokenmodifier. - Token may be re-added later, but timing causes validator to be slashed before they can claim (time-sensitive).
- Validator loses ability to claim commissions despite accrual. {% 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
Likely the requestCommissionClaim function applies the _validateIsToken modifier, which rejects any token no longer present in the isRewardToken mapping, even though commission was already accrued for that token.
Impact
Validators' accrued commission can be permanently frozen or lost to slashing, while users can still claim their share of the same rewards.
What the attacker needed
Validator has accrued commission; reward token removed from isRewardToken
The fix
The report suggests letting validators claim all pending rewards unconditionally, or validating tokens against a historical reward-token mapping instead of the current isRewardToken mapping.
How it was found
- Rewards are accrued for a validator in a reward token.
- The reward token is removed from the isRewardToken mapping.
- The validator tries to request a commission claim but is blocked by the token check.
- If the token is never re-added, the commission stays frozen; if it is re-added late, slashing may occur first and the commission is lost.
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 operator who helps run the network and earns a commission from rewards. The contract keeps a list of which tokens count as valid rewards; if a token is taken off that list, the validator's function refuses to let them collect commission already earned in that token, while ordinary users can still collect theirs. That means the validator's money can get stuck.
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.