Project

One World
NFTDeFi
15,000 USDC
View results
Submission Details
Severity: medium
Invalid

No access control in mint

Summary

There is no access control for the mint function.

Vulnerability Details

https://github.com/Cyfrin/2024-11-one-world/blob/main/contracts/shared/testERC20.sol#L16

function mint(address account, uint256 amount) external {
_mint(account, amount);
}

Impact

we can mint any amount of token as there is no access control.

Tools Used

Recommendations

keep a access control.

Updates

Lead Judging Commences

0xbrivan2 Lead Judge 7 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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