Anyswap Hack

REPORTED LOSS $7.9M
Medium ECDSA nonce reuse ethereum bsc fantom

What happened

On July 10, 2021, an attacker exploited Anyswap’s prototype V3 cross-chain liquidity pools after two BSC MPC-router signatures reused the same ECDSA R value. The duplicate nonce made it possible to derive the MPC account’s private key, then issue unauthorized router actions that drained USDC and MIM on Ethereum, BSC, and Fantom. Anyswap said its default bridge and V1/V2 were unaffected.

Technical Root Cause

The V3 router’s MPC signing process produced two ECDSA signatures with the same R value, indicating nonce reuse. That cryptographic failure allowed recovery of the MPC private key and turned bridge-signing authority into an unauthorized withdrawal capability. This was not a signature-replay incident.

Case & protocol details

Classification Bridge
Protocol Type Exploit/Access control
Affected asset / contract ANY
Official Website anyswap.exchange/
Protocol Twitter/X @AnyswapNetwork

How it happened

Anyswap detected two V3 Router MPC signatures on BSC with the same R value. Reusing an ECDSA nonce can reveal the signing private key, and the team said it reproduced that result. With the derived MPC authority, the attacker initiated unauthorized V3 router actions across the affected pools.

The official disclosure identifies four drains: USDC on Ethereum, BSC, and Fantom, plus MIM on Ethereum. The team fixed signature generation to prevent duplicate R values, audited V1/V2 transactions, and planned a V3 relaunch after the timelock.

Build your security review skills

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