The contract uses a pseudo-random number generator to select a winner and to determine the rarity of minted tokens. This uses block variables such as block.timestamp and block.difficulty, which can be influenced by miners to a certain extent. This may not be a critical issue depending on the value of the prizes, but for high-stake games, this could potentially be exploited by a miner.
Medium Severity - Randomness: Depending on the value of the prizes, the current pseudo-random number generator implementation may or may not pose a critical issue. High-stake games could be vulnerable to miner influence.
vscode
Consider using a more secure source of randomness, such as the Chainlink VRF (Verifiable Random Function).
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.