The set_deadline
function is intended to be called only once per campaign, as stated in the documentation:
"Creators can set campaign deadlines."
However, due to a logic error, the function allows multiple calls to change the deadline, contradicting the expected behavior.
The function is supposed to check if the deadline has already been set using fund.dealine_set
, but due to a spelling mistake (dealine_set
instead of deadline_set
), this check is never enforced.
As a result, a creator can call set_deadline
multiple times and arbitrarily extend or change the deadline.
A creator initializes a fundraising campaign and sets a deadline of April 1, 2025.
As the deadline approaches, they call set_deadline
again and push it to June 1, 2025.
They continue doing this indefinitely, preventing contributors from claiming refunds.
Creators can extend deadlines indefinitely, preventing contributors from reclaiming their funds.
This directly violates the one-time deadline-setting rule expected in the documentation.
Can be abused to delay refund eligibility for contributors indefinitely.
Manual code review
Fix the typo: Change dealine_set
to deadline_set
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.