ChainBleedv0.1 · open intel
← back to feed·BSCBRIDGE2022-01-28 · 4y ago
Incident · DEFILLAMA

Qubit

Transfer Logic Exploit
Estimated loss
$80.00M
VERDICT —AUDIT-CATCHABLE
A standard pre-deployment review would flag both the dead legacy deposit() left in the bridge surface and the SafeToken helper's missing extcodesize/zero-address check. Either fix kills the exploit. Classic dead-code + custom-SafeERC20 footgun.
▰ METHOD
Transfer Logic Exploit
BRIDGEBRIDGEBYTECODE CATCHABLEAI SCANNABLE
Root cause

QBridge on Ethereum exposed a legacy deposit() function alongside the newer depositETH() entry point. The function relied on a custom SafeToken.safeTransferFrom() helper that used a raw low-level call() to the token contract, never asserting that the target address contained bytecode (no extcodesize check). The attacker passed tokenAddress = address(0), which was already whitelisted to represent native ETH for accounting purposes, and supplied amount = 200 ETH while sending zero msg.value. Because address(0) is an EOA with no code, the call() returned success with empty returndata; safeTransferFrom did not revert, and the contract emitted a Deposit event as if 200 ETH had been received. The BSC relayer indexed that event and minted qXETH on the destination chain. The attacker repeated the deposit thirteen times to accumulate ~206,809 qXETH and borrowed BNB and other assets against it on Qubit's lending market.

▰ PROOF OF CONCEPT
DEFIHACKLABS
src/test/2022-01/Qubit_exp.sol
view forked test on github ↗

Reproducible Foundry test fork from SunWeb3Sec/DeFiHackLabs. Clone the repo, run forge test against the file path above, and replay the exploit against a mainnet fork at the historical block. Use for reproduction only — not for live targets.

Forensic narrative

Classification: Protocol Logic. Technique: Transfer Logic Exploit. Bridge hack. Target type: DeFi Protocol. Affected chains: BSC. Implementation language: Solidity.

Primary source
https://blocksecteam.medium.com/when-safetransfer-becomes-unsafe-lesson-from-the-qbridge-security-incident-c32ecd3ce9da
Sourced from
DefiLlama Hacks dataset · api.llama.fi/hacks
Technical record
chain
bsc
protocol
Qubit
bug_class
bridge
date_occurred
2022-01-28
loss_usd
$80,000,000
classification
Protocol Logic
technique
Transfer Logic Exploit
target_type
DeFi Protocol
language
Solidity
bridge_hack
YES
source_id
dl:516
Related — same bug class· bridge
2026-05-16
25d ago
ETH
Adshares
Bridge-Minter Fake-Mint Exploit (wADS)
bridge
$628.0K
AMBIGUOUS
2026-05-15
26d ago
MULTI
THORChain
Cross-Chain Router Exploit (multi-chain drain)
bridge
$10.70M
AMBIGUOUS
2026-04-29
1mo ago
BASE
Syndicate
Commons Bridge Exploit
bridge
$380.0K
UNRATED
2026-04-29
1mo ago
MULTI
Syndicate
Exploit
bridge
$330.0K
UNRATED
2026-04-27
1mo ago
MULTI
ZetaChain
GatewayEVM Contracts Exploit
bridge
$300.0K
UNRATED
2026-04-18
1mo ago
MULTI
Kelp
LayerZero OFT bridge exploit
bridge
$293.00M
CONFIG LAYER
ChainBleed — live web3 threat intelligence