Core Contracts

Regnum Aurum Acquisition Corp
HardhatReal World AssetsNFT
77,280 USDC
View results
Submission Details
Severity: low
Invalid

Lack of minter role revocation in RAACToken

Summary

The setMinter() function allows the contract owner to assign a minter but does not provide a way to revoke the minter role by setting it to address(0). This omission creates a security risk where the minter retains indefinite minting privileges.

Vulnerability Details

  • The setMinter() function assigns a new minter but does not include a mechanism for revocation.

  • Once a minter is assigned, there is no way to remove their role unless the contract is modified or redeployed.

  • If the minter’s private key is compromised, the attacker can mint unlimited tokens, leading to inflation and potential devaluation of the token.

Steps to Reproduce

  1. The contract owner calls setMinter(newMinter), assigning minting rights.

  2. The minter remains assigned indefinitely as there is no function to revoke the role.

  3. If the minter’s private key is compromised, an attacker can mint unlimited tokens.

Impact

Permanent Minter Role: The contract owner cannot remove the minter once assigned.

Tools Used

Manual Review

Recommendations

Modify the setMinter() function to allow setting the minter to address(0), enabling revocation of the role.

Updates

Lead Judging Commences

inallhonesty Lead Judge 3 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
inallhonesty Lead Judge 3 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.