Skip to content
Smart contracts Audit finding Advanced

A Malicious Observer can broadcast the Solana cancel tx instead of the execute tx

All Solana Observers sign both the execute and increment nonce instructions when preparing an execute transaction. A malicious Observer can broadcast the increment nonce transaction instead of the execute transaction, consuming the nonce and preventing the execute outbound from being processed.

Al-Qa-qa Follow with Laksmana and g

Originally disclosed on Sherlock

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

Found by

Al-Qa-qa, Laksmana, g

Summary

Solana Observers will sign both the execute and increment nonce instructions when preparing an execute SPL transaction. Since all Observers will sign both instructions, a malicious Observer can broadcast the fallback transaction (increment nonce) instead of the execute transaction. A single Observer can prevent Solana execute instructions indefinitely.

Root Cause

When preparing the execute or execute SPL transactions, all the observers TSS-sign both the execute and increment nonce instructions. Since the TSS signature for the increment nonce transaction is available, a malicious Observer can use this to broadcast the increment nonce transaction instead of the execute transaction.

GOLANG
// in `prepareExecuteTx()` and `prepareExecuteSPLTx()`

tx, err := signer.signTx(ctx, inst, params.CallOptions.GasLimit)
// ... snip ...

fallbackTx, err := signer.signTx(ctx, fallbackInst, 0)

Internal Pre-conditions

None

External Pre-conditions

None

Attack Path

  1. A malicious Observer modifies their Solana Observer code to broadcast the increment nonce transaction instead of the execute transaction.
  2. Once an execute outbound is processed, the malicious Observer can broadcast the increment nonce without delay, so they can be the first to broadcast and consume the nonce.
  3. The nonce will be incremented, and the execute Outbound is effectively cancelled.
  4. This attack can be done repeatedly to prevent most execute Outbounds from getting broadcasted.

Impact

A single Observer can prevent Solana execute Outbounds indefinitely.

PoC

No response

Mitigation

No response

Discussion

sherlock-admin2

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

The original report as published on Sherlock, by Al-Qa-qa. 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 system allows all observers to sign both the execute and increment nonce instructions, so a malicious observer can use the increment nonce signature to broadcast that transaction instead of the execute transaction.

Impact

A single Observer can prevent Solana execute Outbounds indefinitely.

What the attacker needed

Malicious Observer role

The fix

The protocol team fixed this issue in a pull request.

How it was found

  1. A malicious Observer modifies their Solana Observer code to broadcast the increment nonce transaction instead of the execute transaction.
  2. Once an execute outbound is processed, the malicious Observer broadcasts the increment nonce without delay, being first to consume the nonce.
  3. The nonce is incremented, and the execute Outbound is effectively cancelled.
  4. This attack can be repeated to prevent most execute Outbounds from being broadcasted.

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 blockchain system, multiple observers watch and sign transactions. Here, they sign two transactions: one to execute an action and one to increment a nonce (a counter). A malicious observer can broadcast the nonce increment instead of the execute, which cancels the execute. This means one bad observer can block legitimate actions.

What is Smart contracts?

Flaws in on-chain code that let an attacker drain funds, freeze them or break the protocol's accounting.

More by Al-Qa-qa

View all

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

Smart contract vulnerabilities

The lesson behind this report.

Flaws in on-chain code that let an attacker drain funds, freeze them or break the protocol's accounting.