GivingThanks

First Flight #28
Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: medium
Invalid

Missing Validation for charity Address in `GivingThanks::donate` function

Summary

In the GivingThanks::donate function, there is no validation to ensure that the charity address is not 0x0.

Vulnerability Details

There is no input validation to ensure that charity is not the zero address (address(0)).

Impact

It could allow donations to an invalid address, causing loss of funds.

Tools Used

Foundry, Remix

Recommendations

Add a check to ensure that charity is not the zero address.

Updates

Lead Judging Commences

n0kto Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.