YZY DAO Hack
Incident Overview
The contract deployer transferred ownership of the vault smart contract to the external address:
https://etherscan.io/tx/0x5742ab0e…a089cb
The new owner was set as _daoTreasury in the vault smart contract:
https://etherscan.io/address/0x0a5a0a14…49d4fe#readContract
The external wallet received tokens in the form of fees. In addition, he sold them in multiple transactions:
https://etherscan.io/txsInternal?a=0xf01a9074…585302&p=1
This address removed liquidity multiple times:
https://etherscan.io/tx/0x6d64293c…e7f9c9
https://etherscan.io/tx/0x59f3ae38…0c319d
https://etherscan.io/tx/0xe481e83b…4951c0
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 YZY DAO, these are the critical security checks that could have prevented this incident (April 2021).
- Verify all logic paths related to Rugpull 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
-
01
Source 1 https://yzy.finance/
Learn to Prevent the Next YZY DAO
The YZY 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.