Snowman should be minted during the airdrop on SnowmanAirdrop.sol
Current implementation allows anyone to mint unlimited Snowman due to a lack of access control
Likelihood:
Anyone who knows about this vulnerability can mint infinite amount of Snowman
It is easy to detect this vulnerability by users by just random calling the function
Impact:
Inflation of the NFT supply basically removing the value of the whole airdrop
Add access control to the mint function via Ownable
(already inheritted)
Ensure that the SnowmanAairdrop.sol is owner of Snowman.sol
Considerations: alternatively, another access control can be implemented (not owner), by adding a custom check on snowmanAirdrop address, or using AccessControl
Add the onlyOwner modifier to mintSnowman
The mint function of the Snowman contract is unprotected. Hence, anyone can call it and mint NFTs without necessarily partaking in the airdrop.
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.