CoW Swap Hack
Reported loss
$180K
Other
What happened
On February 7, 2023, attackers took about $180,000 from CoW Swap after a SwapGuard contract used by the Barter Solver was approved to move settlement funds. The vulnerable interaction path allowed arbitrary calls, enabling an attacker-controlled contract to obtain token-transfer approval and move DAI from the settlement contract.
How it happened
- The Barter Solver's SwapGuard contract held approval to move funds from CoW's settlement system.
- The attacker used the vulnerable interaction path to make the settlement contract approve an attacker-controlled contract.
- That contract transferred DAI from the GPv2Settlement contract, producing an approximately $180,000 loss.
- The source attributes the failure to arbitrary calls and missing validation of the interaction data.
Protocol details
Evidence
Understand the attack patterns
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.