Weak Randomness in EggHuntGame::searchForEgg().
Weak Randomness in EggHuntGame::searchForEgg(). Participants call this function to search for an egg. The use of keccak256 hash functions on predictable values like block.timestamp, block.number, or similar data, including modulo operations on these values, should be avoided for generating randomness, as they are easily predictable and manipulable.
The users can manipulate the values, block.timestamp and block.prevrandao, to get a random number less than the eggFindThreshold to mint themselves NFTs.
Manual review
Aderyn static analyzer
The PREVRANDAO opcode also should not be used as a source of randomness. Instead, utilize Chainlink VRF for cryptographically secure and provably random values to ensure protocol integrity.
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.