51979 sc low getaccruedcommission returns outdated accrued commission
Description
Vulnerability Details
/**
* @notice Get the amount of commission accrued for a specific token by a validator but not yet claimed.
* @return The total accrued commission for the specified token.
*/
function getAccruedCommission(uint16 validatorId, address token) public view returns (uint256) {
PlumeStakingStorage.Layout storage $s = PlumeStakingStorage.layout();
if (!$s.validatorExists[validatorId]) {
revert ValidatorDoesNotExist(validatorId);
}
if (!$s.isRewardToken[token]) {
revert TokenDoesNotExist(token);
}
return $s.validatorAccruedCommission[validatorId][token];
}Impact Details
Recommendation
Proof of Concept
Previous52198 sc high balance manipulation between batches leading to inflated payout and dosNext51070 sc low winning raffle ticket can be re used to maintain unfair advantage over other players in raffle
Was this helpful?