The searchForEgg function in EggHuntGame contract uses predictable on-chain data for randomness, making it vulnerable to miner manipulation.
The problematic randomness generation:
Miners can influence both block.timestamp and block.prevrandao, and users can front-run transactions when they see favorable outcomes.
High - Game fairness is compromised as both miners and players can manipulate outcomes.
Manual Review
Use Chainlink VRF for verifiable randomness
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.