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

RNG not truly random

Summary

Random number generator (RNG) is not truly random and miners can interfere with the winner selection.

Vulnerability Details

Since on-chain data is used (such as block.timestamp and block.difficulty), theoretically, miners could interfere and possibly select themselves as winners, due to their access to protocol-level variables, such as block.

Impact

High risk, low likelyhood

Tools Used

Manual inspection.

Recommendations

Use verifiably and truly random numbers, such as RANDAO or Chainlink's VRF, to select winners.

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.