Malicious miners can predict the raffle result
selectWinner
uses block.timestamp
and block.difficulty
to determine the winner.
While the block variables may be unpredictable, it is still determined by the miners who are adding blocks to the blockchain, and an attacker may be able to influence the difficulty and predict the output of this function.
Malicious miners will keep trying to generate Randomness until they acquire the desired result, with which they will then broadcast a block or an attacker may be able to influence the difficulty and predict the output of this function.
Manual review.
Increase randomness and unpredictability by generating random numbers through the participation of multiple parties or by using an oracle.
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.