The withdraw
function allows creators to withdraw funds without verifying if the campaign has met its funding goal or if the deadline has passed. This violates the requirement that creators can only withdraw funds after a successful campaign.
In the withdraw
function, there are no checks to confirm whether the campaign's funding goal has been achieved or if the deadline has been reached. This allows the creator to withdraw funds immediately after creation, regardless of the campaign's status.
Creators can drain funds prematurely, leaving contributors unable to claim refunds even if the campaign fails. This breaks the core trust model of the platform.
Manual code review
Add checks in the withdraw
function to ensure the deadline has passed and the goal has been met:
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.