The updateRegistry
function allows unrestricted updates to the registry
address, introducing a potential security risk.
Without proper access control, an attacker could modify the registry
address to a malicious contract.
https://github.com/Cyfrin/2024-11-giving-thanks/blob/main/src/GivingThanks.sol#L56-L58
Unauthorized changes to registry could direct donations or verification checks to a fraudulent registry, undermining donor trust and platform security.
Manual Review
Restrict access to updateRegistry by either using OpenZeppelin’s Ownable contract or removing the function if updating the registry is unnecessary. Updated function with 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.