YYS Hack
Incident Overview
Jun-08-2024 YYS Token was exploited with a loss of about 29k USD.
On June 8, 2024, YYS token 0xE814Cc was exploited using the vulnerability in the sell function. Pancake V3 pool was used for borrowing 4,750,000 USDT for the Flashloan attack. Then funds were bridged to the Arbitrum network and mixed via Railgun mixer.
Attacker:
https://bscscan.com/address/0x101723de…ff6340
Exploit tx:
https://bscscan.com/tx/0x397a09af…c8dec9
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 YYS, these are the critical security checks that could have prevented this incident (June 2024).
- 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 YYS
The YYS 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.