The winner and rarity of a raffle is calculated in a deterministic way and not in a random one.
The winner is calculated like this:
This whole calculation is deterministic, as the block.timestamp and the block.difficulty can be known before executing the function.
The same holds true for the calculation of the NFTs rarity:
Players can calculate the result of calling the selectWinner function and therefore abuse this vulnerability to cheat.
Manual Review
Use chainlinks VRF 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.