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

Random can be manipulated

Summary

selectWinner is an external function that can be called by anyone.
Onchain random using address, timestamp and block data can be manipulated to set the winner by any user.

Vulnerability Details

random will depend on the caller and block data. anyone can use different data and estimate the outcome before running the function, therefore winning the raffle themselves.

Impact

Manipulated winner

Recommendations

Use VRF for correct random number.

Updates

Lead Judging Commences

Hamiltonite Lead Judge over 1 year 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.