Description In the constructor of the GivingThanks contract, the parameter _registry is not passed to the CharityRegistry contract, but the address of the msg.sender instead.
Impact This issue affects the GivingThanks::registry variable, since it's initialized to a CharityRegistry contract that doesn't exist.
Proof of Concepts
Add the following test to Test.t.sol.
Recommended mitigation Pass the proper parameter during the initialization of the GivingThanks::registry variable.
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.