Christmas Dinner

First Flight #31
Beginner FriendlyFoundrySolidity
100 EXP
View results
Submission Details
Severity: medium
Invalid

Payable Function Without Withdrawal Mechanism

Summary

A payable function exists in the contract without a corresponding withdrawal mechanism, potentially allowing funds to become locked in the contract.

Vulnerability Details

  • Location: Line 233

  • Type: Lack of withdrawal function for payable function

  • Description: The contract contains a payable function that allows receiving ETH, but lacks a corresponding withdrawal function to return funds to users.

Impact

Users may inadvertently lock funds in the contract, unable to retrieve their ETH sent to the payable function.

Tools Used

Slither static analysis tool identified this vulnerability.

Recommendations

  1. Implement a withdrawal function to allow users to retrieve their funds.

  2. Alternatively, remove the payable attribute from the function if it's not intended to receive funds.

  3. Ensure proper access controls are in place for any withdrawal functionality.

Updates

Lead Judging Commences

0xtimefliez Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

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