Using wrong mapping to check if the charity is verified.
GivingThanks::donate(address charity)is required charity address is verified by CharityRegistry::isVerified(address charity), however, CharityRegistry::isVerified(address charity) use registeredCharities[charity] to check if the charity is verified, which will make anyone could register and accept donation without verifing by the Admin. It should use verifiedCharities[charity]instead.
Unverified charity is able to receive donation.
Foundry Test
After modified, testCannotDonateToUnverifiedCharity() works.
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.