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

Possible overflow in `killRavana` function

Summary

The Dussehra::killRavana function is susceptible to overflow if the length of participants and the entrance fee are too large.

Vulnerability Details

In killRavana function, the multiplication of WantToBeLikeRam.length, entranceFee, and 50 can potentially overflow.

If WantToBeLikeRam.length and entranceFee are both very large, their product multiplied by 50 may exceed the maximum value of uint256, causing an overflow.

Impact

Possible overflow can cause the killRavana function to revert, resulting in funds being stuck in the contract forever.

Tools Used

Manual review

Recommendations

Implement limits on the number of entries for the event to prevent excessively large values for WantToBeLikeRam.length.

Updates

Lead Judging Commences

bube Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

Info/Gas/Invalid according to docs

Support

FAQs

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