PancakeHunny Hack
Incident Overview
The attacker's address:
https://bscscan.com/address/0x0ef50be2…0db411
The attacker:
- WBNB was swapped to CAKE at PancakeSwap
- sent CAKE to the HUNNY Minter contract
- staked on CAKE-BNB Hive in PancakeHunny
- HUNNY Minter was “tricked” to mint more HUNNY tokens, namely:
using all the wallet balance to make HUNNYBNB LP, and then uses it to calculate the profit hunnyBnbAmount, which can be easily tampered with by just sending the tokens to the minter contract
- the attacker then un-staked from CAKE-BNB Hive to receive the HUNNY tokens from the Minter
- the attacker then sold the HUNNY tokens on PancakeSwap
Stolen funds were transferred to the external address and deposited to the Binance exchange wallet at:
https://bscscan.com/tx/0xcc88d376…1b8324
https://bscscan.com/tx/0xba23b86d…62a215
https://bscscan.com/tx/0x4c93ae86…79dac8
https://bscscan.com/tx/0xe8f8d0e3…dc3fab
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 (June 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 TrialSources & 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.