ElasticSwap Hack

Reported loss $854K
Avalanche Ethereum
Price Oracle Attack

What happened

On the 13th of December, 2022, Elastic Swap was hacked on the Avalanche and Ethereum Chain using a calculation issue. The malicious actor stole worth around 850k USD.

The attack was possible in the reason of using two different logic of calculation in the exploited smart contracts. Functions addLiquidity and removeLiquidity have different logic of accounting. While the first one uses constant variables the second one is using dynamic pool balance calculation.

This led to the possibility of price manipulation after the pool unbalancing.

Avalanche:

Attacker address:

Address 0x3bdf…43cd

Address 0x25fd…3c56

Address 0xdd84…0cbd

Exploit tx:

Tx 0x782b…9b18

Ethereum:

Exploit tx:

Tx 0xc2d8…cbda

Front-run tx:

Source

Protocol details

Classification Ecosystem / Exchange (DEX) / Oracle Manipulation
Protocol Type DEX
Affected asset / contract TIC
Protocol links Website @ElasticSwap

Security review history

Build your security review skills

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