Multichain Hack
What happened
In January 2022, a flaw in Multichain's legacy Anyswap Router V5 *WithPermit flow let a fake token contract satisfy a permit call without granting a valid permit. Attackers used the router's pre-existing approval from affected wallets to transfer real WETH and other assets to attacker-controlled contracts. Multichain patched affected contracts, but users who had already approved the router needed to revoke those approvals; several wallets were drained after the public alert.
The permit-enabled router flow accepted a successful low-level permit call as evidence of authorization even when a token's fallback returned without implementing permit semantics.
How it happened
- The vulnerable
depositWithPermitand router*WithPermitpaths assumed a token'spermitcall would revert when it was unsupported. - Some affected underlying tokens instead exposed a non-reverting fallback, so the call appeared successful without producing a valid authorization.
- An attacker deployed a fake underlying-token contract and called
anySwapOutUnderlyingWithPermit, setting a victim with an existing router approval asfrom, the fake contract astoken, and the victim's approved balance asamount. - The router then transferred the victim's genuine assets through its pre-existing allowance.
- The liquidity-pool contracts were upgraded promptly, but prior router approvals were user-controlled and could only be revoked by the wallet owner.
Protocol details
Security review history
- SlowMist View report
- PeckShield View report
- Trail of Bits View report
Funds Recovery
Recovered
$2.5M
Net Loss
$204,481
Evidence
- report Report multichainorg.medium.com
- report Post-mortem medium.com
- report @MultichainOrg incident report twitter.com
- report Multichain Contract Vulnerability Post Mortem medium.com
- analysis DeFiLlama defillama.com
- analysis Multichain vulnerability put assets at risk theblock.co
- analysis Nearly $1.5M in Ethereum still missing from Multichain crypto hack decrypt.co
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.