MARBLEX audit reports

BNB Chainmarblex.io

MARBLEX has 4 public audit reports from CertiK; the latest is CertiK, 11 Apr 2024; 1 critical finding, marked fixed by the firm. It also holds 2 deployed contracts on 1 chain and 1 incident (latest 11 Oct 2023).

Critical and high findings
No open critical findings; 2 high open, 2 high acknowledged in the firms’ reports
Across the 4 reports, 1 critical finding was reported. It is marked fixed by the firm that reported it. See the open and acknowledged findings
Incident
Incident 11 Oct 2023
Source: De.Fi incident database. 2 audits have been published since. See the incident
Open the latest report
Your label, live
Get the label for your site

Last updated . It holds audits and findings, contracts and incidents up to Nov 2026. Trustblock does not review code.

Incidents1

Attached through a shared contract address. Our incident data ends in Nov 2026.

Incident

Incident,

Source: De.Fi incident database.

Audits before it
2.
Audits since
2, the latest dated 11 Apr 2024.

Audits4

Newest first

ReportSecurity firmDateScopeCritical findingsFindingsSource
Marblex - Audit 2Security firm: CertiKDate: Scope: Not recorded; see the reportNone openFindings: 1 high · 1 low
1 fixed · 1 acknowledged
skynet.certik.com ↗
Warp - AuditSecurity firm: CertiKDate: Scope: Not recorded; see the reportNone openFindings: 1 high · 1 medium · 8 low
9 fixed · 1 acknowledged
skynet.certik.com ↗
MarblexSecurity firm: CertiKDate: Scope: Files listed1 critical finding, fixedFindings: 1 critical · 2 high · 15 low
12 fixed · 6 open
skynet.certik.com ↗
MBX token-AuditSecurity firm: CertiKDate: Scope: Not recorded; see the reportNone openFindings: 3 high · 1 low
4 open
skynet.certik.com ↗

Findings30

30 findings in 4 reports: 22 fixed, 2 acknowledged (the team chose not to change the code), 6 open.

SeverityOpenAcknowledgedFixed
Critical001
High220
Medium001
Low4020

Not fixed (8)

HighAcknowledgedCentralization Related RisksMarblex - Audit 2 · CertiK · 11 Apr 2024

### `marblex_coin::coin_mbx` Module 1. **Minter Role**: - Control over the creation of new coins. - Function: - `mint_to`: Mints new coins and allocates them to a specified address, influencing the coin supply. - If the private key is compromised, it could lead to overproduction or misallocation of coins, affecting the currency's value. 2. **Burner Role**: - Authority over the destruction of coins. - Function: - `burn`: Destroys a specified amount of coins, reducing the total supply. - If the private key is compromised, the attacker can manipulate the total coin supply, impacting the currency's economics. 3. **Freezer Role**: - Restrict access to user accounts. - Functions: - `set_freeze`/`set_freeze_many`: Freezes user accounts, preventing transactions. - `set_unfreeze`/`set_unfreeze_many`: Unfreezes accounts, restoring transaction capabilities. - If the private key is compromised, the attacker can freeze/unfreeze users' accounts and disrupt user access and operations. 4. **Pauser Role**: - Halt or resume contract operations. - Functions: - `pause`: Suspends all contract activities. - `unpause`: Resumes contract operations. - If the private key is compromised, the attacker can disrupt service availability for all users. 5. **Owner**: - refers to @marblex_coin, which can `initialize` the `coin_mbx` module. - If the private key is compromised, the attacker can take advantage of the privileged functionalities. ### `marblex_coin::access_control_enumerable` Module 1. **Owner Role**: - The deployer of the module, which has control over role management. - Key Functions: - `transfer_ownership`: Transfers `DEFAULT_ADMIN_ROLE` ownership to a new address. - `set_role_admin`: Assigns or changes the admin for any role, giving the owner control over who manages each role. - If the private key is compromised, the attacker can reallocate roles or change ownership, gaining full control of the module. 2. **DEFAULT_ADMIN_ROLE**: - Default admin for all roles that can manage all roles in the `coin_mbx` module if the admin role not set. - Key Functions: - `grant_role`: Grants any role to any account, controlling permissions. - `revoke_role`: Removes any role from any account, potentially stripping powers. - If the private key is compromised, the attacker can reallocate roles, gaining the control of the module. 3. **Role Admins**: - The role admins are designated by the owner role and manage certain roles. - Key Functions: - `grant_role`: Grants a certain role to any account, controlling the given role's permission. - `revoke_role`: Removes a certain role from any account, potentially stripping powers. - If the private key is compromised, the attacker can reallocate a given role, gaining the power of the given role..

Report ↗
HighAcknowledgedCentralization Related RisksWarp - Audit · CertiK · 13 Dec 2023

