Mystery Box

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

Uncontrolled Box Buying

Summary

The buyBox function allows users to buy boxes without limits. Users could buy an unlimited number of boxes, potentially leading to contract abuse or unintended economic consequences if too many boxes are sold at once.

Vulnerability Details

MysteryBox.sol/Line 38

Impact

Economic imbalance or abuse if too many boxes are purchased in a short period.

Tools Used

Foundry

Recommendations

Consider adding a limit on how many boxes a user can buy at once or rate-limiting box purchases.

Updates

Appeal created

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Design choice

Support

FAQs

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

Give us feedback!