DeepBrainChain

CertiKFiles named in the report

CertiK reviewed DeepBrain Chain (DeepBrainChain) on 30 Dec 2024: 10 findings, 1 critical; 7 marked fixed, 1 acknowledged, 2 open.

1 critical finding, fixed
Open the reportOpen DeepBrain Chain’s security record

Report hosted on skynet.certik.com.

Trustblock does not review code.

Findings10

Statuses are the security firm’s own, from its report.

SeverityOpenAcknowledgedFixed
Critical001
High010
Medium000
Low206
LowMissing Zero Public Key ValidationOpen

The `transfer` function enables the transfer of a specified amount to a given address, which must be a valid public key represented as a hexadecimal string. The function employs a delegate call to a precompiled contract to execute the transfer operation. However, this function does not validate whether the `to` address is the zero address. Transferring assets to the zero address can result in potential financial loss.

LowPotential Missing Validation on LengthOpen

In `bridge.sol`, the input string for the public key is restricted to a length of 66 characters to account for the "0x" prefix: ```solidity require(bytes(to).length == 66, "The address is invalid. This address only supports public keys, and the length in hexadecimal is 66"); ``` However, this restriction may not apply when users invoke the precompiled contract directly without going through `bridge.sol`. Specifically, the Rust code uses unwrap_or, which allows the operation to proceed even if the "0x" prefix is absent: ```rust let to = to.strip_prefix("0x").unwrap_or(&to); ``` This means that addresses without the "0x" prefix could be processed silently, potentially bypassing the intended validation.

Contracts in scope

No deployed address is recorded for this audit.

The report names a repository or files. Open the report to see its scope.

Repository and files the report names (2)

  • system/contracts/bridge/Bridge.sol
  • system/contracts/logic/Logic.sol

Part of DeepBrain Chain’s security record

DeepBrain Chain
Audits1 audit by 1 firmLast audit Dec 2024, by CertiK.
Critical findingsNo open critical findingsIn that report, 1 critical finding was reported. It is marked fixed by the firm that reported it.
Open DeepBrain Chain’s security record

Security firm

CertiK

1,044 projects reviewed · 1,375 reports · latest May 2025

See CertiK’s audits

Something wrong on this page? A missing report, a wrong date, a finding that was fixed since. Tell us and we check it against its source.

Tell us