Description: The GivingThanks::constructor() incorrectly uses msg.sender for the registry address instead of the provided _registry parameter. This means the registry address will be set to the deployer's address rather than the intended CharityRegistry contract.
Impact:
Contract will not be properly initialized
All donation attempts will fail
System completely unusable
Proof of Concept:
Recommended Mitigation: Check whether the _registry address is not same as the address of the user.
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.