Description The CharityRegistry::isVerified
function returns the value of registeredCharities
mapping instead of the verifiedCharities
one.
Impact The function will always return a value of true
for all the registered charities that are passed as a parameter, even if they are not actually verified by the admin.
Proof of Concepts
Add the following test to Test.t.sol
file.
Recommended mitigation Add the proper return value to CharityRegistry::isVerified
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.