Root Cause: Predictable Randomness
Impact: Loss of Fairness
The searchForEgg()
function uses weak randomness that is vulnerable to manipulation by miners/validators and MEV bots. The random number generation relies on predictable values like block.timestamp
, block.prevrandao
, msg.sender
and a counter, which can be influenced or known in advance.
Miners/validators can manipulate block.timestamp
and block.prevrandao
to influence the random number generation
MEV bots can monitor the mempool and front-run successful egg finds while avoiding unsuccessful attempts
Players can predict and manipulate their chances of finding eggs
This breaks the intended fairness and randomness of the egg hunting game
Players with more resources (MEV capabilities) have an unfair advantage
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.