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

Raffle is vulnerable to Sybil attack

Summary

Raffle is vulnerable to Sybil attack

Vulnerability Details

A player can have multiple accounts, so assuming that all players are unique and checking duplicates doesn't help much. A player with a lot of money can enroll all their accounts with the entrance fee and since the winner is selected using modulo operation, the probability of winning can be simply increased by enrolling more accounts.

Impact

The player with the most money can increase their chances of winning.

Tools Used

Manual

Recommendations

  • Don't assume players to be unique

  • Add a refund fee that would decrease the motivation to enroll multiple accounts

Updates

Lead Judging Commences

patrickalphac Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: User experience and design improvement
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.