selectWinner()
can be called by anyone.
As anyone can call selectWinner()
and because of the issues with random number generation it's possible to manipulate with the list of players. The the attacker could add addresses until (one of) his addresses will have the winnerIndex
. After that the attacker could call selectWinner()
and take funds.
High. Allows to easily commit fraud.
Manual check.
Use onlyOwner
modifier.
Use verified source of randomness, e.g. Chainlink VRF.
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.