Generating a random value from on-chain information allows a user to pre-calculate a preferable value for them.
The code on line 47 below is prone to user pre-calculation.
A user can pre-calculate the randomValue to get the number they prefer before calling function openBox(). The user can either time their function call or use the right sender address.
The randomValue can be guessed so the user always gets the maximum reward.
Manual review.
Consider using a verifiable random function (VRF) service to generate a random value.
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.