The program performs critical campaign status checks inside `contribute` and `refund` instructions using the campaign deadline.
The `set_deadline` instruction does not validate that the target deadline parameter is greater than the current blockchain timestamp or non-zero.
Likelihood:
Creators calling set_deadline with a value of 0 or a past timestamp.
Impact:
If set to 0, deadline-based constraints in contribute are bypassed, allowing contributions to continue indefinitely.
If set to a past timestamp, the campaign is locked immediately, blocking further contributions and locking the funds.
The test initializes a mock Fund campaign and attempts to update its deadline to 0. The execution succeeds, which demonstrates that the instruction allows setting logical null/zero values as valid campaign deadlines.
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.