The registry is incorrectly initialized to the deployer's address (msg.sender) instead of the provided _registry address.
In the constructor, registry = CharityRegistry(msg.sender); sets the registry to the deployer's address. This could lead to incorrect or unintended behavior since the registry should point to a specific CharityRegistry contract.
The contract may not function as intended, as it would not verify charities against the correct registry.
Manual Review
Initialize registry with the _registry parameter provided to the constructor. Change the line to:
Likelyhood: High, the parameter is not well used and won't be set. Impact: Low, can be changed with the setter and no one will be able to donate to malicious charity.
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.