Description: The CharityRegistry::isVerified() function returns the registration status instead of the verification status of a charity. This is a critical logical error that undermines the entire verification system.
Impact:
Any registered charity appears as verified without admin verification
Bypasses the entire verification process
Defeats the purpose of having a two-step verification system
Could lead to users trusting unverified charities
Proof of Concept:
Recommended Mitigation: Modify the isVerified function to check the verifiedCharities mapping instead of registeredCharities.
Corrected Code:
This change ensures that the function accurately reflects the verification status of a 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.