Mystery Box

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

Missing fallback/receive function

Summary

Missing fallback/receive function in contract, so Ether sent directly to the contract (not through specific functions) would be rejected.

Vulnerability Details

The contract has payable functions, but no fallback or receive function.

Impact

Without fallback/receive function, Ether sent directly to the contract (not through specific functions) would be rejected.

Tools Used

Manual review.

Recommendations

Add a receive function to handle incoming Ether directly:

receive() external payable {}
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!