CrossCurve Exploit Post-Mortem: $1.4M Lost to a Missing Access Co
The CrossCurve bridge's ReceiverAxelar contract had a publicly callable expressExecute() function that lacked validation of the message origin from the Axelar Gateway. An attacker could spoof a cross-chain message and cause the contract to release approximately 999.8 million EYWA tokens to their wallet.
CrossCurve is a cross-chain bridge protocol that connects multiple blockchain networks. Its architecture combines Axelar-based receiver contracts with internal PortalV2 bridge contracts.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The expressExecute() function was missing the check that verifies a message originated from the Axelar Gateway, relying only on a commandId uniqueness check that could be bypassed with a fresh identifier.
Impact
The attacker drained the PortalV2 contract's balance from approximately $3 million to near zero, stealing $1,441,892; while EYWA was also minted on Ethereum, frozen CEX deposits and limited liquidity prevented further liquidation there.
What the attacker needed
None
The fix
The fix is a one-line change: add the gateway validation check before executing any payload.
How it was found
- The attacker generated a fresh commandId and supplied a fake sourceChain and sourceAddress to make the transaction appear to be a legitimate cross-chain message from Axelar.
- The attacker constructed an ABI-encoded payload instructing the contract to mint or transfer approximately 999.8 million EYWA tokens to their own wallet.
- The contract’s only check was whether the commandId had been used before; since the attacker supplied a fresh identifier, the check passed.
- The contract decoded and executed the attacker-controlled payload, updated internal state to simulate a valid cross-chain receipt, and transferred tokens to the attacker’s wallet.
- The same process was repeated across multiple networks.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A cross-chain bridge is a service that moves assets between blockchains. This bridge had a function that anyone could call to pretend a message came from the official bridge network, and the contract would release funds without checking the sender. The attacker used this to mint a huge amount of the bridge's token to themselves.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.