Mayors audit reports

BNB Chain, EthereumGitHub

Mayors has 1 public audit report from CertiK; dated 28 Jun 2022; no critical findings reported.

Critical and high findings
No open critical findings; 5 high acknowledged in the firms’ reports
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.

Audits1

Newest first

ReportSecurity firmDateScopeCritical findingsFindingsSource
MayorsSecurity firm: CertiKDate: Scope: Files listedNone openFindings: 7 high · 1 medium · 10 low
7 fixed · 5 acknowledged · 6 open
skynet.certik.com ↗

Findings18

18 findings in 1 report: 7 fixed, 5 acknowledged (the team chose not to change the code), 6 open.

SeverityOpenAcknowledgedFixed
Critical000
High052
Medium001
Low604

Not fixed (11)

HighAcknowledgedCentralization Related Risks in `Token.sol`Mayors · CertiK · 28 Jun 2022

In the contract `token.sol` the role `owner` has authority over the functions shown below. Any compromise to the `owner` account may allow a hacker to take advantage of this authority and - mint tokens through `mint()` - mint tokens in batches to different recipients through `batchMint()`

Report ↗
HighAcknowledgedCentralization Risks in `Lootbox.sol`Mayors · CertiK · 28 Jun 2022

In the contract `Lootbox` the role `owner` has authority over the functions shown below. Any compromise to the `owner` account may allow the hacker to take advantage of this authority and - mint a lootbox nft on any account and set its season through `mint()` - mint lootbox nfts in batches through `batchMint()` - update configuration through `updateConfig()` - transfer ownership through `transferOwnership()` In the contract `Lootbox` the role `marketplace` has authority over the functions shown below. Any compromise to the `marketplace` account may allow the hacker to take advantage of this authority and - mint a lootbox nft on any account and set its season through `mint()` - mint lootbox nfts in batches through `batchMint()`

Report ↗
HighAcknowledgedCentralization Risks in `Marketplace.sol`Mayors · CertiK · 28 Jun 2022

In the contract `Marketplace` the role `owner` has authority over the functions shown below. Any compromise to the `owner` account may allow the hacker to take advantage of this authority and - update marketplace configuration through `updateConfig()` - add and set up new seasons of loot through `addNewSeasons()` - send loot boxes to any recipient through `sendLootboxes()` - add participants to buyer whitelist through `addToWhiteList()` - remove participants from the buyer whitelist through `removeFromWhiteList()`

Report ↗
HighAcknowledgedCentralization Risks in `NFT.sol`Mayors · CertiK · 28 Jun 2022

In the contract `NFT` the role `owner` has authority over the functions shown below. Any compromise to the `owner` account may allow the hacker to take advantage of this authority and - update configuration through `updateConfig()` - transfer ownership through `transferOwnership()` - mint in batches through `batchMint()` The role `lootBox` has authority over the functions shown below. Any compromise to the `owner` account may allow the hacker to take advantage of this authority and - mint in batches through `batchMint()` The role `levelUpgradesAddress` has authority over the functions shown below. Any compromise to the `levelUpgradesAddress` account may allow the hacker to take advantage of this authority and - increase token level through `updateLevel()`

Report ↗
HighAcknowledgedPotential Buy Back ManipulationMayors · CertiK · 28 Jun 2022

An opportunistic user may exploit the marketplace as follows: 1. Set an item for sale at a low price and approve the marketplace of its transfer 2. Sell or send the item away for certain benefits 3. Transfer it back through `buyItem()`

Report ↗
LowOpenFunction Visibility OptimizationMayors · CertiK · 28 Jun 2022

The following functions are declared as `public`, contain array function arguments, and are not invoked in any of the contracts contained within the project's scope. The functions that are never called internally within the contract should have external visibility.

Report ↗
LowOpenIncompatibility With Deflationary TokensMayors · CertiK · 28 Jun 2022

When transferring standard ERC20 deflationary tokens, the input amount may not be equal to the received amount due to the internally charged transaction fee.

Report ↗
LowOpenMerkle Tree Proof for BuyerMayors · CertiK · 28 Jun 2022

In the contract `Marketplace`, the `buyLootboxMP()` function uses the state variable `season.merkleRoot` which stands for an off-chain Merkle tree to verify whether a given user has the privilege to buy the NFT. Meanwhile, there is also in parallel a whitelist to determine such privilege in `buyLootbox()` function. What's more, in the function `buyLootboxMP()`, the parameter `proofs` is passed in by the message sender to verify whether it is in the Merkle tree. So the actual value is uncertain and malicious users can perform a second preimage attack. We would like to confirm with the client if the current implementation aligns with the original project design.

Report ↗
LowOpenPotential Reentrancy RisksMayors · CertiK · 28 Jun 2022

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.

Report ↗
LowOpenRisk For Weak RandomnessMayors · CertiK · 28 Jun 2022

It is now well understood that the difficulty or timestamp is not a source of randomness. They can be manipulated if the attacker is also a miner. For EVM compatible blockchains such as Binance smart chain and Polygon, the `block.difficulty` and `block.gaslimit` can be the same value across multiple blocks, making the situation even worse.

Report ↗
Show all 11
LowOpenState Variable Should Be Declared ConstantMayors · CertiK · 28 Jun 2022

State variables that never change should be declared as `constant` to save gas. File: contracts/common/erc721/ERC721Storage.sol (Line 12, Contract `ERC721Storage`) ```solidity string internal _symbol; ``` - `_symbol` should be declared `constant`. --- File: contracts/common/erc721/ERC721Storage.sol (Line 15, Contract `ERC721Storage`) ```solidity string internal _baseURI; ``` - `_baseURI` should be declared `constant`. --- File: contracts/common/erc721/ERC721Storage.sol (Line 18, Contract `ERC721Storage`) ```solidity uint256 internal _tokenIdCounter; ``` - `_tokenIdCounter` should be declared `constant`. --- File: contracts/common/erc721/ERC721Storage.sol (Line 9, Contract `ERC721Storage`) ```solidity string internal _name; ``` - `_name` should be declared `constant`. --- File: contracts/common/ownership/OwnableStorage.sol (Line 6, Contract `OwnableStorage`) ```solidity address internal _owner; ``` - `_owner` should be declared `constant`.

Report ↗

Contracts

No deployed address is recorded for these audits.

The reports name a repository or files. Open a report to see its scope.

The repositories and files the reports name

Mayors: questions

Is Mayors audited?

Trustblock holds 1 public audit report for Mayors, dated 28 Jun 2022. The latest is by CertiK (“Mayors”).

Who audited Mayors?

CertiK wrote the report Trustblock holds for Mayors.

Are there open findings in Mayors’s audits?

11 findings are still open or acknowledged in the firms’ reports: 5 high, 6 low (6 open, 5 acknowledged). No critical finding is reported. 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