Wanchain Hack

TOTAL LOST $10.0M
High Other Cardano BNB Chain

What happened

Wanchain's Cardano–BNB bridge incident was disclosed on July 21 after a July 20 attack that withdrew about 515 million NIGHT from the Cardano-side bridge treasury. Attack-time estimates put the exposure near $10M; the Midnight Foundation said the incident was isolated to Wanchain's bridge infrastructure.

Technical Root Cause

The Cardano bridge validator serialized adjacent variable-length numeric fields without fixed boundaries, separators, or length markers. Different number pairs could therefore produce the same byte sequence and hash, allowing a valid signature for a small withdrawal to be reinterpreted as authorization for a larger one.

Case & protocol details

Classification Bridge / Input Validation
Protocol Type Exploit/Other
Smart Contract Language Haskell
Official Website www.wanchain.org/
Protocol Twitter/X @wanchain_org

Market Context at Time of Hack

Token Price at Hack $0.0533
Market Cap at Hack $10.5M
% of Market Cap Stolen 94.84%
Token Categories
Marketplace Enterprise Solutions Privacy Interoperability Wanchain Ecosystem Cross-Chain Layer 1 Privacy Blockchain

Attack Timeline

The attacker obtained a legitimate MPC signature for a small cross-chain withdrawal, shifted the byte boundary between adjacent numeric fields, and reused the same signature to authorize a much larger withdrawal. Four withdrawals removed about 515.2M NIGHT from the Cardano-side treasury.

Practice this exploit pattern safely

Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.