code-423n4 / 2021-08-gravitybridge-findings

1 stars 0 forks source link

Large ValSets potentially freezes `Gravity.sol` #9

Open code423n4 opened 3 years ago

code423n4 commented 3 years ago

Handle

nascent

Vulnerability details

Gas requirements of makeCheckpoint: If the size of the validator set grows large enough during a time of block-size expansion, it may be possible to make the validator set large enough that, when the block size shrinks, the gas required to perform makeCheckpoint may be larger than the amount of gas available in the block. In that case, the validator set could not be updated until the block size increased. If a reduction in upper gas limit for blocks occurs at the miner layer, it may be bricked permanently.

jkilpatr commented 2 years ago

Duplicate of #30

loudoguno commented 2 years ago

reopening as per judges assessment as "primary issue" on findings sheet