BabyDogeCoin Hack
Incident Overview
BabyDogeCoin suffered from flashloan attack, which led to a loss of 135,013 $USD worth of $BNB.
BabyDogeCoin is a BEP20 token trading on the project's own DEX BabyDogeSwap. The BabyDogePair pool was affected by a flash loan attack. The attack started after the exploiter deployed a malicious contract and took 80,000 $BNB as a flash loan.
Consequently, the price of $BabyDoge was manipulated by the attacker, and then 80,509 $BNB was drained from the pool. The flashloan was repaid and the attacker's profit reached 437 $BNB which is worth 135,013 $USD at the moment. The stolen assets were transferred to a couple of EOA addresses which were then transferred to the FixedFloat crypto exchange.
Attacker address:
https://bscscan.com/address/0xcbc0d0c1…0afebb
Malicious transaction:
https://bscscan.com/tx/0x098e7394…c85375
Funds transfer transaction:
https://bscscan.com/tx/0x2ca8b77b…9a0c6f
FixedFloat transfer:
https://bscscan.com/tx/0x66e2373d…344925
Malicious contract:
https://bscscan.com/address/0x51873a0b…a2e6e2
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 BabyDogeCoin, these are the critical security checks that could have prevented this incident (May 2023).
- Verify all logic paths related to Flash Loan Attack are guarded by proper access controls and input validation - see the Flash Loans Attacks attack class for patterns
- 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
Related Attack Classes
The technique used in this hack maps to these vulnerability classes in our security curriculum:
Sources & References
Learn to Prevent the Next BabyDogeCoin
The BabyDogeCoin 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.