The set_deadline function allows the campaign deadline to be set to a timestamp in the past. This effectively locks the campaign immediately or breaks logic that assumes the deadline is a future event. There is no validation to ensure deadline > Clock::get()?.unix_timestamp.
Severity: Medium
Likelihood: High (User Error or Malicious)
Impact: Medium
Impact Details:
DoS via Malconfiguration: A campaign can be essentially bricked upon creation or update.
Refund Lockout: If refunds require now > deadline, they become active immediately, defeating the purpose of a holding period.
Test demonstrating setting a past deadline.
Validate that the new deadline is in the future.
The contest is live. Earn rewards by submitting a finding.
Submissions are being reviewed by our AI judge. Results will be available in a few minutes.
View all submissionsThe contest is complete and the rewards are being distributed.