### `warp::admin` Module **Account `warp`** has privilege over: - add_admin: adding a new address to the admin list. - remove_admin: removing an address from the admin list. ### `warp::bridge` Module 1. **Admin Role**: - Control over the module setup. - Function: - `set_fee_address`: set the address to receive the fee - `set_fee_amount`: set new fee amount - If the private key is compromised, 2. **Account `warp`**: - Control over the module setup. - Function: - `handle_bridge_swap`: Process bridge swap and mint token on Aptos. - If the private key is compromised, 3. **Operator Role**: - Process Swap. - Function: - `set_fee_address`: set address to receive the fee - `set_fee_amount`: set new fee amount - If the private key is compromised, 4. **Validator Role**: - Issue signature for swap ### `warp::operator` Module **Account `warp`**: - Set accounts in the operator list. - Function: - `add_operator`: Add new account to the operator list. - `remove_operator`: Remove account from the operator list. - If the private key is compromised, the attacker can add arbitrary accounts to the operator list which will affect `wrap::bridge` module as well. ### `warp::pauser` Module 1. **Account `warp`**: - Set accounts in the pauser list or update pause status. - Function: - `add_pauser`: Add new account to the pauser list. - `remove_pauser`: Remove the account from the pauser list. - `pause`: Update `pauserConfig.is_paused` to true. - `unpaused`: Update `pauserConfig.is_paused` to false. 2. **`Pauser` Role** - Update pause status. - Function: - `pause`: Update `pauserConfig.is_paused` to true. - `unpaused`: Update `pauserConfig.is_paused` to false. If the private key is compromised, the attacker can add arbitrary accounts to the pause list and update module status, which will affect `wrap::bridge` module as well. - `wrap::bridge::request_bridge_swap` - `wrap::bridge::handle_bridge_swap` ### `warp::validator` Module 1. **Account `warp`**: - Set accounts in the pauser list or update pause status. - Function: - `set_threshold`: Set the threshold for signature powers. - `add_validator`: Add the account to the validator list. - `remove_validator`: Remove the account from the validator list. - If the private key is compromised, the attacker can manipulate the validator list and the cross-chain operations, which will affect `wrap::bridge` module as well. 2. **Validator Role**: - Provide signatures for the cross-chain operations' validation. - If the private key is compromised, the attacker can manipulate the cross-chain operations, which will affect `wrap::bridge` module as well. --- The Aptos Move provides a code upgrade feature(with policy `compatible` by default) that allows deployed Move code to be replaced with the newer code based on the upgrade policy. Any compromise to the deployer account may allow a hacker to take advantage of this authority to control the implementation of the program, for example, burning tokens, which raises potential security risks. Reference: [Upgrading Move Code](https://aptos.web3doc.top/guides/move-guides/upgrading-move-code/)

Report ↗
HighOpenCentralization Risks in MBXToken.solMarblex · CertiK · 10 Aug 2023

