Skip to content
DoS Audit finding Advanced

Outbound CCTXs to external chains are not properly validated, preventing subsequent outbounds to the external chain from being processed

Outbound cross-chain transactions to external chains (Solana, SUI, TON) are not properly validated, allowing an attacker to create invalid outbound transactions that fail in the zetaclient signer. Because the nonce is not incremented on failure, all subsequent outbound transactions to that chain are blocked.

berndartmueller Follow

Originally disclosed on Sherlock

Source: https://github.com/sherlock-audit/2025-04-zetachain-cross-chain-judging/issues/322

This issue has been acknowledged by the team but won't be fixed at this time.

Found by

berndartmueller

Summary

Outbound CCTXs to external chains are not properly validated. This can lead to invalid and unprocessable outbound CCTXs that cannot be relayed and executed on the external chain. Due to the strict nonce handling, a "blocked" nonce will block all subsequent CCTXs from being processed.

Root Cause

The validateZRC20Withdrawal() function is essential to validate the parameters of an outbound ZRC20 withdrawal, a CCTX that is sent from ZetaChain (ZEVM) to external chains, e.g., EVM chains, Bitcoin, Solana, SUI, and TON.

However, the current implementation only checks Bitcoin and Solana, SUI, and TON are completely missing.

Following is a (non-exhaustive) list of missing checks:

Solana

The Solana zetaclient signer errors in

  • prepareExecuteTx() (and other instances where DecodeExecuteMsg() is called) when DecodeExecuteMsg() is unable to decode the execute message (e.g., due to incorrect payload)
  • TryProcessOutbound() when the CoinType is CoinType_NoAssetCall (using GatewayZEVM.call())

Impact:

Solana signer's TryProcessOutbound() will not fully process the CCTX, nor will it send a fallback (cancel) transaction to the Solana network to increase the nonce. This will block further CCTXs from being processed.

SUI

TON

In the TON zetaclient's ProcessOutbound():

Go
101: 	if cctx.InboundParams.CoinType != coin.CoinType_Gas {
102: 		return Invalid, errors.New("only gas coin outbounds are supported")
103: 	}

Currently, it is possible to use GatewayZEVM.call() with TON as the destination chain, which sets the coin type to CoinType_NoAssetCall. This errors in the TON signer, causes subsequent CCTXs to be stuck due to the nonce not being incremented.

Go
110: receiver, err := ton.ParseAccountID(params.Receiver)
111: if err != nil {
112: 	return Invalid, errors.Wrapf(err, "unable to parse recipient %q", params.Receiver)
113: }

In line 110, parsing an invalid receiver account ID also errors, so that further CCTXs are blocked.

Lines 295-297, the TON gateway contract assert a workchain = 0 address. E.g., if 0f8yaVdkvWSuax8luWhDXY_0X9Am1ASWlJz4OI7M-jqcM2NC (encode with https://ton.org/address/) is used, with workchain -1, the TON transaction will fail.

The recipient must not be the TON gateway address.

TON withdrawals with amount = 0 revert. This is possible when withdrawing from ZEVM with v1 ZERC20 withdraw, which allows 0 amounts.

All of this will cause the TON transaction to revert, preventing the nonce from being increased, blocking subsequent CCTXs.

Internal Pre-conditions

None

External Pre-conditions

None

Attack Path

Use any of the above-mentioned missing checks to create an outbound CCTX that will error in the respective chain's zetaclient so that the nonce is not being used and thus all subsequent CCTXs are blocked.

Impact

Invalid and unprocessable outbound CCTXs that cannot be relayed and executed on the external chain. Due to the strict nonce handling, a "blocked" nonce will block all subsequent CCTXs from being processed.

PoC

N/A

Mitigation

Consider adding the missing checks for the mentioned chains to ensure only valid and actually processable outbound CCTX are put into the queue for the zetaclients to process.

The original report as published on Sherlock, by berndartmueller. Images and videos are our own copies; raw HTML is shown as text. View it on Sherlock.

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

Root cause

Likely the validation function for outbound ZRC20 withdrawals only checks Bitcoin and Solana, missing checks for SUI and TON, and also missing checks for Solana edge cases.

What the attacker needed

None

The fix

The missing validation checks for SUI and TON, as well as additional Solana checks, should be added to ensure only valid outbound transactions are queued.

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.

A cross-chain transaction (CCTX) moves assets between blockchains. The system uses a counter (nonce) to keep transactions in order; if one transaction fails and the counter is not advanced, later transactions get stuck. This report shows that some invalid transactions are accepted and then fail, causing a blockage.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More by berndartmueller

View all

97 more disclosed reports, best first.

More from ZetaChain Cross-Chain

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.