QuickSwap Hack

Reported loss $220K
Polygon
Flash Loan Attack

What happened

On October 24, 2022, a flash-loan attack exploited about $220,000 from the Market XYZ lending market in QuickSwap Lend. QuickSwap said Market XYZ was the only affected market, its core contracts and user funds were unaffected, and it closed its lending markets after the incident.

How it happened

  1. The attacker used flash-loaned capital to add liquidity to the Curve pool whose LP token Market XYZ accepted as collateral.
  2. During remove_liquidity, the attacker's callback re-entered Curve's get_virtual_price() while pool accounting was unsettled.
  3. Market XYZ used that temporarily inflated LP value to extend a loan against overvalued collateral.
  4. The attacker withdrew the borrowed MAI, repaid the flash loan, and retained the reported proceeds; QuickSwap then closed QuickSwap Lend.

Protocol details

Classification Exchange (DEX) / Oracle Manipulation
Protocol Type Exploit/Flash Loan Attack
Implementation language Solidity
Protocol links Website @QuickswapDEX

Build your security review skills

Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.