Mystery Box

First Flight #25
Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: high
Valid

`MysteryBox::claimAllRewards` & `MysteryBox::claimSingleReward` did not follow CEI, may have a reentrancy issue.

Summary

Inside these two function claimAllRewards & claimSingleReward, both do the external call then change the state value.

Vulnerability Details

refer

Impact

It probably will having a reentrancy attack by malicious user.

Tools Used

slither

Recommendations

Following the CEI pattern is better way.
Also could add ReentrancyGuard lib of oppezeppelin.

Updates

Lead Judging Commences

inallhonesty Lead Judge
about 1 year ago

Appeal created

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

`claimAllRewards` reentrancy

`claimSingleReward` reentrancy

Support

FAQs

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

Give us feedback!