Open howlbot-integration[bot] opened 3 months ago
I appreciate the PoC, would have be great to point out the root cause of this and give context, since this is enforced on forge
but not on mintToken
.
koolexcrypto marked the issue as satisfactory
koolexcrypto marked the issue as selected for report
Lines of code
https://github.com/code-423n4/2024-07-traitforge/blob/main/contracts/TraitForgeNft/TraitForgeNft.sol#L345
Vulnerability details
Impact
In 'TraitForgeNft' there should be a maximum number of generation (it should be capped at 10), but instead users can mint infinite generations and there is not a limit.
Proof of Concept
(Foundry)
Tools Used
Manual review
Recommended Mitigation Steps
In 'TraiForgeNft::_incrementGeneration' add a check in order to do not allow the the mint of the NFT's above the maximum generation.
Instead of doing this:
Consider doing this:
Assessed type
Other