Pieces Protocol

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

Lack of access control in contract ERC20ToGenerateNftFraccion

Summary

The ERC20ToGenerateNftFraccion lack access control making it valuable to malicious users calling the contract to mint new tokens

Vulnerability Details

contract ERC20ToGenerateNftFraccion is ERC20, ERC20Burnable {
constructor(string memory _name, string memory _symbol) ERC20(_name, _symbol) {
}
function mint(address _to, uint256 _amount) public {
_mint(_to, _amount);
}
}

Impact

Unapproved token creation

Tools Used

Manuel review

Recommendations

User access control to ensure only the tokenDivier contract can mint new tokens

Updates

Lead Judging Commences

juan_pedro_ventu Lead Judge 4 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.