Lack of access control in GivingThanks:updateRegistry function allows anyone to alter the registry, causing the registration and verification process of the charity in risk.
There is no access control in GivingThanks:updateRegistry function which allows anyone to change the registry. This could lead to malicious registration and verification process being implemented to include non-eligible / non legitimate organzations to take part in the GivingThanks protocol
Proof of Concept:
Add the following test to test\GivingThanks.t.sol
Run the test forge test --match-test test_audit_accessControlIssueInUpdateRegistry
The test passed indicating that anyone can freely alter the registry.
Anyone can alter the registry, enabling malicious registration and verification process being implemented to include non-eligible / non legitimate organzations to take part in the GivingThanks protocol
Manual review with test
Implement access control to allow only owner to update the registry
Run the test forge test --match-test test_audit_accessControlIssueInUpdateRegistry
The test failed indicating that the recommened change has successfully blocked random users to update the registry.
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.