Across V3
A malicious relayer could exploit the early-return optimisation for self-relays when the recipient is the Multicall Handler, causing the relay to be marked as filled without transferring tokens or executing the intended cross-chain action. The attacker could then claim the relayer refund and steal the full value of the user's transaction.
mirror.xyz
Published on mirror.xyz
Across V3 is a cross chain optimistic bridge. Users deposit assets on an origin chain, and relayers compete to immediately fulfill the request on the destination chain.
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 early-return optimisation for self-relays assumed that no execution is needed when the recipient is the sender, but this fails when the recipient is a contract like the Multicall Handler that can execute arbitrary actions on behalf of the caller.
Impact
A malicious relayer could steal the full value of certain cross-chain transactions by marking them as filled without delivering funds to the user.
What the attacker needed
User performs a cross-chain action; recipient is the Multicall Handler; attacker acts as a relayer
The fix
The early-return optimisation for self-relays was removed entirely, and Spoke Pools on all chains were patched within hours.
How it was found
- A user performs a cross-chain action using the Multicall Handler as recipient, depositing funds on the origin chain.
- On the destination chain, a malicious relayer calls the Multicall Handler and uses it to call fillV3Relay(), setting the same chain as the repayment chain.
- The relay is marked as filled but token transfer and message execution are skipped.
- Other relayers consider the relay filled and see no suspicious behaviour.
- When the relayer refund root is added, the Multicall Handler is entitled to claim the refund.
- The attacker calls executeRelayerRefundLeaf() via the Multicall Handler to claim the funds and drain them to themselves.
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 bridge lets you send funds from one blockchain to another. Normally, a relayer (a helper) sends you the funds on the destination chain and later gets repaid by the bridge. The bridge had a shortcut: if the relayer is sending to themselves, it skips the actual transfer. But an attacker could abuse this shortcut by pretending to be the special contract that handles cross-chain actions, so the bridge thought the transfer was done when it wasn't. The attacker then collected the repayment, stealing the user's money.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.