Core Contracts

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

Anyone can mint IndexToken

Summary

In IndexToken.sol anyone can call mint and mint infinite amount of tokens to himself

Vulnerability Details

No access management on mint leads to anyone be able to call it

contract IndexToken is ERC20 {
constructor(string memory name, string memory symbol) ERC20(name, symbol) {}
error InvalidAddress();
function mint(address to, uint256 amount) external {
if (to == address(0)) revert InvalidAddress();
_mint(to, amount);
}
}

Impact

Any user can mint himself tokens

Tools Used

manual review

Recommendations

add access control

Updates

Lead Judging Commences

inallhonesty Lead Judge 3 months ago
Submission Judgement Published
Invalidated
Reason: Out of scope

Support

FAQs

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