Sandwich attack

A two-leg MEV exploit — front-run a victim's swap with a buy, let it execute at worse price, back-run with a sell.

Common against DEX swaps with insufficient slippage protection. Mitigations: tighter slippage tolerance, private orderflow (Flashbots Protect), batch auctions (CoW Swap), aggregators with MEV protection.

Related terms