Skip to content
DoS Audit finding Intermediate

Insufficient Transaction Broadcast Timeout in EVM Chains

The ZetaChain protocol hardcodes a 1-second timeout for broadcasting transactions to EVM chains, which is too short for networks like Arbitrum. When the initial broadcast times out, retries fail with 'nonce too low' errors, causing missed outbound tracker postings and cross-chain state inconsistencies.

0xpetern Follow

Originally disclosed on Sherlock

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

Found by

0xpetern

Summary

The ZetaChain protocol uses an excessively short timeout (1 second) for broadcasting transactions to EVM chains, causing premature timeouts particularly on networks with higher latency like Arbitrum. When the initial transaction broadcast times out, all subsequent retry attempts fail with "nonce too low" errors. This leads to missed outbound tracker postings, creating state inconsistencies between ZetaChain and connected EVM chains that can only be fixed through code changes requiring a hard fork.

Root Cause

In signer.go for evm chains, a 1-second timeout value is hardcoded, which is too short for transaction broadcasting.

Go
const (
	// broadcastBackoff is the initial backoff duration for retrying broadcast
	broadcastBackoff = 1000 * time.Millisecond

	// broadcastRetries is the maximum number of retries for broadcasting a transaction
	broadcastRetries = 5
)

Early timeout potentially lead to missed outbound tracker in Arbitrum. When the initial tx broadcasting gets timeout, all the subsequent retries will return nonce too low in Arbitrum, therefore ignores the outbound tracker posting.

Go
func (signer *Signer) broadcast(ctx context.Context, tx *ethtypes.Transaction) error {
	ctx, cancel := context.WithTimeout(ctx, 1*time.Second)
	defer cancel()

	return signer.client.SendTransaction(ctx, tx)
}

Required Links: https://github.com/sherlock-audit/2025-04-zetachain-cross-chain/blob/main/node/zetaclient/chains/evm/signer/signer.go#L32C1-L38C2 https://github.com/sherlock-audit/2025-04-zetachain-cross-chain/blob/main/node/zetaclient/chains/evm/signer/signer.go#L227C1-L232C2

Internal Pre-conditions

  1. Cross-chain transactions are being processed from ZetaChain to EVM chains
  2. Transaction broadcaster uses hardcoded 1-second timeout
  3. Network conditions cause transaction propagation to exceed 1 second
  4. System is configured to retry failed broadcasts

External Pre-conditions

  1. EVM chain (particularly Arbitrum) has higher transaction processing latency
  2. Network congestion increases transaction confirmation time
  3. Users are initiating cross-chain transactions requiring outbound trackers.

Attack Path

  1. The system attempts to broadcast transaction to Arbitrum
  2. 1-second timeout expires but transaction is still in mempool
  3. The system attempts to retry with same nonce, receives "nonce too low" errors
  4. Transaction fails and system fails to post outbound tracker due to nonce errors.

Impact

  1. Failed cross chain transaction.
  2. Missing outbound Trackers.
  3. Cross-chain state inconsistency.

PoC

No response

Mitigation

Modify timeout and backoff constants and uses these values in the broadcast function.

Go
// New constants with appropriate values
const (
    // broadcastBackoff is the initial backoff duration for retrying broadcast
    broadcastBackoff = time.Second * 6
    
    // broadcastRetries is the maximum number of retries for broadcasting a transaction
    broadcastRetries = 5
    
    // broadcastTimeout is the timeout for broadcasting a transaction
    // we should allow enough time for the tx submission and avoid fast timeout
    broadcastTimeout = time.Second * 15
)
Go
func (signer *Signer) broadcast(ctx context.Context, tx *ethtypes.Transaction) error {
	ctx, cancel := context.WithTimeout(ctx, broadcastTimeout)
	defer cancel()

	return signer.client.SendTransaction(ctx, tx)
}

Discussion

sherlock-admin2

The protocol team fixed this issue in the following PRs/commits: https://github.com/zeta-chain/node/pull/3850

The original report as published on Sherlock, by 0xpetern. 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 a hardcoded 1-second timeout for broadcasting transactions is too short for some EVM chains, and retries with the same nonce fail after the first attempt succeeds late.

What the attacker needed

Cross-chain transactions from ZetaChain to EVM chains; Network latency exceeding 1 second; System configured to retry failed broadcasts

The fix

The protocol team fixed this issue by modifying the timeout and backoff constants and using these values in the broadcast function.

How it was found

  1. The system attempts to broadcast a transaction to Arbitrum.
  2. The 1-second timeout expires but the transaction is still in the mempool.
  3. The system retries with the same nonce and receives 'nonce too low' errors.
  4. The transaction fails and the outbound tracker is not posted.

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 blockchain bridge needs to send transactions to another chain. If it gives up too quickly, the transaction might still go through later, but the bridge's retry will be rejected because the transaction nonce (a counter) is already used. This can leave the two chains out of sync.

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 0xpetern

View all

9 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.