Earning.Farm Hack

TOTAL LOST $541K
Low Reentrancy ethereum

Summarize with AI

Affected Chain ethereum Incident surface
Recovered - No recovery reported
All-Time Rank #983 By amount stolen
Protocol Type Exploit/Reentrancy Target category

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 / Project Earning.Farm
Date of Incident
Affected Chain(s) ethereum
Attack Technique Reentrancy
Classification Protocol Logic / Other
Primary Source View Post-Mortem

Protocol Information

Protocol Type Exploit/Reentrancy
Smart Contract Language Solidity
Official Website earning.farm/
Protocol Twitter/X @EarningFarm
Team Anonymous
Source Code Verified On-Chain

Market Context at Time of Hack

Token Categories
Collectibles & NFTs DeFi Derivatives Smart Contracts Ethereum Ecosystem Yield Farming Polygon Ecosystem

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.

Technical Knowledge Deep understanding of reentrancy and Solidity and EVM internals
Capital Required Seed capital to cover gas and initial position setup
On-Chain Access Ability to interact with ethereum smart contracts and deploy a custom exploit contract
Protocol Analysis Identification of the exploitable vulnerability in Earning.Farm's contract logic - root cause: protocol logic / other
Execution Speed Precise transaction ordering and timing to exploit the vulnerability within a single atomic block
Obfuscation Plan A strategy to launder and move stolen funds - typically through mixers, cross-chain bridges, or decentralized DEX swaps to resist tracing

What Auditors Should Check

Could this have been caught in audit? Yes — skilled auditors routinely flag Reentrancy vulnerabilities in code review

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 Trial

Related Attack Classes

The technique used in this hack maps to these vulnerability classes in our security curriculum:

See all Reentrancy examples →

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.

Recreate exploit patterns safely Free Trial