Miners can manipulate block.prevrandao and block.timestamp to influence the egg searching mechanism, potentially allowing specific addresses to win the raffle unfairly.
The function uses block.timestamp and block.prevrandao as sources of randomness, which can be manipulated by miners within certain bounds. In Proof-of-Stake Ethereum, validators can influence PREVRANDAO by choosing whether to propose a block, giving them some control over the outcome. Similarly, block.timestamp can be set with some flexibility. This allows miners to potentially control the random value generation, especially when they can predict the other inputs (msg.sender and eggCounter).
Miners or validators can manipulate the randomness to favor specific addresses, allowing them to mint valuable NFTs unfairly.
Manual
Change randon generate method (can use chainlink VRF, etc...)
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.