Mystery Box

First Flight #25
Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: low
Invalid

Incorrect Index Range

Summary

The claimSingleReward function uses an incorrect range for _index.

Vulnerability Details

The check on line 93 includes the length of the rewardsOwned array as a possible index value.

Impact

This will permit users to pass in an incorrect index (_index == rewardsOwned[msg.sendr].length) which is an out of bounds value. The result is that all calls using this value will fail.

Tools Used

Manual Review

Recommendations

On line 93 use < instead of <= when verifying the index range.

Updates

Appeal created

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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

Give us feedback!