Mayors has 1 public audit report from CertiK; dated 28 Jun 2022; no critical findings reported.
Last updated . It holds audits and findings, contracts and incidents up to Nov 2026. Trustblock does not review code.
Newest first
| Report | Security firm | Date | Scope | Critical findings | Findings | Source |
|---|---|---|---|---|---|---|
| Mayors | Security firm: CertiK | Date: | Scope: Files listed | None open | Findings: 7 high · 1 medium · 10 low 7 fixed · 5 acknowledged · 6 open | skynet.certik.com ↗ |
18 findings in 1 report: 7 fixed, 5 acknowledged (the team chose not to change the code), 6 open.
| Severity | Open | Acknowledged | Fixed |
|---|---|---|---|
| Critical | 0 | 0 | 0 |
| High | 0 | 5 | 2 |
| Medium | 0 | 0 | 1 |
| Low | 6 | 0 | 4 |
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 ↗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 ↗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 ↗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 ↗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 ↗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 ↗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 ↗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 ↗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 ↗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 ↗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 ↗The reports name a repository or files. Open a report to see its scope.
Trustblock holds 1 public audit report for Mayors, dated 28 Jun 2022. The latest is by CertiK (“Mayors”).
CertiK wrote the report Trustblock holds for Mayors.
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