Hundred Finance Hack

TOTAL LOST $6.2M
Medium Flashloan Reentrancy Attack / Other gnosis chain

Summarize with AI

Affected Chain gnosis chain Incident surface
Recovered - No recovery reported
All-Time Rank #394 By amount stolen
Auditors 1 Prior security audit

Incident Overview

Exploitation of reentrancy vulnerability in xDAI token's architecture allows attackers to borrow assets significantly more valuable than the provided collateral.

The attacker exploited the xDAI token's architecture which includes the function callAfterTransfer(), creating a reentrancy vulnerability. By using flash loans as collateral, they were able to layer multiple borrow functions within one another to increase the borrowed amount before the protocol could update the debt balance. This approach was repeated and resulted in the borrowing of assets that were significantly more valuable than the collateral provided.

The attacker's address:

https://blockscout.com/xdai/mainnet/address/0xD041Ad9a…79E358/transactions

The stolen funds were bridged to Ethereum and deposited into Tornado Cash mixer:

https://etherscan.io/txs?a=0xd041ad9a…79e358

Incident Report

Protocol / Project Hundred Finance
Date of Incident
Affected Chain(s) gnosis chain
Attack Technique Flashloan Reentrancy Attack / Other
Classification Ecosystem / Borrowing and Lending
Primary Source View Post-Mortem

Protocol Information

Protocol Type Lending
Affected Token HND
Smart Contract Language Solidity
Official Website hundred.finance/
Protocol Twitter/X @HundredFinance
Team Anonymous
Source Code Unverified

Market Context at Time of Hack

Token Categories
DeFi Ethereum Ecosystem Governance

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 flashloan reentrancy attack / other and Solidity and EVM internals
Capital Required Seed capital to cover gas and initial position setup
On-Chain Access Ability to interact with gnosis chain smart contracts and deploy a custom exploit contract
Protocol Analysis Identification of the exploitable vulnerability in Hundred Finance's contract logic - root cause: ecosystem / borrowing and lending
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 Flashloan Reentrancy Attack / Other vulnerabilities in code review
Audited by Audit Report 1 — still lost $6.2M. Prior audits don't guarantee safety, especially after post-audit code changes.

If you're auditing a protocol with similar architecture to Hundred Finance, these are the critical security checks that could have prevented this incident (March 2022).

  • Verify all logic paths related to Flashloan Reentrancy Attack / Other are guarded by proper access controls and input validation - see the Flash Loans Attacks 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

Security Audit History

Related Attack Classes

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

See all Flash Loans Attacks examples →

Proof-of-Concept Exploits

1 PoC available
poc-exploits - hundred finance

Sources & References

Learn to Prevent the Next Hundred Finance

The Hundred Finance 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