The ERC20ToGenerateNftFraccion::mint
function is publicly accessible and any unauthorized user can call it. It allows any user to mint unlimited tokens to any address. This effectively makes the token supply unbounded and vulnerable to manipulation.
Here, after an erc20 has been created by USER
, USER3
was able to mint more tokens, thereby increasing the token supply and balance of USER3
A malicious actor could mint an arbitrary number of tokens to any address, inflating the token supply.
The token's economic model and value can be entirely undermined.
Integration with other smart contracts or platforms could be compromised due to trust issues with token integrity.
Manual review
Restrict access to the mint
function by adding access control mechanisms, such as OpenZeppelin's Ownable
or AccessControl
. So that just the TokenDivider
contract can mint.
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.