Skip to content
DoS Audit finding Advanced

Malicious observer can block messages added through the inbound tracker

A malicious observer can send a message with an invalid Solana transaction hash that causes the Zetaclient to panic and permanently stop processing inbound tracker messages. This blocks all future deposits from being processed, trapping user funds.

0xalpharush Follow

Originally disclosed on Sherlock

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

Found by

0xalpharush

Summary

Zetaclient stops processing the inbound tracker indefinitely after a panic caused by parsing transaction signatures greater than 64 bytes with MustSignatureFromBase58. This causes following inbound messages to not be processed, leaving deposits that are processed via the inbound tracker blocked indefinitely. While this requires a "privileged" role, every validator is an observer and BFT consensus is supposed to be byzantine tolerant i.e. tolerate <1/3 malicious parties. Thus, one malicious observer should not be able to cause panics that prevent processing inbound Solana cross-chain transactions via the inbound tracker, trapping user founds.

Root Cause

The Zetaclient task, process_inbound_trackers, stops indefinitely after panicking due to parsing a transaction signature greater than 64 bytes with MustSignatureFromBase58. This can be caused by sending an invalid MsgAddInboundTracker as its ValidateBasic implementation does not ensure Solana tx hashes are exactly 64 bytes. This blocks all future MsgAddInboundTracker messages, and, even upon restarting Zetaclient, a malicious observer can immediately send another MsgAddInboundTracker message to crash Zetaclient. Patching ValidateBasic is app-hash breaking and funds will remain locked in the bridge without the corresponding mint if using MsgAddInboundTracker is required to process the cross-chain transaction. Thus, this qualifies as a denial of service vector.

Internal Pre-conditions

  1. The Zetaclient task, process_inbound_trackers, processes the malicious message from the inbound tracker and crashes when it parses the tx has with MustSignatureFromBase58.
  2. The panic recovery does not keep the task running following a panic as defer t.setStopState() also runs when a panic occurs, permanently stopping the task. This is clear by the log "Ticker stopped" which indicates defer t.setStopState ran and will not restart the task until the Zetaclient process is restarted.

External Pre-conditions

  1. A malicious observer sends a MsgAddInboundTracker with an invalid tx hash for the Solana chain.
  2. Another observer tries to add a Solana, cross-chain transaction to the inbound tracker and it's unable to be processed by other validators.

Attack Path

  1. A malicious observer sends a MsgAddInboundTracker with an invalid tx hash for the Solana chain.
  2. The Zetaclient task, process_inbound_trackers, process the malicious message from the inbound tracker and crashes when it parses the tx has with MustSignatureFromBase58.
  3. Pending deposits that need to be processed via inbound tracker are effectively blocked as validating and voting on inbound CCTX received via the inbound tracker has stopped.

Impact

New messages cannot be process through the inbound tracker without patching the issue. This means deposited funds would be stuck and users would not receive refunds or the assets they expected to mint indefinitely.

PoC

To exercise the inbound tracker, we must first patch the solana observer’s ObserveInbound method as is done to test the inbound tracker for the EVM. This simulates the functionality of adding a tx hash that was missed by the observers as the feature is intended to be used.

  1. Apply the diff containing the POC test to node/.
  2. Run E2E_ARGS='--verbose --test-filter solana' make start-solana-test
  3. Observe the logs of the zetaclients and orchestrator: docker logs orchestrator --follow, docker logs zetaclient0 --follow, docker logs zetaclient1 --follow. These are attached in the gist for reference.
  4. We will notice the zetalcients panics and shuts down the inbound processor task, and, as a result, the test will be unable to process new messages via the inbound tracker with the error, Error getting cctx by inboundHash: rpc error: code = NotFound desc = not found. This indicates that inbound messages cannot be processed until the validators are upgraded to be robust against this DOS vector.

Mitigation

Modify MsgAddInboundTracker's ValidateBasic implementation to ensure Solana tx hashes are exactly 64 bytes and that they only contain base58 characters. One reason to prefer this change is that a malicious observer could send very large based58 encoded strings as the tx hash currently, and that would stall zetaclient as base58 decoding is very slow. Enforcing the length to be valid addresses both DOS vectors.

Discussion

sherlock-admin2

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

The original report as published on Sherlock, by 0xalpharush. 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

The message validation does not check that Solana transaction hashes are exactly 64 bytes, and the processing task does not recover from panics, so a single malformed message permanently stops the task.

Impact

New messages cannot be processed through the inbound tracker, so deposited funds would be stuck and users would not receive refunds or the assets they expected to mint indefinitely.

What the attacker needed

Malicious observer role; ability to send MsgAddInboundTracker

The fix

The protocol team fixed this issue by modifying MsgAddInboundTracker's ValidateBasic to ensure Solana tx hashes are exactly 64 bytes and contain only base58 characters.

How it was found

  1. A malicious observer sends a MsgAddInboundTracker with an invalid tx hash for the Solana chain.
  2. The Zetaclient task process_inbound_trackers processes the malicious message and crashes when parsing the tx hash.
  3. Pending deposits that need to be processed via inbound tracker are blocked because the task has stopped.

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 validator (observer) can send a special message with a malformed transaction ID. The software that processes these messages crashes and stops working, so other valid transactions get stuck and users cannot get their deposits.

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

View all

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