In the ERC20ToGenerateNftFraccion.sol
contract, the mint
function lacks access control mechanisms, allowing any user to call the function and mint arbitrary amounts of tokens. This constitutes a severe security vulnerability.
The mint
function:
Can be called by any external account (public
).
Lacks any permission checks (e.g., onlyOwner
modifier).
Allows minting of arbitrary amounts of tokens.
This behavior contradicts the business logic of the TokenDivider.sol
contract, as only the TokenDivider
contract should have the authority to mint tokens.
This vulnerability has catastrophic consequences:
Unrestricted Token Minting: Attackers can mint unlimited tokens.
Economic Model Breakdown: The economic model of NFT fractionation is completely compromised.
The exploit can be demonstrated as follows:
Manual Review
Restrict minting permissions so that only the TokenDivider
contract can mint tokens:
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.