Mystery Box

First Flight #25
Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: medium
Invalid

Predictable Random Generation

Summary : In the openBox function, the contract uses block.timestamp and msg.sender to generate a random number.

Vulnerability Details : This method is predictable and can be exploited.

Impact

Tools Used

Recommendations :

Use a more secure source of randomness, such as a randomness oracle like Chainlink VRF, or accept that the randomness generation is manipulable if secure randomness is not essential to the application.

Updates

Lead Judging Commences

inallhonesty Lead Judge
about 1 year ago

Appeal created

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.