The ChristmasDinner::withdraw function does not check the deadline, allowing the host to withdraw funds before the deadline, which could affect participants' ability to refund and compromise the fairness of the contract.
In the ChristmasDinner::withdraw function, there is no deadline check, allowing the host to withdraw funds before the deadline. If the host withdraws funds before the deadline, participants may not be able to perform refund operations, leading to incomplete contract functionality and negatively impacting participants' interests and the fairness of the contract.
Affects participant refunds: The host withdrawing funds before the deadline could prevent participants from refunding, which jeopardizes their financial security.
Abuse of power: Allowing the host to withdraw funds at an inappropriate time could be abused, providing the host with an unfair advantage.
Incomplete contract functionality: The contract fails to restrict fund withdrawals as expected, affecting its predictability and fairness.
Manual review.
Add a deadline check in the withdraw function to ensure the host can only withdraw funds after the deadline.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.