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

DoS attack - enterRaffle function

Summary

Pushing new player thanks to a loop can cause DoS

Vulnerability Details

The enterRaffle function uses a loop to push new players into an array. This can cause a Denial of Service attack if we have tons of new players

Impact

This can break the contract / function logic

Tools Used

Manual review

Recommendations

Do not use loop to push a new player

Updates

Lead Judging Commences

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

denial-of-service-in-enter-raffle

Support

FAQs

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

Give us feedback!