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

Unchecked Array Push

Summary

Due to not checking max size of players array there is a potential error.

Vulnerability Details

When pushing new addresses to players array in enterRaffle function, we are not checking the array is full or not. And passing the size limit will crash the system.

Impact

If the players array passes the size limit enterRaffle function will be unusable and entering the raffle will be impossible for new players.

Tools Used

Manual reading.

Recommendations

Check the current size of the players array or use exception handling.

Updates

Lead Judging Commences

Hamiltonite Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Other

Support

FAQs

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