Description The GivingThanks::donate
function never checks that the donation amount(msg.value
) is greater than zero.
Impact This issue leads to users being able of mint "DonatioReceipt" tokens without actually donating any ETH to the charity.
Proof of Concepts
Add the following test to Test.t.sol
.
Recommended mitigation Add a proper validation for msg.value
.
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.