updateRegistry
FunctionDate: 13.11.2024
Severity: Low
Description:
The updateRegistry
function in the GivingThanks
contract allows any user to update the registry
address, which is likely a security concern as it could be exploited to disrupt the charity verification process or redirect donations to unauthorized addresses.
Mitigation:
Restrict access to this function to only the owner of the contract:
Note: This assumes the GivingThanks
contract inherits from Ownable
as per the import statement.
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.