The updateRegistry function lacks access control, allowing anyone to change the charity registry address.
In GivingThanks.sol::updateRegistry:
updateRegistry lack access control allowing anybody to update the registry.
The lack of access control allows Attackers to point to a malicious registry contract, leading to losing control over key functionalities like charity verification and Admin changing.
The Attacker can simply update the Registry address with any address they own and gain complete ownership over the registry.
Manual review
Remix IDE
Add owner access control:
Likelyhood: High, anyone can change it at anytime Impact: High, can bypass the verification process
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.