LendHub Hack

TOTAL LOST $6.0M
Medium Collateral Offboarding Mistake heco

Summarize with AI

Affected Chain heco Incident surface
Recovered - No recovery reported
All-Time Rank #398 By amount stolen
Auditors 3 Prior security audits

Incident Overview

LendHub is a decentralized lending platform based on the Huobi Ecological Chain. It supports pledged lending of multiple currencies on the Heco chain. Users can obtain incentive token LHB rewards by borrowing on LendHub.

LHB will serve as the hub of the LendHub platform, and realize the mutual accommodation and value transfer between Huobi ecological assets through pledged lending that supports the mutual accommodation of assets on the Huobi ecological chain.

Incident Report

Protocol / Project LendHub
Date of Incident
Affected Chain(s) heco
Attack Technique Collateral Offboarding Mistake
Classification Protocol Logic
Primary Source View Post-Mortem

Protocol Information

Protocol Type Lending
Smart Contract Language Solidity
Protocol Twitter/X @LendHubDefi

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 collateral offboarding mistake and Solidity and EVM internals
Capital Required Seed capital to cover gas and initial position setup
On-Chain Access Ability to interact with heco smart contracts and deploy a custom exploit contract
Protocol Analysis Identification of the exploitable vulnerability in LendHub's contract logic - root cause: protocol logic
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? Likely — with a thorough Collateral Offboarding Mistake audit checklist and test coverage
Audited by Audit Report 1, Audit Report 2, Audit Report 3 — still lost $6.0M. Prior audits don't guarantee safety, especially after post-audit code changes.

If you're auditing a protocol with similar architecture to LendHub, these are the critical security checks that could have prevented this incident (January 2023).

  • Verify all logic paths related to Collateral Offboarding Mistake are guarded by proper access controls and input validation
  • 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

Sources & References

Learn to Prevent the Next LendHub

The LendHub 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