GivingThanks

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

`GivingThanks::updateRegistry` function doesn't have access control, allowing anyone to change the registry, and then verify any charity

GivingThanks::updateRegistry function doesn't have access control, allowing anyone to change the registry, and then verify any charity.

Recomendations

function updateRegistry(address _registry) public {
@> require(msg.sender == owner, "Only owner can update registry");
registry = CharityRegistry(_registry);
}
Updates

Lead Judging Commences

n0kto Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

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