Skip to content
Business logic Audit finding Intermediate

Inactive validators blocked from claiming accrued commission

The commission claim function reverts for inactive validators, so a validator that has been set inactive cannot withdraw commission earned while active. This permanently locks the validator's accrued and settled commission.

farman1094 Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

51666 sc medium inactive validators blocked from claiming accrued commission

Submitted on Aug 4th 2025 at 18:19:29 UTC by @farman1094 for Attackathon | Plume Network

Description

Brief/Intro

A broken logic in the validator commission settlement and withdrawal system which lets inactive validators become unable to claim the commission they accrued while active.

Vulnerability Details

A function ValidatorFacet::setValidatorStatus is used when a validator is set to inactive. In that function it ensures commission is correctly settled up to that point before marking the validator inactive:

Solidity
// ValidatorFacet::setValidatorStatus
// If going INACTIVE: settle validator commission and record timestamp
if (!newActiveStatus && currentStatus) {
    // Settle commission for validator using current rates
    PlumeRewardLogic._settleCommissionForValidatorUpToNow($, validatorId);
}

However, the commission withdrawal and claim logic (for example, ValidatorFacet::requestCommissionClaim) checks the active status of validators and reverts for inactive validators, blocking them from accessing their accrued/settled commission — even though it was earned while active. Example:

Solidity
function requestCommissionClaim(
    uint16 validatorId,
    address token
)
    external
    onlyValidatorAdmin(validatorId)
    nonReentrant
    _validateValidatorExists(validatorId)
    _validateIsToken(token)
{
    PlumeStakingStorage.Layout storage $ = PlumeStakingStorage.layout();
    PlumeStakingStorage.ValidatorInfo storage validator = $.validators[validatorId];

    if (!validator.active || validator.slashed) {
        revert ValidatorInactive(validatorId);
    }
    ...
}

Impact Details

The direct impact is the permanent locking of validators' reward funds. Any validator set to inactive (whether by choice, protocol requirements, or other reasons) forfeits their earned rewards because the current implementation does not allow claims from the "inactive" state, even though those rewards were earned and in some cases settled while the validator was active. Any pendingCommissionClaims for the validator are also not claimable. This can result in significant financial loss for validators.

Proof of Concept

{% stepper %} {% step %}

Step 1 — Active validator accrues commission

Alice is a validator on the Plume Network. While Alice is active, her validator receives commission from delegators over time. Commissions are accrued and tracked internally by the contract. {% endstep %}

{% step %}

Step 2 — Commission tracking

Commissions are stored, for example, in a mapping like:

Solidity
mapping(uint16 => mapping(address => uint256)) validatorAccruedCommission; // validatorId => token => commission

{% endstep %}

{% step %}

Step 3 — Validator set to inactive

setValidatorStatus is used to set Alice's validator status to inactive. Inside setValidatorStatus, past accrued commission and current commission are “settled” up to this point:

Solidity
// If going INACTIVE: settle validator commission and record timestamp
if (!newActiveStatus && currentStatus) {
    // Settle commission for validator using current rates
    PlumeRewardLogic._settleCommissionForValidatorUpToNow($, validatorId);
}

{% endstep %}

{% step %}

Step 4 — Attempted claim after inactive

Alice attempts to claim her accrued commission by calling requestCommissionClaim. {% endstep %}

{% step %}

Step 5 — Claim reverts due to inactive check

The claim function checks the validator's status:

Solidity
if (!validator.active || validator.slashed) {
    revert ValidatorInactive(validatorId);
}

Because Alice is inactive, the claim reverts. {% endstep %}

{% step %}

Step 6 — Funds become unreachable

Alice cannot claim or withdraw her legitimately accrued commission, even though some was accrued and settled before going inactive. {% endstep %}

{% step %}

Step 7 — Resulting loss

Alice's commission (and any pending claims) are effectively locked and unclaimable, potentially causing financial loss. {% endstep %} {% endstepper %}

The original report as published on Immunefi, by farman1094. 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

The claim function checks that the validator is active, but the status-change function settles commission without providing a way for inactive validators to withdraw it.

Impact

Validators that become inactive permanently lose access to commission they earned while active, including any pending claims.

What the attacker needed

Be a validator with accrued commission; validator becomes inactive

The fix

The claim function should allow inactive validators to withdraw commission that was settled before they became inactive.

How it was found

  1. An active validator accrues commission from delegators.
  2. The validator is set to inactive, which settles commission up to that point.
  3. The validator calls the commission claim function.
  4. The claim reverts because the validator is inactive.
  5. The accrued commission remains unclaimable.

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 helps run a blockchain and earns a commission from others who stake with them. The code settles that commission when the validator is switched off, but the withdrawal function refuses to run for switched-off validators, so the money is 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.

More by farman1094

View all

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