Anyone can call donate function by sending zero value worth of ether and still be rewarded with NTFs. This makes the NTF collection worthless
Bug below
Soution
Allowing zero-value donations would render the NFTs valueless and could lead to exploitation, where users mint unlimited NFTs without making real donations
Foundry Test
Ensure the donate
function includes a check to prevent zero-value donations:
This change ensures that only meaningful donations can mint NFTs, preserving their value and integrity.
Likelyhood: Low, anyone can mint an NFT with 0 amount. No reason to do it. Impact: Informational/Very Low, NFT are minted to a false donator. An NFT with 0 in the amount section would be useless. Since that's a bad design and not expected, I'll consider it Low but in a real contest, it could be informational because there is no real impact.
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.