51842 sc high unclaimed staker rewards lost when admin clears validator records without checking pending rewards
Description
Brief / Intro
Vulnerability Details
function adminBatchClearValidatorRecords(address[] calldata users, address validator) external onlyAdmin {
...
$.userValidatorStakes[user][slashedValidatorId].staked = 0;
// Decrement user's global stake
if ($.stakeInfo[user].staked >= userActiveStakeToClear) {
$.stakeInfo[user].staked -= userActiveStakeToClear;
...
}Impact Details
Proof of Concept
References / Affected Files
Previous52327 sc low unfair yield distribution due to last holder biasNext50040 sc low missing pause controls eth refund flaws and miscalculated shares enable fund loss and protocol inconsistency in depositandbridge
Was this helpful?