Pieces Protocol

First Flight #32
Beginner FriendlyFoundrySolidityNFT
100 EXP
View results
Submission Details
Severity: high
Valid

Access control of mint

Summary

The mint function is public, meaning anyone can call it to create tokens.

Vulnerability Details

The mint function is public, meaning anyone can call it to create tokens. Typically, this function should be restricted to a specific role (e.g., onlyOwner) to prevent abuse.

Impact

Anybody can abuse the code.

Tools Used

Foundry

Recommendations

The function mint can called by onlyOwner

Updates

Lead Judging Commences

fishy Lead Judge 5 months ago
Submission Judgement Published
Validated
Assigned finding tags:

Lack of token access control chekcs

Any person can mint the ERC20 token generated in representation of the NFT

Support

FAQs

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