Pieces Protocol

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

Lack of Access Control in mint Function

Summary:The mint function in the ERC20ToGenerateNftFraccion contract is public, allowing unauthorized minting of tokens.

Vulnerability Details:

function mint(address _to, uint256 _amount) public {
_mint(_to, _amount);
}

Impact:Unauthorized users can mint tokens, compromising the token’s integrity.

Tools Used:manual code review

Recommendations:Use OpenZeppelin’s Ownable or a custom access control system to restrict minting permissions

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.