The updateRegistry function lacks access control, allowing anyone to change the registry address and potentially redirect donations to unverified charities.
https://github.com/Cyfrin/2024-11-giving-thanks/blob/main/src/GivingThanks.sol#L56-L58
Due to lack of access control on above function, anybody can update the registry, that will give an oppurtunity to the attacker to verify any registry and take all the donations.
Attackers can change registry to malicious contract
Can bypass charity verification
Can redirect donations to unverified addresses
Manual Review, Foundry
Add an access control will fix the issue.
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.