Wemix Retainer 141 GameServerNFT

CertiKFiles named in the report

Audit

Part of CertiK’s retainer series

CertiK reviewed WEMIX (Wemix Retainer 141 GameServerNFT) on 15 Nov 2024: 5 findings, 0 critical; 2 marked fixed, 3 open.

No open critical findings
Open the reportOpen WEMIX’s security record

Report hosted on skynet.certik.com.

Trustblock does not review code.

Findings5

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

SeverityOpenAcknowledgedFixed
Critical000
High201
Medium000
Low101
HighUnrestricted Metadata ModificationFixed

The `setTokenURI` function is external and lacks access control, enabling any user to change the metadata URI of any token. ```solidity=72 function setTokenURI(uint256 tokenId, string memory metadataURI) external { _setTokenURI(tokenId, metadataURI); } ``` Attackers can alter the metadata of any token, leading to misinformation or inappropriate content.

LowRisk of Losing Admin Access If The Input New AdmiFixed

If the address `newSuperAdmin` to be set as the admin role is the same as the current admin `msg.sender`, it will result in the admin role losing its administration authorization over the contract. ```solidity=100 function changeSuperAdmin(address newSuperAdmin) external { require(newSuperAdmin != address(0), "GameServerNFT: New super admin cannot be the zero address"); require(isSuperAdmin(msg.sender), "GameServerNFT: Invalid super admin or unauthorized"); grantRole(GAME_SERVER_SUPER_ADMIN, newSuperAdmin); revokeRole(GAME_SERVER_SUPER_ADMIN, msg.sender); emit SuperAdminRoleChanged(msg.sender, newSuperAdmin); } ``` This vulnerability arises because the function first grants the admin role to the new owner's address and then revokes the admin role from the current admin's address. However, if the new owner's address is the same as the current one without any proper validation, the admin role will be revoked prematurely, leading to the admin losing the authorization for contract administration.

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)

  • GameServerNftBaseV1.sol
  • proxy/GameServerNFT.sol

Part of WEMIX’s security record

WEMIX
Audits75 audits by 1 firmLast audit Feb 2025, by CertiK.
Critical findingsNo open critical findingsAcross the 75 reports, 17 critical findings were reported. Each is marked fixed by the firm that reported it.
Open WEMIX’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