GivingThanks

First Flight #28
Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: high
Valid

Incorrect Check For Verified Addresses

Summary

An incorrect check is being used to verify addresses in the isVerified() function.

Vulnerability Details

In CharityRegistry.sol on line 24 an incorrect check is being used to verify addresses. Here the registeredCharities mapping is being used which returns whether the chairty is registered and not whether it has actually been verified.

Impact

This means that an attacker could register a malicious charity, and all calls to isVerified() for that chairty will return true bypssing the verification processes.

Tools Used

Manual Review

Recommendations

Update line 24 to read return verifiedCharities[charity].

Updates

Lead Judging Commences

n0kto Lead Judge 10 months ago
Submission Judgement Published
Validated
Assigned finding tags:

finding-isVerified-return-registered-charities

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.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.