The isVerified function is intended to check if a charity is verified. However, it currently returns the registration status instead of the verification status.
The isVerified function references the registeredCharities mapping instead of verifiedCharities
Output
Users calling this function will receive incorrect information, believing a charity is verified when it is only registered.
This could lead to donations being made under the false assumption of verification, undermining trust in the system.
Manual Code Review and Foundry Unit Test
The function should instead return the status from the verifiedCharities mapping, which holds the verification status of each charity.
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.