Usage on miner-influenced values in random number generation may result in winner selection being predictable. This would lead to some raffle entrants having an unfair advantage and eliminating the integrity of the raffle.
The lines referenced in the relevant GitHub links use blockchain.timestamp and blockchain.difficulty to generate randomness in the selection of a raffle winner and also the selection of which NFT the winner receives. These values should not be used because miners could potentially influence them and therefore be able to predict outcomes.
High in likelihood to be exploited and in impact to the protocol. Impact to the protocol would be devastating as raffle entrants would avoid entering as it would become known that selecting winners is not sufficiently random.
Visual Studio Code
Slither
Use an external provider of randomness, such as a Chainlink VRF.
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.