Minting NFT presents without Santa's checks
SantasList::collectPresent checks the mappings s_theListCheckedOnce and s_theListCheckedTwice to validate if Santas has checked them twice. But, users by default have the NICE status in these mappings. Therefore, users can call SantasList::collectPresent, which internally calls _mintAndIncrement, effectively minting a NFT present to the sender.
Output:
HIGH.
Manual Review
Foundry
Consider updating the default value of the Status enum, so not all users have the NICE status by default.
In Solidity the first element of an enum is the default value. In Santa's List, the means each person is mapped by default to 'NICE'.
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.