Mystery Box

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

Missing `address(0)` check in the `transferReward` function

Summary

The function allows users to send rewards to any address, including address(0) (the zero address), which could effectively "burn" the reward and make it unrecoverable.

Tools Used

Manual review

Recommendations

Ensure rewards are not transferred to address(0) by adding a validation check.

require(_to != address(0), "Invalid recipient address");
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.