Sandwich Attack

Exploit

A sandwich attack is a specific type of front-running exploit where an attacker places a buy order immediately before a victim’s transaction and a sell order immediately after. The attacker profits from the price movement caused by the victim’s trade. This exploit is prevalent in decentralized exchanges (DEXs) where transaction ordering is predictable.