Xox Labs

CertiKFiles named in the report

CertiK reviewed XOX Labs on 2 Aug 2023: 9 findings, 1 critical; 6 marked fixed, 3 open.

1 critical finding, fixed
Open the reportOpen XOX Labs’s security record

Report hosted on skynet.certik.com.

Trustblock does not review code.

Findings9

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

SeverityOpenAcknowledgedFixed
Critical001
High300
Medium000
Low005
CriticalPublic `burn` FunctionFixed

The function `burn` can be called by anyone to burn or mint any amount of tokens from any other, which shouldn't be allowed.

LowCharged Fee Will Be Sent to Owner AddressFixed

The `_tokenTransfer()` function, when called with the `takeFee` parameter set to `true`, deducts a fee from the transferred amount and sends it directly to the contract owner's balance. This could potentially lead to a concentration of tokens in the owner's balance, causing the inequitable distribution of tokens and potentially enabling manipulation of token value.

LowInaccessible Function to Change Tax Fee in `XOXToFixed

The function `_changeTaxFee()` is declared as internal, which means it can only be called from within the contract where it is defined or contracts derived from it. However, this function is not utilized in any other public or external functions within `XOXTokenBase` contract or potentially inheriting contracts, making it inaccessible and essentially useless in the current implementation.

LowMissing Zero Address ValidationFixed

Addresses are not validated before assignment or external calls, potentially allowing the use of zero addresses and leading to unexpected behavior or vulnerabilities. For example, transferring tokens to a zero address can result in a permanent loss of those tokens. ```solidity=41 _minter = minter_; ``` - `minter_` is not zero-checked before being used. --- ```solidity=79 _operator = operator_; ``` - `operator_` is not zero-checked before being used.

LowUnnecessary Use of SafeMathFixed

The `SafeMath` library is used unnecessarily in the `XOXTokenBase` contract. With Solidity compiler versions 0.8.0 or newer, arithmetic operations will automatically revert in case of integer overflow or underflow. ```solidity=39 using SafeMath for uint256; ``` - `SafeMath` library is used for `uint256` type in `XOXTokenBase` contract. --- ```solidity=39 using SafeMath for uint256; ``` - `SafeMath` library is used for `uint256` type in `XOXTokenBase` contract. ```solidity=323 uint256 fee = amount.mul(_taxFee).div(_baseFee); ``` - `SafeMath.mul` is called in `_tokenTransfer` function of `XOXTokenBase` contract. *Note: Only a sample of 2 `SafeMath` library usage in this contract (out of 4) are shown above.*

LowVariables That Could Be Declared as ImmutableFixed

```solidity uint8 private _decimals; address private _operator; uint256 private _startTrading; ``` The above variables assigned in the constructor can be declared as `immutable`. Immutable state variables can be assigned during contract creation but will remain constant throughout the lifetime of a deployed contract. A big advantage of immutable variables is that reading them is significantly cheaper than reading from regular state variables since they will not be stored in storage.

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 (3)

  • xox-token/contracts/ERC20/XOXTokenBase.sol
  • xox-token/contracts/ETH/XOX.sol
  • xox-token/contracts/Common/XOX.sol

Part of XOX Labs’s security record

XOX Labs
Audits1 audit by 1 firmLast audit Aug 2023, 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 XOX Labs’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