Earning.Farm Hack
Incident Overview
Earning Farm exploited via reentrancy attack, resulting in a loss of 541,381 USD worth of ETH.
Earning Farm, an investment tool on the Ethereum chain, suffered a reentrancy attack on Aug 09, 2023. The attacker exploited ENF ETH Leverage LP and Controller contracts, performing multiple malicious transactions involving flash loans. The stolen funds, totaling 541,381 USD worth 292.64 ETH, were sent to another externally owned account and remain at the address as of August 10, 2023.
Attacker:
https://etherscan.io/address/0xee4b3dd2…7bDF1b
Funds Holder as of August 10, 2023:
https://etherscan.io/address/0x21d986da…bae173
Malicious Transactions:
https://etherscan.io/tx/0x878d8986…f9d81b
https://etherscan.io/tx/0x25567821…cc3e95
https://etherscan.io/tx/0x8454beb5…09fc0f
Malicious Contract:
https://etherscan.io/address/0xFe141C32…aBb983
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 Earning.Farm, these are the critical security checks that could have prevented this incident (August 2023).
- Verify all logic paths related to Reentrancy are guarded by proper access controls and input validation - see the Reentrancy attack class for patterns
- Check that all state-changing functions follow the Checks-Effects-Interactions (CEI) pattern to prevent reentrancy and logic ordering bugs
- 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 Earning.Farm
The Earning.Farm 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.