The isVerified
function in CharityRegistry
contract modifies the registeredCharities
mapping instead of the verifiedCharities
mapping. This allows unverified charities to receive donations.
The logic of the contract is incorrect. The isVerified
function should return whether the charity is verified or not. However, it returns whether the charity is registered or not. This allows unverified charities to receive donations.
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.