Using block.timestamp and block.difficulty to determine the winner is not 100% secure.
By using block.timestamp and block.difficulty to determine the winning player index could be predictable as well as exploitable.
Medium.
This is a valid bug but the exploitation of it needs multiple miners to succeed so the cost to exploit this would outweigh the gains made by it.
Vs Code
Always use a off-chain oracle like chainlink to get true randomness that cant be altered by on-chain tactics.
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.