Eco DeFi Hack
Incident Overview
The attacker:
- swapped 0.02 WBNB to 12.368 XRP
- deposited 12.368 XRP to the pool 0xc406
https://bscscan.com/address/0xc4068f46…de4dab
- minted 60,975,194,844 eXRP share tokens
- set admin (newAdmin()) in Unitroller contract (0x6f5edd47…cf919e) to the malicious contract (0x8043bfe3…80a179)
- new owner called setPriceOracle() and changed oracle address from 0xf074b445…b69528 to malicious one
- wrong oracle data allowed withdrawing all assets from the pool:
69,940.838139881955983638 ($69,530.01) (BSC-US...)
57,211.335292168881759699 ($57,182.27) (USDC)
46,906.146588682998823308 ($46,845.31) (BUSD)
335,725.42257116669113152 ($286,829.58) (VAI)
13.280051065798373675 ($51,503.49) (ETH)
0.581669136989633591 ($28,460.35) (BTCB)
244.082029656114025206 ($133,271.00) (WBNB)
268.860558650762202142 (SOL)
3,279.711492555105148787 ($52,392.89) (XVS)
5,614.98460021139519757 ($69,977.67) (Cake)
99,994,616.089438012 (JOJO)
Stolen funds are held at the following address:
https://bscscan.com/address/0x68926c85…dd4ce8
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 Eco DeFi, these are the critical security checks that could have prevented this incident (December 2021).
- Verify all logic paths related to Access Control are guarded by proper access controls and input validation - see the Access Control 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
- Audit Report 1 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 Eco DeFi
The Eco DeFi 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.