Hunt prep
Before you test ZetaChain
What 48 disclosed reports say about ZetaChain: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 32 | 0 | – | – | $0 |
| DoS lesson | 13 | 0 | – | – | $0 |
| Access control lesson | 2 | 0 | – | – | $0 |
| Race condition lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
Inconsistent Voting Index Leads to Double Spends in Future
The report recommends keeping a separate record of events that have already occurred, using a stable identifier such as tx hash, event id and chain id, and adding timeouts and versioning as defence in depth.
Disclosed
-
Gas Coin Setup Result In Immediate Profitable Arbitrage
The initial liquidity should be made much smaller (e.g., a mantissa of -3) or made configurable via the message passing.
Disclosed
-
AddToInTxTracker doens’t allow permissionless tx validation for Bitcoin chain, InTxTracker permissionless tx validation for Bitcoin chain will always fail
Add a check for Bitcoin chain IDs in AddToInTxTracker so that Bitcoin transactions are verified correctly.
Disclosed
-
Limited Voting Options Allow Ballot Creation Spam
Allow honest observers to cast a negative observation vote for these vote types, so that when the ballot matures the dishonest observer is slashed.
Disclosed
-
A single malicious observer can exploit the infinite gas meter to grief ZetaChain blocks without proper gas compensation
The infinite gas meter should only be used when all messages in the transaction are of the observer message types.
Disclosed
-
Zeta token supply checker incorrectly classifies in-transit cctxs as settled resulting in misleading checks
The supply checker should be allowed to work with a margin of error, as the reporter suggests, because a precise fix may not be viable.
Disclosed
-
Lack of message ordering may lead to failed transactions
The protocol should offer an option to enforce message ordering per sender and source chain, similar to LayerZero's message ordering feature.
Disclosed
-
Inbound Tx Confirmation Bypass via Malicious Observer
The inbound tracker should enforce the same block confirmation limits as the normal inbound transaction handler, ideally by sharing code between the two paths.
Disclosed
-
An already executed InTxTracker can still be added
The AddToInTxTracker function should verify that the inbound transaction has not already been executed before storing the tracker.
Disclosed
-
ZetaSupplyChecker calculation error
The amount should only be recorded when the coin type is ZETA.
Disclosed
-
Zeta Observer nodes are not listening to internal TXs , which makes Smart Contract Wallets users’ funds locked when making Omnichain calls .
Observer nodes should also inspect internal transactions and treat any internal call to the TSS address as an inbound omnichain call, decoding the data accordingly.
Disclosed
-
Broken NonceVoter Allows Observer to Halt the Chain
The function should be removed or the correct voting logic implemented, as the codebase already has another design for setting chain nonces.
Disclosed
-
A malicious inbound transaction can prevent subsequent events from being processed by observers
The observer should skip only the invalid event and continue processing the remaining events.
Disclosed
-
Outbound zEVM cross-chain messages ignore the user-specified gas limit and may fail with an out-of-gas error
The code should use the user-specified destinationGasLimit instead of hardcoding the gas limit to 90000.
Disclosed
-
Outbound transactions that can not be broadcasted to an external EVM chain cause a Denial of Service of all outgoing transactions to this chain
The system should handle repeatedly failed RPC calls and allow a blocked nonce to be reassigned to another cctx, and should lower the maximum message length or adjust the minimum gas limit to cover intrinsic gas costs.
Disclosed