The function PuppyRaffle::withdrawFees
should be used by the owner, but currently anyone can call it.
The function PuppyRaffle::withdrawFees
allows you to collect the fees on the contract by sending them to the address chosen by the owner, therefore the owner should be the only one who can call the method.
The impact is low, because if someone calls the function, the fees present on the contract are still sent to the address chosen by the owner, so there is no loss of funds.
Manual review
Add the onlyOwner
modifier.
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.