there are no validation if the goal already reached for creator corresponding campaign. or if the deadline already passed if the creator set one.
so malicious creator can just call withdraw
to withdraw the fund raised without waiting for the goal to reach or deadline passes.
as we can see in the snippet above. there are no validation if the goal/deadline already passed.
this make the withdraw
have no constraint and can be called to get the fund raised prematurely
core function broken as the withdraw
can be called anytime to collect the fund by creator
contributor potentially lose funds because they hope the fund only collected when certain goal are met, and ready to call refund
if the goal are not reached.
manual review
withdraw
should check if the goal already passed or deadline already reached.
so creator cant just take the funds. and contributor can call refund
if the goal are not passed.
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.