GivingThanks

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

Missing Access Control in `updateRegistry` function of `GivingThanks` Contract

Vulnerability Details

the updateRegistry function allows anyone to modify the registry address by simply calling the function. Without access control, this vulnerability enables unauthorized parties to replace the legitimate CharityRegistry address with an arbitrary one. This could allow an attacker to redirect funds, compromise interactions, or manipulate the protocol’s behavior.

Impact

Tools Used

Manual

Recommendations

function updateRegistry(address _registry) public {
require(msg.sender == owner);
registry = CharityRegistry(_registry);
}
Updates

Lead Judging Commences

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

finding-anyone-can-change-registry

Likelyhood: High, anyone can change it at anytime Impact: High, can bypass the verification process

Support

FAQs

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