The set_deadline
function sets the deadline timestamp but fails to update the dealine_set
flag, allowing the deadline to be changed multiple times.
In the set_deadline
function, there's a check to verify if the deadline has already been set using the dealine_set
flag:
However, after setting the deadline value, the function doesn't update the dealine_set
flag to true
. This oversight means that despite the check, the deadline can be changed multiple times as the flag never gets updated.
Impact
This vulnerability allows the creator of a fund to manipulate the deadline multiple times, which breaks the trustless nature of the platform. A malicious creator could:
Set a far-off deadline to attract contributions
Once sufficient funds are collected, change the deadline to a past date
Withdraw all funds immediately, bypassing any time commitments made to contributors
This severely undermines trust in the platform and could lead to fraudulent behavior.
Manual code review
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.