When the TokenDivider contract divide the ERC721 NFT, it deployed a new ERC20 Token address and then minted to the amount given to the divide function. But the problem is, ERC20 Token contract has vunlerability to be minted by anyone, since its mint function has no check toward who can mint.
as shown above, in the src/token/ERC20ToGenerateNftFraccion.sol the mint function has public modifier which means it can be called by anyone and has no validation through who can call the function, including the attacker.
this will cause confusion to the holders because there are ERC20 tokens that are registered in this contract and which are not (through self mint).
Foundry
Add owner logic to the ERC20ToGenerateNftFraccion to be like such:
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.