isVerified()
of CharityRegistry.sol
returns registeredCharities
,anyone can just call registerCharity()
to obtaining verified certification.
isVerified()
of CharityRegistry.sol
returns registeredCharities
:
anyone can just call registerCharity()
to obtaining verified certification:
Since anyone can freely register as a charity, the charity permission check in the donate function becomes ineffective:
An attacker can register any address as a charity, perform a donation (even donating to themselves), and receive the corresponding issued ERC721 tokens.
foundry
fix code like this:
Likelyhood: High, the function returns registered charities instead of verified ones. Impact: High, Any charities can be registered by anyone and will be declared as verified by this function bypassing verification.
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.