Skip to content

Code4rena

ZetaChain

Every publicly disclosed report for ZetaChain and what kind of bugs they were.

disclosed reports
48
most reported class
Business logic
bug classes found
4
first disclosure
2024
Find ZetaChain on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what ZetaChain chose to make public.

Business logic

Inconsistent Voting Index Leads to Double Spends in Future

The voting index for cross-chain transactions is a hash of the entire message, so any change to a field (such as gas limit or asset) alters the index. Since duplicate protection relies solely on this index, an attacker could resubmit an old transaction after a client update and have it processed again, leading to double spends.

ZetaChain

High
Business logic

Gas Coin Setup Result In Immediate Profitable Arbitrage

When a new gas coin is added, the protocol automatically creates a liquidity pool with a fixed 0.1 amount of the gas token and 0.1 WZETA, which can be highly imbalanced for valuable tokens like BTC. An attacker could monitor for new chain support and backrun the liquidity addition to swap ZETA for the gas token at a favourable rate, making an instant profit at the protocol's expense.

ZetaChain

Medium
Business logic

Limited Voting Options Allow Ballot Creation Spam

Certain voting message types only allow a success observation vote, so a compromised observer can create spam ballots with false observations that honest observers cannot counter-vote. This lets the spammer avoid slashing while forcing honest observers to process the ballots.

ZetaChain

Medium
DoS

A single malicious observer can exploit the infinite gas meter to grief ZetaChain blocks without proper gas compensation

The transaction ante handler applies an infinite gas meter to any transaction containing at least one observer-only message, even if other messages are present. A malicious observer could bundle many gas-heavy messages with such a message, pay negligible gas, and fill block space, potentially preventing other transactions from being processed.

ZetaChain

Medium
Business logic

Lack of message ordering may lead to failed transactions

Cross-chain messages sent from an external chain are not guaranteed to be finalised in the order they were sent, because observers vote independently and at different times. A dApp that relies on two messages being processed in sequence, such as a stake followed by an unstake, could see the second message executed first and the transaction revert on the destination chain.

ZetaChain

Medium
Business logic

Inbound Tx Confirmation Bypass via Malicious Observer

The inbound transaction tracker in ZetaChain did not check block confirmations before acting on cross-chain transactions, unlike the normal event handler. A malicious or compromised observer could add a transaction from a fork to the tracker and later profit from a block reorganisation, potentially causing a double spend.

ZetaChain

Medium
DoS

An already executed InTxTracker can still be added

The AddToInTxTracker function does not check whether an inbound transaction tracker has already been executed, so anyone can re-add trackers for transactions that were already processed. Observers keep fetching and voting on these duplicate trackers, and because the vote digest already exists the vote fails and the tracker is never removed, so an attacker could flood the network with such trackers and cause congestion.

ZetaChain

Medium
Business logic

ZetaSupplyChecker calculation error

The ZetaSupplyChecker summed the amounts of all aborted cross-chain transactions without checking whether each transaction's coin type was ZETA, so non-ZETA amounts were included. This made the reported aborted amount larger than the real ZETA amount and caused the supply verification result to be wrong.

ZetaChain

Medium
Business logic

Zeta Observer nodes are not listening to internal TXs , which makes Smart Contract Wallets users’ funds locked when making Omnichain calls .

ZetaChain's observer nodes only checked the top-level 'to' field of transactions for the TSS address, ignoring internal transactions. When a smart contract wallet sent funds to the TSS address via a low-level call, the observers did not detect the deposit, so the funds were locked and never credited on ZetaChain.

ZetaChain

High
Access control

Broken NonceVoter Allows Observer to Halt the Chain

The NonceVoter function in ZetaChain's crosschain module does not implement the intended voting logic and instead directly sets chain nonces. A single authorized observer can change a chain's nonce, causing UpdateNonce to fail and halting critical cross-chain operations, potentially locking funds.

ZetaChain

High
Race condition

Outbound Confirmation Tracker Race Condition Leads to a Double Spend

A race condition in the outbound transaction tracker allows an attacker to insert a fake reverted transaction with the same nonce as a legitimate cross-chain transfer, causing the system to process the fake transaction first and either revert the original transfer (double spend) or block it (denial of service).

ZetaChain

High
Business logic

Using unconfirmed UTXOs as inputs for transactions is vulnerable to griefing attacks

The Bitcoin client fetched unconfirmed UTXOs for the TSS address and used them as inputs for outgoing transactions. An attacker could send a low-fee transaction to the TSS address, causing outgoing transactions to remain unconfirmed, or replace it via RBF to invalidate the inputs and halt BTC transfers.

ZetaChain

High
Business logic

User not refunded for failed Zeta gas payment in cross chain transaction

When a cross-chain transaction on ZetaChain fails during processing, the code marks it as aborted but only attempts a refund for ERC20 inbound transactions, and for cross-chain swaps no refund logic exists at all. This can leave user funds temporarily or permanently frozen, depending on whether TSS holders manually intervene.

ZetaChain

Medium
Business logic

Funds from reverted transaction may be lost/locked

When a cross-chain transaction is reverted on the destination chain, the revert transaction on the source chain can fail, causing the cross-chain transaction to be marked as Aborted. The user's funds are then lost because the tokens are burned on the source chain and cannot be minted back.

ZetaChain

Medium
DoS

The outbound transaction tracker only keeps track of a maximum of two different transaction hashes, preventing cctxs from being efficiently confirmed and blocking the outbound transaction queue

The outbound transaction tracker only stores up to two transaction hashes per pending cross-chain transaction. When gas price increases cause the transaction hash to change, observers cannot find the new hash, so the transaction remains stuck and blocks other pending transactions from being sent.

ZetaChain

Medium
Business logic

ERC-20 deposit cctxs are refunded to the EOA instead of an intermediary contract

The inbound ERC-20 deposit handler set the transaction signer (EOA) as the sender of the cross-chain message instead of the contract that called the deposit function. If the cross-chain transaction failed and was refunded, the refund went to the EOA rather than the intermediary contract, allowing the EOA to steal funds held by that contract.

ZetaChain

Medium
Business logic

TSS Key Voting Hash Collision

The voting hash for TSS key generation did not include the public key being voted on, so the last observer could submit a different public key that produced the same hash. This allowed the attacker to replace the TSS address with their own key, potentially stealing all funds and compromising the connector contract.

ZetaChain

High