In the Snowman.sol
Anyone can call the function mintSnowman
to mint snow man due to the lack of access control in the function.
Likelihood:
The likelihood is very high as anyone can mint these nft's.
Impact:
Genuine users who staked their tokens to get these nft's will lose their money as one could mint these snow man for free
This can alse affect the value of these nft's as one could mint these nft's multiple times making the supply very high causing their demand to become very low.
paste this test in the TestSnowman.t.sol and run forge test --mt testAnyoneCanMintNft -vv
Add Access control to the function allowing only the airdrop contract SnowmanAirdrop.sol
to mint these nft's
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.