Crypto exploits

ATMBlindBox exploit analysis

ATM BlindBox settled bets on a block hash that was public before settlement, so the attacker simply skipped losing bets, draining about 13 million ATM (roughly $99,000 reported) from the game's own payout pool over 150 rounds.

David

Security ·

Reported loss
$99K
Occurred
Logged
Chain
BNB Smart Chain

Logged as “2026-03-19: Weak Randomness Predictable Rng on ATMBlindBox”.

Analysis2 min read

ATM BlindBox ran a simple on-chain coin flip: a user sent ATM tokens to the contract's burn address and bet on whether a number tied to a future block would land odd or even, with a winning call paid out at 1.95 times the stake. The outcome depended on blockhash(betBlock + 2), and when that value had already expired from the EVM's 256-block lookback window, the contract fell back to keccak256(block.prevrandao, betId, block.timestamp) instead. Both values are public once the relevant block exists. Settlement was never forced to happen inside any particular window after that. A bettor could leave a wager open, watch the hash land, and call settle() only when it favored them.

Defimon Alerts, posting on Telegram the day of the attack, described how the attacker used that gap. Rather than one large wager, the attacker placed roughly 105,000 bets per round in single transactions, read the resulting blockhash off-chain once it existed, and settled only the rounds that had landed in their favor, walking away from the rest. Over roughly 150 rounds spanning blocks 87,515,680 to 87,524,257, the attacker drained about 13 million ATM tokens from the contract's dead-address payout pool, which were then sold on PancakeSwap.

The DeFiHackLabs proof of concept reconstructs a narrower version of the same flaw rather than the full 150-round run. It funds a single 300,000 ATM bet at an even parity, lets the primary target block's hash expire 818 blocks later, confirms blockhash(targetBlock) had gone to zero as the EVM discards hashes outside its lookback window, then shows the contract's fallback hash, keccak256(block.prevrandao, betId, block.timestamp), already sitting on chain and favorable before the attacker calls settle(). The payout on that single replayed bet is 1.95 times the stake, consistent with the terms Defimon Alerts described for the real run. The contract's address, 0x1F8336aEF584795E282FECe8DE356BaBD7734c59, is named as both the vulnerable contract and the victim in the proof of concept's own header, meaning the drained tokens came directly from the game's own reserve rather than from other players' stakes.

ATM BlindBox's contract source has not been independently verified beyond what the proof of concept exercises. What the proof of concept and Defimon Alerts agree on is enough to name the missing control precisely: the contract never required settlement to happen before the deciding hash became public, and it never discarded a bet whose outcome had already been revealed. Weak randomness made the outcome guessable in principle, but the actual loss came from the combination of a public result and a settlement call the bettor was free to skip.

No statement from the ATM team about the incident has been published. DeFiHackLabs puts the loss at roughly 99,000 USD, matching the figure Defimon Alerts gave on Telegram the same day; both describe the same 13 million ATM drained from the dead-address payout pool. The exploit index on this site carries no other weak-randomness incident to compare this one against, so it stands alone in that respect. A contract that commits to an unpredictable value before a bet opens, and that forces settlement within a short, fixed window after that value becomes available, would have closed both failure points at once: Chainlink VRF or an equivalent oracle for the first, a keeper-enforced settlement deadline or automatic forfeit for the second.

Sources read (2)

Other exploits

Query every incident yourself — free, no signup

Updated 9 Nov 2026. Figures are as reported by the sources listed above and are not independently verified.