DeFiPie Hack

Reported loss $269K
BNB Chain Ethereum
Other

What happened

The hacker's address on Ethereum:

Address 0xf6f4…0fe1

BSC:

Address 0xf6f4…0fe1

Polygon:

Address 0xce1f…6ede

The transaction behind the attack on the BSC:

Tx 0x45f6…6d75

The hacker:

  • Created a token contract (X token) with a modified transfer function:

Token

Token

  • Created pools for X tokens and deposited liquidity
  • Provided collateral (USDT, DAI, USDC, etc)
  • Borrowed X tokens and real tokens (PIE and others) and with a modified transfer function in X token, could able to borrow more than he provided as collateral
  • After that from his second account he liquidated loans of X tokens in the first account thereby returning the collateral
  • Repeated with each pool.

Stolen funds were deposited into Tornado Cash and Typhoon mixers.

Protocol details

Classification Yield Aggregator / Reentrancy
Protocol Type Exploit/Other
Affected asset / contract PIE
Implementation language Solidity
Protocol links Website @defipiepie

Understand the attack patterns

Build your security review skills

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