Hunt prep
Before you test ZetaChain Cross-Chain
What 43 disclosed reports say about ZetaChain Cross-Chain: 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 | 20 | 0 | – | – | $0 |
| DoS lesson | 13 | 0 | – | – | $0 |
| Access control lesson | 6 | 0 | – | – | $0 |
| Crypto lesson | 2 | 0 | – | – | $0 |
| Smart contracts lesson | 2 | 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.
-
ZETA coin type outbound CCTXs can be sent to unsupported external chains, which results in a DoS of the outbound queue
The ZETA token contract address should be converted to an address type and checked with the existing empty-address helper rather than compared to an empty string.
Disclosed
-
A Malicious Observer can broadcast the Solana cancel tx instead of the execute tx
The protocol team fixed this issue in a pull request.
Disclosed
-
Lost funds on ZetaChain due to unprocessed ZEVM logs
The ZEVM logs should always be processed so that outbound cross-chain transactions are created, though the team has acknowledged the issue and will not fix it at this time.
Disclosed
-
Impartially aborted CCTXs are incorrectly marked as refunded, resulting in a loss of funds
The CCTX should only be marked as refunded if the refund was successful.
Disclosed
-
Wrong postGasPrice() implementation can lead to loss of funds
The gas price should only be set after it has been posted and validated, as done in the Ton implementation; the protocol team fixed this issue.
Disclosed
-
Add/remove authorization messages are not usable due to missing registration
The missing message types were added to RegisterCodec and RegisterInterfaces, and the protocol team fixed the issue.
Disclosed
-
Incorrect Formate for transaction building, and transaction executions In Solana will lead to revert all execute Operations
The signer code should be changed to remove the writable flag from the destination program and add it to the destination program PDA, but the team has acknowledged the issue and will not fix it at this time.
Disclosed
-
DoSed SUI node on withdrawals to SUI due to lack of payload validation
The transaction should be reverted or the nonce increased to allow processing to continue.
Disclosed
-
Stateful precompiles panic on empty calldata, which can be exploited to prevent finalizing outbound CCTXs
The precompile should check that the input is at least four bytes long before reading the selector; the team acknowledged the issue but will not fix it at this time.
Disclosed
-
SUI receiver lacks validation
The receiver address is now properly validated and any invalid receiver will trigger the cancel transaction broadcasting.
Disclosed
-
Removing an observer doesn't update an active ballot's voter list, leading to deadlocks
When an observer is removed from the observer set, the system should also remove that observer from the voter list of every active ballot.
Disclosed
-
The withdraw method in the Solana node doesn't increment the nonce when the withdrawal transaction fails
The withdraw method should be updated to include an increment nonce instruction.
Disclosed
-
EVM outbound transaction gas limit can be set lower than the intrinsic gas limit, which prevents sending the transaction and blocks all other outbound transactions to this chain
The protocol team fixed this issue by re-adding a minimum gas limit check, ensuring that for any EVM CCTX with contract calls, the gas is set to at least 100,000.
Disclosed
-
V1 ZEVM logs incorrectly use the `emittingContract` address as the CCTX `sender` address
The functions should be fixed to use the correct sender address: for ZRC20 withdrawals, use the `From` field of the event; for Zeta sent events, use the `zetaTxSenderAddress`.
Disclosed
-
Dirty EVM state changes are not committed before precompile calls, resulting in double-spending or loss of ZETA tokens
The EVM state changes should be committed before executing the Cosmos SDK precompile code, as in Evmos' implementation.
Disclosed