FTX Hack

Reported loss $187K
Ethereum
Other

What happened

Around October 13, 2022, an attacker made the centralized exchange FTX pay for thousands of XEN token mints by abusing its free ETH withdrawals. FTX's hot wallet paid about 81 ETH in gas, which crypto.news valued at $103,443, and the attacker minted more than 100 million XEN.

FTX charged no withdrawal fee, allowed withdrawals to contract addresses, and did not cap the gas limit of withdrawal transactions. It set the limit with gas estimation, which typically came out around 500,000 gas instead of the 21,000 a plain ETH transfer needs. When FTX sent ETH to the attacker's contract, the contract's fallback code used that gas to create one to three sub-contracts that each minted XEN and then self-destructed. FTX, as the sender, paid for all of it.

The attacker repeated this about 17,000 times, then sold XEN for about 61 ETH via DODO and Uniswap. crypto.news estimated the attacker's profit at $77,618. The activity was flagged publicly by WuBlockchain, and FTX had not stopped it when the first reports were published.

**Block data**

- Attacker: 0x1d371cf00038421d6e57cfc31eeff7a09d4b8760

How it happened

  1. The attacker deployed a contract whose fallback function, on receiving ETH, creates sub-contracts that call XEN's mint/claim functions and then self-destruct.
  2. They requested ETH withdrawals from FTX to that contract address. FTX allowed contract recipients and charged no fee.
  3. FTX's hot wallet sent each withdrawal with an estimated gas limit around 500,000, so the attacker's code had plenty of gas to run the XEN mints at FTX's expense.
  4. Repeating this about 17,000 times, the attacker minted over 100 million XEN while FTX paid about 81 ETH in gas.
  5. The attacker swapped XEN for about 61 ETH on DODO and Uniswap.

Protocol details

Classification CeFi / Frontend & Infrastructure
Protocol Type Exploit/Other
Affected asset / contract FTT
Protocol links Website @FTX_Official

Build your security review skills

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