The EggHuntGame.searchForEgg()
includes a deterministic (demonstration) source of random
The following snippet in searchForEgg()
generates a deterministic random number:
All values can be determined, and msg.sender
can be controlled. A contract can figure out which senders will succeed and use them to gain eggs.
The value of the random number can be determined, which could allow someone to have an unfair advantage in finding eggs.
Manual review
Replace with a proper source of random numbers
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.