The admin
variable in CharityRegistry
is set as msg.sender
during contract deployment. If CharityRegistry
is deployed by another contract (e.g., GivingThanks
), msg.sender
will be the address of the deploying contract rather than the actual deployer or intended admin. This can lead to a situation where the wrong entity has admin rights over the CharityRegistry
.
This could result in the unintended loss of administrative control over the CharityRegistry
, potentially preventing proper verification of charities or management of the registry.
manual
Modify the constructor to accept.
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.