the updateRegistry
function of GivingThanks.sol
lack access control of owner
role, anyone can change registry at will.
in the updateRegistry
function of GivingThanks.sol
, it change the registry but don't need owner
role.
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.