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

Pseudorandom winner selection

Summary

Winner is chosen using predetermined parameters. Working out when to call selectWinner to land on a particular players index is feasible.

Vulnerability Details

Winner is not truly random and entrance could be engineered such that an expected outcome necessarily happens. The attacker could force a win.

Impact

The raffle cannot be trusted to fairly select a winner.

Tools Used

  • Manual Review

Recommendations

Implementation of chainlink VRF to provide verified random numbers would remove an attacker's ability to predict outcomes.

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.