BSC Token Hub Hack
What happened
On October 6, 2022, an attacker exploited BSC Token Hub, the native bridge between BNB Beacon Chain and BNB Smart Chain. The attacker forged cross-chain proof messages that the bridge accepted and caused two unauthorized 1 million BNB transfers, for 2 million BNB in total. BNB Chain validators paused the network and coordinated a patch, which prevented much of the minted BNB from being moved further.
The IAVL range-proof verifier did not bind every proof node and payload value into the computed root hash. In the affected path, a populated right child could be changed without changing the calculated root, so the bridge accepted an arbitrary cross-chain transfer payload.
How it happened
- The bridge relied on relayers to submit cross-chain packages and an IAVL Merkle proof to show that a Beacon Chain message was genuine.
- The attacker first registered as a relayer, then supplied a crafted range proof for an arbitrary withdrawal payload.
- In the affected IAVL verifier, a proof node with a populated left child did not include its right child in the root-hash calculation.
- That let the attacker preserve the expected root while inserting a forged right-side payload.
- The Token Hub treated the forged message as valid and issued 1 million BNB twice.
Protocol details
Funds Recovery
Recovered
$465.5M
Net Loss
$120,716,000
Evidence
- report Post-mortem rekt.news
- report @peckshield incident report twitter.com
- report @samczsun incident report twitter.com
- transaction BscScan first forged-package transaction bscscan.com
- transaction BscScan second forged-package transaction bscscan.com
- analysis BNB Chain ecosystem update bnbchain.org
- analysis DeFiLlama defillama.com
- analysis BSC Token Hub Compromise Investigation and Analysis coinbase.com
- analysis Binance Chain Bridge Exploitation Writeup - Part 1 blog.verichains.io
- analysis BNB Chain: A Decentralized Response reddit.com
Understand the attack patterns
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.