SNOOKER Hack
What happened
On 2023-05-10 (00:46 UTC) an attacker abused the invitation (referral) rewards in SNOOKER's (SNK) staking contract on BNB Smart Chain. They minted a large amount of SNK and sold it into the SNK PancakeSwap pool, taking about 197,725 BSC-USD (Binance-Peg USDT). Phalcon reported the loss as about 197K and De.Fi as about $190K.
The SNK price fell about 97%. The attack was prepared about ten days earlier, when the same address staked small amounts from ten 'parent' contracts so that rewards could build up.
How it happened
- On 2023-04-29 the attacker deployed ten helper contracts, staked a small amount of
SNKfrom each, and left them to accrue rewards. - On 2023-05-10 the attacker flash-swapped 80,000
SNKfrom the SNK/BSC-USD PancakeSwap pair. - For each parent, the attacker deployed a new child contract, called
bindParentto register it under that parent, and staked the entire borrowedSNKbalance through the child. - The parent then called
getReward. The minter paid invitation rewards by multiplying the parent's accumulatedrewardPerTokenby the current balance of all its children, so the parent was paid as if the borrowed tokens had been staked the whole time. The child then exited and passed theSNKon to the next round. - After ten rounds the attacker repaid the flash swap and sold the minted
SNKinto the pair for about 197,725 BSC-USD.
Protocol details
Evidence
- report De.Fi Security alert: $SNK on BSC exploited for $190,000 twitter.com
- report Phalcon alert: SNK-BUSD Pancake pool attacked, loss ~197k twitter.com
- transaction BSC tx 0x7394f2520ff4e913321dd78f67dd84483e396eb7a25cbb02e06fe875fc47013a bscscan.com
- address bscscan.com address 0x6b67…e535 bscscan.com
- address bscscan.com address 0x7738…0f3e bscscan.com
- address bscscan.com address 0xc04c…3a33 bscscan.com
- code DeFiHackLabs: 20230510 SNK - Reward Calculation Error (SNK_exp.sol) github.com
- analysis DeFiLlama defillama.com
Understand the attack patterns
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.