Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 806 Bytes

Unbound loop enables denial of service.md

File metadata and controls

27 lines (23 loc) · 806 Bytes

The swap function relies on an unbounded loop.

An attacker could disrupt swap operations by forcing the loop to go through too many operations, potentially trapping the swap due to a lack of gas.

Recommendation:

Bound the loops and document the bounds.


Slide Screenshot

051.jpg


Slide Text

  • ToB Audit Uniswap V3 Finding 6
  • Denial-of-Service
  • Medium Severity
  • Unbounded Loop
  • Attacker/Malicious Miner
  • Bound Loops
  • Document Bounds

References


Tags