FlippazOne Hack

Reported loss $7K
Access Control

What happened

FlippazOne was a single-NFT auction contract on Ethereum that anyone could empty. Its ownerWithdrawAllTo(address) function sent the contract's whole ETH balance to any address the caller chose. Unlike the other withdrawal paths, it had no owner check and no auction-end check. The auction started on July 5, 2022. Over the next day, bidders' ETH was drained twice, 5.15 ETH in total.

The first 1.15 ETH bid was taken by a Flashbots frontrunner. It copied a pending ownerWithdrawAllTo call and won a race in which one bot had paid 1,000 gwei. The next day a new 4 ETH bid, worth about $4,700 at the time, was withdrawn by an EOA 11 minutes after it arrived. The creator then ended the auction.

How it happened

  1. The creator 0x7f377ee93b2c7856838c9fb7effe0ba34399d9d3 deployed the FlippazOne contract 0xE85A08Cf316F695eBE7c13736C8Cc38a7Cc3e944 and started the auction on July 5, 2022. A bidder, 0x194a39f48f1d5e310d0e0cc25e727c7d2bff0b14, sent a 1.15 ETH bid.
  2. At 19:30 UTC, bot 0x56d8... sent ownerWithdrawAllTo at 1,000 gwei (tx 0x8bded20c1db5a1d5f595b15e682a95ce11d3c895d6031147fa49c4ffa5729a30). A generalized frontrunner copied the call and landed first in the same block through Flashbots. Its contract 0xb314fd4ac6e10a7e27929cbc8db96743739c82b6 received the 1.15 ETH in tx 0x670da209fb1168941c4565a9a86f87d1011b24b857ea64f658b126a43f031fa0.
  3. On July 6, another bidder sent 4 ETH. Eleven minutes later, EOA 0xD6EfC21d8c941AA06F90075dE1588ac7E912Fec6 called ownerWithdrawAllTo and received the 4 ETH in tx 0xf2cc19d4c8bfb04e35789e9b716c5f1ba8b893df3a821b104ed5f845230a3762.
  4. The creator called endAuction about 80 minutes after the second drain.

Protocol details

Classification NFT
Protocol Type Exploit/Access control
Affected asset / contract FlippazOne

Understand the attack patterns

Build your security review skills

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