The withdraw() function allows the fund creator to withdraw funds without checking whether the fundraising goal has been met or not. This allows withdrawals at any time, even if the target amount has not been reached.
Currently, the function simply transfers all funds to the creator.
However, there is no check to verify if fund.amount_raised >= fund.goal. This means the creator can withdraw funds, even if the fundraising goal has not been met
Fund creator can withdraw and exit without fulfilling the fundraising purpose.
Manual Review
Add a check before allowing withdrawal:
This ensures that withdrawals are only possible after the goal is reached, maintaining the integrity of the fundraising process.
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.