Description
The ERC20ToGenerateNftFraccion::mint
doesn't have any admin or onlyOwner protection.
Impact
This issue allows anyone to be able to mint any desired amount of tokens.
Proof of Concepts
Add the following test to TokenDividerTest.t.sol
:
Foundry, Manual analysis
Recommended mitigation
Import the Ownable
contract from OpenZeppelin or add an onlyOwner modifier.
Any person can mint the ERC20 token generated in representation of the NFT
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.