In the contract `MBXToken` the role `_owner` has authority over the functions shown in the diagram below. Additionally, the `_owner` has authority over the following functions: - `transferOwnership()` Any compromise to the `_owner` account may allow the hacker to take advantage of this authority and - set the `trustedForwarder` to one that contains malicious logic in updating the `_msgSender()` within the `MBXToken` contract, possibly allowing for the stealing of funds from users; - freeze any account to prevent user interaction with their funds; - add accounts to the `MINTER_ROLE` allowing these accounts to mint any amount of tokens to any address; - add accounts to the `PAUSER_ROLE` allowing these accounts to pause any functionality in the contract that includes the modifier `whenNotPaused`, including - all transfer functions - all approval functions - all burning functions - remove accounts from the `MINTER_ROLE` or `PAUSER_ROLE` preventing the intended use of these roles; - withdraw any ERC20 or ERC721 token sent to the contract; - transfer the following privileged roles to one account through `acceptOwnership()`, giving all access control to one malicious authority - `_owner` - `DEFAULT_ADMIN_ROLE` - `MINTER_ROLE` - `PAUSER_ROLE` ![](https://accelerator-tasks-prod.acc.corp.certik.com/40537dc85d1d442d82ea5ebdbfd0568d/diagrams/centralization_MBXToken-MBXToken-_owner.svg) --- In the contract `MBXToken` the role `DEFAULT_ADMIN_ROLE` has authority over the following functions: - `grantRole()` - `revokeRole()` - `revokeMinter()` - `revokePauser()` Any compromise to the `DEFAULT_ADMIN_ROLE` account may allow the hacker to take advantage of this authority and give access to the `MINTER_ROLE` or `PAUSER_ROLE`, allowing any amount of tokens to be minted to any account or pausing the contract to prevent interaction. Additionally, the attacker may use the authority to remove a legitimate account's ability to pause the contract during malicious takeover.

Report ↗
HighOpenInitial Token DistributionMarblex · CertiK · 10 Aug 2023

All of the `MBXToken` are sent to the contract deployer when deploying the contract, where the deployer specifies the amount to be minted. This could be a centralization risk as the deployer can distribute tokens without obtaining the consensus of the community. Any compromise to the deployer account that holds undistributed tokens may allow the attacker to steal and sell tokens on the market, resulting in severe damage to the project.

Report ↗
LowOpenFunctions Equivalent to Compiler-Generated GetterMarblex · CertiK · 10 Aug 2023

### `MBXToken.sol` Function `getNonce()` returns `super.nonces(from)`, where `from` is a user-provided input. The mapping `nonces` has a compiler-generated getter function which returns the same output. ### `MultiSigWallet.sol` Function `getTransaction()` returns the same information that is returned from directly referencing the compiler-generated getter function for the `transactions` array.

Report ↗
LowOpenPotential Reentrancy Attack (Out-of-Order Events)Marblex · CertiK · 10 Aug 2023

A reentrancy attack can occur when the contract creates a function that makes an external call to another untrusted contract before resolving any effects. If the attacker can control the untrusted contract, they can make a recursive call back to the original function, repeating interactions that would have otherwise not run after the external call resolved the effects. *This finding is considered minor because the reentrancy only causes out-of-order events.* ### External call(s) ```solidity=101 (bool success, ) = transaction.to.call{value: transaction.value}(transaction.data); ``` ### Events emitted after the call(s) ```solidity=104 emit ExecuteTransaction(msg.sender, _txIndex); ``` --- ### External call(s) ```solidity=39 (bool success, bytes memory returndata) = req.to.call{gas: req.gas, value: req.value}( abi.encodePacked(req.data, req.from) ); ``` ### Events emitted after the call(s) ```solidity=61 emit MetaTransactionExecuted(req.from, req.to, req.data); ```

Report ↗
LowOpenRedundant References and Use of Modifier ChecksMarblex · CertiK · 10 Aug 2023

Hooks `_beforeTokenApprove()` and `_beforeTokenTransfer()` are both used to add the same checks that the `from` address is not frozen (modifier `notFrozen`), and that the contract is not paused (modifier `whenNotPaused`). There are some functions in which both modifiers are called more than once on the same input. - Inherited function `transferFrom()` uses both hooks because `_spendAllowance()` calls function `_approve()` which is overridden to include `_beforeTokenApprove()`, and because internal `_transfer()` is called which includes `_beforeTokenTransfer()`; - Function `permit()` is overridden to include modifiers `notFrozen` and `whenNotPaused`, and its inherited logic calls internal function `_approve()` - Inherited function `burnFrom()` uses both hooks because `_spendAllowance()` calls function `_approve()` which is overridden to include `_beforeTokenApprove()`, and because internal `_burn()` includes `_beforeTokenTransfer()`; --- Internal function `_beforeTokenApprove()` also includes a reference to `super._beforeTokenTransfer()` in the body of the function. This references the inherited logic of the `_beforeTokenTransfer()` function, which also includes a check that the contract is not `paused`. The reference to `super._beforeTokenTransfer()` is unnecessary in the body of the `_beforeTokenApprove()` function. In the override of `_beforeTokenTransfer()` within the `MBXToken` contract, there is also a reference to `super._beforeTokenTransfer()`. Since this logic includes a check that the contract is not paused, it is not necessary to include the modifier `whenNotPaused` in the override of the `_beforeTokenTransfer()` function.

Report ↗
LowOpenUnchecked ERC-20 `transfer()`/`transferFrom()` CaMarblex · CertiK · 10 Aug 2023

The return values of the `transfer()` and `transferFrom()` calls in the smart contract are not checked. Some ERC-20 tokens' transfer functions return no values, while others return a bool value, they should be handled with care. If a function returns `false` instead of reverting upon failure, an unchecked failed transfer could be mistakenly considered successful in the contract. ```solidity=135 IERC20(token).transfer(to, amount); ```

Report ↗

Contracts2

AddressChainSource code
0x30d79364ddc7c4a88a8dc753389fabd4fcde6b04Chain: BNB ChainSource code: Verified source
0xf95a5532d67c944dfa7eddd2f8c358fe0dc7fac2Chain: BNB ChainSource code: Verified source

All 2 addresses and the files the reports name

MARBLEX: questions

Is MARBLEX audited?

Trustblock holds 4 public audit reports for MARBLEX, dated 11 Jan 2023 to 11 Apr 2024. The latest is by CertiK (“Marblex - Audit 2”).

Who audited MARBLEX?

CertiK wrote the 4 reports Trustblock holds for MARBLEX.

Are there open findings in MARBLEX’s audits?

8 findings are still open or acknowledged in the firms’ reports: 4 high, 4 low (6 open, 2 acknowledged). Of 1 critical finding: marked fixed by the firm. Statuses are the security firms’ own.

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