New Free DAO Hack
Incident Overview
The New Free DAO project was subjected to a flash loan attack, suffering losses of $1.25M.
New Free DAO is a DAO project that give participants the opportunity to coordinate activities and manage resources in accordance with a pre-agreed and formalized set of rules.
The attackers took 250 $WBNB via flash loan and swapped the loaned funds for $NFD tokens via the $WBNB -> $USDT -> $NFD path.
The attackers contract then created multiple contracts to claim airdrop rewards from the targeted victim contracts.
The attacker returned the flash loan and swapped all the $NFD for $WBNB. Then the malicious actor swapped 2k $BNB for $USDT.
Step by step the transaction occurred as follows:
- The scammer took a flash loan for $250 $BNB
- The $BNB tokens were then exchanged for the $NFD tokens
- The scammer contract had the ability to create malicious contracts that also created contracts and transferred them all tokens received from airdrop.
- In the end, the last contract exchanges the entire balance of $NFD tokens for $BNB, transfers them to the main contract, restores the flash loan, and then the main contract transfers the funds to the scammer.
All the stolen funds have been transferred through tornado.cash.
Attacker address: https://bscscan.com/address/0x22c9736d…9d6fd2
Attacker contract address: https://bscscan.com/address/0xa35ef9fa…948863
Flash Loan attack transactions:
1) https://bscscan.com/tx/0xb6f9b5ef…0003f8
2) https://bscscan.com/tx/0x8b77d75e…2f4ac0
Swap NFD to BNB transactions:
1) https://bscscan.com/tx/0x8c035fc9…410599
2) https://bscscan.com/tx/0xda4b4de6…f6c95b
Pair address: https://bscscan.com/address/0x26c06238…bdaeaf
Incident Report
Protocol Information
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 New Free DAO, these are the critical security checks that could have prevented this incident (September 2022).
- 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 TrialRelated Attack Classes
The technique used in this hack maps to these vulnerability classes in our security curriculum:
Sources & References
Learn to Prevent the Next New Free DAO
The New Free DAO 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.