Random numbers are generated in MysteryBox::openBoxin a weak and predictable way. Therefore, a user can predict what is in his box and consistently get the desired reward each time he opens his box.
The random number is generated by hashing block.timestamp and wallet address of the caller as shown below. Both values are deterministics, predictable and publicly available data. Anyone can predict the random number.
A user can consistently get the Gold Coin since he can predict it.
Manual review
Use Chainlink VRF random number generator to generate 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.