Pieces Protocol

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

Public `mint` Function Lacks Access Control, Allowing Unauthorized ERC20 Minting

Summary

In src/token/ERC20ToGenerateNftFraccion.sol, the mint function is public, meaning anyone can mint the ERC20 token corresponding to the NFT. However, since there are additional records in the contract, self-minting tokens bypasses these records, leaving them untracked.

Recommendations

It is recommended to implement access control to prevent unauthorized token minting.

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.