53063 sc low maxvalidatorpercentage can be used to dos protocol staking
Description
Brief/Intro
Vulnerability Details
if (previousTotalStaked > 0 && $.maxValidatorPercentage > 0) {
uint256 newDelegatedAmount = $.validators[validatorId].delegatedAmount;
uint256 validatorPercentage = (newDelegatedAmount * 10_000) / $.totalStaked;
if (validatorPercentage > $.maxValidatorPercentage) {
revert ValidatorPercentageExceeded();
}
}Impact Details
References
Proof of Concept
Previous53069 sc low dynamic cooldown interval changes cause unexpected fund lockup extensionsNext53061 sc high asymmetric rounding in commission ceil for users floor for validators enables per segment rounding loss validators can amplify via frequent commission checkpoints
Was this helpful?