Function selectWinner
uses weak block based Pseudo-Random Number Generators to select a winner and token rarity. This allows a malicious user to wait for the right conditions to become a winner.
Weak block based PRNG
Users can use this to easily win.
POC using foundry forge test
Foundry
Slither
Do not use block values such as block.timestamp and block.difficulty as sources of randomness.
Use Chainlin VRF to generate random numbers.
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.