PancakeHunny Hack
Incident Overview
The attacker's address:
https://bscscan.com/address/0x731821d1…917689
The contract used for the attack:
https://bscscan.com/address/0xa5312796…708e71
The attacker:
- took a 53.25 BTC flash loan from Cream Finance
- used 53.25 BTC to get a 2,717,107 TUSD loan from Venus
- manipulated the price of BNB/TUSD Pool on PancakeSwap
- used 50 different contracts, deployed earlier to deposit 38,250 TUSD into HUNNY TUSD Vault
- redeemed 2842.16TUSD and minted 12,020.40 Hunny
- sold minted Hunny for 7.78 WBNB
-repeated with 50 wallets 26 times.
The hack is made possible by a profit inflation flaw that transforms a little number of harvested ALPACA into a big sum of TUSD for staking. These converted TUSDs are then counted as profit, which is subsequently inflated to produce a big quantity of HUNNY.
Stolen funds were bridged on Ethereum blockchain and deposited into Tornado Cash mixer:
https://etherscan.io/address/0x731821d1…917689
Incident Report
Protocol Information
Market Context at Time of Hack
What the Attacker Needed to Succeed
Understanding the prerequisites for this type of attack helps auditors identify protocols that are most at risk and helps developers build better defenses.
What Auditors Should Check
If you're auditing a protocol with similar architecture to PancakeHunny, these are the critical security checks that could have prevented this incident (October 2021).
- Verify all logic paths related to Other are guarded by proper access controls and input validation
- Review privileged functions (owner, admin, governance) for potential abuse vectors - centralization risks should be documented and bounded with timelocks or multi-sigs
Master these auditing techniques with hands-on labs and real exploit scenarios in the Smart Contract Hacking course.
Free TrialSecurity Audit History
- Certik Report
Sources & References
Learn to Prevent the Next PancakeHunny
The PancakeHunny hack is one of many attacks that skilled auditors are trained to detect before deployment. Master real exploit patterns and defense techniques with hands-on Web3 security training.