The PuppyRaffle::selectWinner
function does not have any access control so any user can call it.
Attacker can exploit this and call the function when it is most advantageous for them.
For example when most of the participants in the current raffle are accounts owned by the attacker.
Modify PuppyRaffle::selectWinner
so only the owner can call it.
As best practice, it would be best if the same was done on PuppyRaffle::withdrawFees
function. Currently, lack of access control on this function doesn't present any security risk but there is no reason this function should be called by anyone other than the owner.
Root cause: bad RNG Impact: manipulate winner
Root cause: bad RNG Impact: manipulate winner
Root cause: bad RNG Impact: manipulate winner
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.