Babylon Integer Overflow in Distribution Module CumulativeRewardRatio Calculation Leading to Chain Halt
High severity
GitHub Reviewed
Published
May 13, 2025
in
babylonlabs-io/babylon
•
Updated May 22, 2025
Description
Published to the GitHub Advisory Database
May 15, 2025
Reviewed
May 15, 2025
Last updated
May 22, 2025
Summary
Minting large amount of tokens through ibc transfer and then depositing them in validator rewards pool (via
DepositValidatorRewardsPoolmessage) can lead to integer overflow panic when calculatingcumulative_reward_ratiofor the validator.This calculation happens in
x/epochingmoduleEndBlocker, thus the panic will halt the chain.Impact
Denial of Service - Due to panic in the
EndBlockerBabylon Genesis will haltReferences