Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1.18 KB

Owner can front-run traders by updating adapters.md

File metadata and controls

32 lines (25 loc) · 1.18 KB

MetaSwap owners can front-run users to swap an adapter implementation.

This could be used by a malicious or compromised owner to steal from users.

Because adapters are DELEGATECALL’ed, they can modify storage.

This means any adapter can overwrite the logic of another adapter, regardless of what policies are put in place at the contract level.

Users must fully trust every adapter because just one malicious adapter could change the logic of all other adapters.

Recommendation:

At a minimum, disallow modification of existing adapters. Instead, simply add new adapters and disable the old ones.


Slide Screenshot

020.jpg


Slide Text

  • ConsenSys Audit MetaSwap Finding 4.3
  • Timing
  • Medium Severity
  • Front-Running
  • Modify Implementation
  • Disallow Modifications

References


Tags