The function searchForEgg() generates randomness using:
Since block.timestamp
and block.prevrandao
can be manipulated by miners, attackers may influence egg discovery results.
Miners can reorder transactions or adjust block.timestamp
to improve their chances of finding eggs.
This could lead to unfair gameplay, where specific players consistently get better results.
Attackers can farm eggs at a higher rate than intended.
The game could become unfair and centralized around miners.
Manual code review.
Static analysis tools like Slither.
Use Chainlink VRF for truly unpredictable randomness:
Alternatively, use user-provided entropy, such as off-chain data.
Insecure methods to generate pseudo-random numbers
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.