The view function isVerified
returns a boolean indicating if an address is registered, thereby making all registered charity addresses eligible to accept donations.
Bug below:
Solution
A malicious address could be marked as verified and able to accept donations when checked in the GivingThanks contract.
Foundry Test
Update the isVerified
function to return from the correct mapping, verifiedCharities
:
solidity
Likelyhood: High, the function returns registered charities instead of verified ones. Impact: High, Any charities can be registered by anyone and will be declared as verified by this function bypassing verification.
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.