Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 1.21 KB

`setFrozen` can be front-run to deny deposits-swaps.md

File metadata and controls

27 lines (22 loc) · 1.21 KB

setFrozen can be front-run to deny deposits-swaps Currently, a Curve contract owner can use the setFrozen function to set the contract into a state that will block swaps and deposits.

A contract owner could leverage this process to front-run transactions and freeze contracts before certain deposits or swaps are made; the contract owner could then unfreeze them at a later time.

Recommendation:

Short term, consider rewriting setFrozen such that any contract freeze will not last long enough for a malicious user to easily execute an attack.

Alternatively, depending on the intended use of this function, consider implementing permanent freezes.


Slide Screenshot

150.jpg


Slide Text

  • ToB Audit DFX Finance Finding 16
  • Timing & DoS
  • Temp. Contract Freeze
  • Malicious Owner
  • Low Freeze Time or Permanent Freeze

References


Tags