Attacker can slow down / halt the chain by queuing multiple stake removals or delegate stake removals
Summary
Attacker can slow down / halt the chain by queuing multiple stake removals or delegate stake removals.
Vulnerability Detail
All stake removals and delegate stake removals for a given block are processed in the EndBlocker in a loop.
Since there is no minimum restriction on the stake amount, an attacker can either :
Depending on the registration fee, register multiple reputers, add a 1 uallo stake to each one of them and then cancel his stakes for each one of them.
Delegate stake 1 uallo from multiple addresses to each registered reputer then cancel all of them.
imsrybr0
High
Attacker can slow down / halt the chain by queuing multiple stake removals or delegate stake removals
Summary
Attacker can slow down / halt the chain by queuing multiple stake removals or delegate stake removals.
Vulnerability Detail
All stake removals and delegate stake removals for a given block are processed in the EndBlocker in a loop.
Since there is no minimum restriction on the stake amount, an attacker can either :
1 uallo
stake to each one of them and then cancel his stakes for each one of them.1 uallo
from multiple addresses to each registered reputer then cancel all of them.Impact
Slow down / halt the chain.
Code Snippet
EndBlocker
RemoveStakes
RemoveDelegateStakes
Tool used
Manual Review
Recommendation
Process stake removals and delegate stake removals that reached maturity in batches with a predefined size over multiple blocks.