FOOM Cash Hack

Reported loss $2.3M
Base Ethereum
Fake Proof Spam

What happened

FOOM Cash is a privacy-focused lottery game on Ethereum and Base that uses zk-SNARK proofs to hide player identities. On February 26, 2026, its withdrawal contracts on both chains were drained of about 24.28 trillion FOOM tokens, worth about $2.26 million. The cause was a broken Groth16 verifier. The protocol's snarkjs Phase 2 trusted setup had skipped the step that randomizes the gamma and delta verification-key constants. Both were left at the default BN254 G2 generator, which let anyone forge a valid-looking withdrawal proof from public inputs alone. The same flaw had been exploited at Veil Cash on Base days earlier. According to Rekt, security firm Decurity drained the Ethereum side and returned about $1.84 million the same day, and white hat duha drained the Base side. FOOM Cash paid duha a $320,000 bounty and Decurity a $100,000 fee. It reported recovering $1.84 million, about 81%, leaving a net cost of about $420,000.

Main Ethereum drain transaction: 0xce20448233f5ea6b6d7209cc40b4dc27b65e07728f2cbbfeb29fc0814e275e48

How it happened

  1. In a Groth16 verifier, gamma and delta must be independent random points so that a proof cannot be built without a real witness. FOOM Cash's verifiers on Ethereum and Base had both set to the same default G2 generator, because the Phase 2 randomization step was never run.
  2. With gamma == delta, the pairing check reduces to an equation that anyone can satisfy. The drainer set A = alpha, B = beta and C = -vk_x, where vk_x is computed only from the public inputs, and the verifier accepted it.
  3. A helper contract called the withdrawal function in a loop. Each call used a new nullifier hash and a recomputed forged proof, so no deposit was ever needed.
  4. About 30 iterations emptied 99.99% of the Ethereum pool (about $1.84M), and about 10 emptied 99.97% of the Base pool (about $320K-$330K).

Protocol details

Classification Protocol Logic / Bridge & Cross-Chain
Protocol Type Privacy
Implementation language Solidity
Protocol links Website @FOOMCASH

Understand the attack patterns

Build your security review skills

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