Beginner FriendlyFoundryNFT
100 EXP
View results
Submission Details
Severity: high
Valid

Predictable Winner Randomness

Summary

Using block.timestamp and block.difficulty to determine the winner is not 100% secure.

Vulnerability Details

By using block.timestamp and block.difficulty to determine the winning player index could be predictable as well as exploitable.

Impact

Medium.
This is a valid bug but the exploitation of it needs multiple miners to succeed so the cost to exploit this would outweigh the gains made by it.

Tools Used

Vs Code

Recommendations

Always use a off-chain oracle like chainlink to get true randomness that cant be altered by on-chain tactics.

Updates

Lead Judging Commences

Hamiltonite Lead Judge almost 2 years ago
Submission Judgement Published
Validated
Assigned finding tags:

weak-randomness

Root cause: bad RNG Impact: manipulate winner

Support

FAQs

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