The Registry contract address can be updated by anyone. An attacker can create their own registry contract and update the GivingThanks contract to route all donations to their own account.
Bug below:
Solution
Allowing unauthorized users to update the Registry contract address can lead to the loss of funds.
Foundry Test
The contract should make use of the OpenZeppelin Ownable contract to restrict access to critical functions.
Consider adding unit tests to verify that only the owner can update the registry address and that the update process works as intended.
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.