Hi,
I have found out potential bug in with the lack of certain checks leads to time manipulation in set_deadline
function.
The main details of the potential vulnerability are given as follows:
set_deadline
doesn't update the dealine_set
flag to true after setting the deadline. Allowing the creator to repeatedly set new deadlines, potentially extending the campaign indefinitely.
Also, this function does not validate that the provided deadline is in the future. Setting a deadline in the past would immediately prevent contributions and allow refunds, which could be used maliciously or accidentally to disrupt the campaign.
Contributors may get misled about campaign's timeline.
Campaigns could be prematurely terminated, undermining trust in the platform.
Manual review
set fund.dealine_set = true
after setting the deadline.
Add a check to ensure the deadline is greater than the current timestamp.
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.