Description
As the is verified function is problamatic already , zero address can be registered and is verified check will return true if donate is called with zero addres . The donate function in the GivingThanks contract allows users to donate to a charity. However, there is no check to prevent donations to the zero address. If a user calls the donate function with the zero address as the charity, the function will execute successfully, leading to potential loss of funds since the Ether will be sent to the zero address.
Code Snippet
Impact
Loss of Funds: Users can unintentionally send Ether to the zero address, resulting in a permanent loss of funds, as there is no way to recover Ether sent to the zero address.
Security Vulnerability: This flaw can be exploited by malicious actors to create scenarios where users unknowingly donate to the zero address.
Recommendation
Implement a check in the donate function to ensure that the charity address is not the zero address before proceeding with the donation. This will prevent users from sending Ether to an invalid address.
Code Snippet
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.