A Malicious Observer can use TON's Outbound Tracker to steal funds from Zetachain
The TON outbound tracker processing did not verify that the TON transaction's nonce matched the CCTX nonce, allowing a malicious Observer to submit a failed transaction hash with a different nonce. This caused the outbound to be marked as failed, triggering a refund while the attacker had already received the withdrawn funds, resulting in double spending.
Source: https://github.com/sherlock-audit/2025-04-zetachain-cross-chain-judging/issues/373
Found by
g
Summary
The processOutboundTracker() does not check that the TON transaction's nonce matches the CCTX nonce. This allows a malicious Observer to add a tx hash to the tracker that points to a TON withdrawal transaction with a different nonce and has failed, even though their withdrawal succeeded. This allows them to extract funds from Zetachain twice instead of once. Once through the successful withdrawal in TON and another through the refund for the reverted outbound CCTX in Zetachain.
Root Cause
There are no checks in processOutboundTracker() that the TON transaction's nonce does not match the nonce of the outbound CCTX. This enables the passing of withdrawal transaction hashes for different outbound CCTXs (those with different nonces).
Internal Pre-conditions
None
External Pre-conditions
None
Attack Path
- A malicious Observer withdraws TON coins from Zetachain to TON, creating an outbound CCTX with nonce 42.
- Their outbound CCTX is processed, and they receive the withdrawn TON.
- Before the outbound voting for the outbound CCTX 42 starts, the malicious Observer adds a transaction hash to the outbound tracker for CCTX 42. The hash points to a different withdrawal transaction that failed.
- Every Observer will process the outbound tracker for 42 and set its receiveStatus to failed.
- Every Observer will post a vote outbound for the outbound CCTX 42. They will vote that they observed a failure.
- Once the consensus is reached and the vote has been finalized, the failed outbound CCTX 42 will trigger trigger a revert and refund the TON coins to the sender in Zetachain.
Impact
Zetachain will permanently lose TON coins to the attacker. The attacker gains TON coins equal to their withdrawal amount on top of the amount withdrawn.
PoC
No response
Mitigation
Consider checking that the outbound CCTX nonce matches the nonce used in the TON transaction and that the transaction has incremented the nonce.
Discussion
sherlock-admin2
The protocol team fixed this issue in the following PRs/commits: https://github.com/zeta-chain/node/pull/3977
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
Zetachain permanently loses TON coins, and the attacker gains TON equal to their withdrawal amount on top of the amount withdrawn.
What the attacker needed
Malicious Observer role
The fix
The protocol team fixed this issue by checking that the outbound CCTX nonce matches the nonce used in the TON transaction and that the transaction has incremented the nonce.
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 report has not been written yet. The Original tab links to the source.
In a cross-chain system, observers watch for transactions on one chain and report back. Here, an observer could lie about a withdrawal by pointing to a different, failed transaction. The system then believed the withdrawal failed and refunded the user, even though the user already got the funds.
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.