53025 sc high commission on removed tokens is unclaimable
Description
Brief/Intro
Vulnerability Details
function requestCommissionClaim(
uint16 validatorId,
address token
)
external
onlyValidatorAdmin(validatorId)
nonReentrant
_validateValidatorExists(validatorId)
_validateIsToken(token) //@audit - will revert here
{
...
}
...
modifier _validateIsToken(
address token
) {
if (!PlumeStakingStorage.layout().isRewardToken[token]) {
revert TokenDoesNotExist(token);
}
_;
}Impact Details
Mitigation
Proof of Concept
PoC (steps - no code)
1
2
3
Previous53028 sc high there is an asymmetric rounding issue that is can cause a theft of unclaimed yield in reward or commission accountingNext53022 sc critical funds are not properly refunded to user which calls for swap on the dex aggregator
Was this helpful?