fund_create
function, Which Could Allow Creators to Set Zero Goalsfund_create
function, there is no validation to ensure the goal is greater than zero. This oversight allows creators to set a funding goal of zero, which is likely not the intended behavior for a crowdfunding platform.A creator calls fund_create
with goal
= 0.
The fund is created with goal
= 0.
Any contribution, even zero, would technically meet the goal
, allowing the creator to withdraw funds immediately if no other checks are in place.
This could confuse contributors who expect a meaningful funding target.
It might enable potential exploitation where creators could withdraw funds without meeting a legitimate goal.
If the `goal` is 0, the campaign goal is achieved immediately and the creator can withdraw the contributors funds. The contributors select themself which campaign to support, therefore I think Low severity is appropriate here.
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.