the updateRegistryfunction of GivingThanks.sol lack access control of ownerrole, anyone can change registry at will.
in the updateRegistryfunction of GivingThanks.sol , it change the registry but don't need ownerrole.
Since anyone can modify the registry, the charity check in the donate function will be ineffective:
An attacker can modify the registry and donate to any address (even donating to themselves) to receive the corresponding issued ERC721 tokens.
foundry
Add a permission check to the updateRegistry function, like this:
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.