RustFund

First Flight #36
Beginner FriendlyRust
100 EXP
View results
Submission Details
Severity: medium
Valid

fund.deadline can be updated multiple times

Summary

The set_deadline function fails to update the deadline_set flag after setting a deadline, potentially breaking contract logic that relies on this flag.

Vulnerability Details

Despite checking for an existing deadline, the function does not update the dealine_set flag to true after setting a new deadline. This can lead to deadline updation of deadline multiple times.

Impact

The deadline can be set multiple time, thus making the dealine_set validation redundent.

Tools Used

Manual

Recommendations

Explicitly set the deadline_set flag to true after successfully setting a deadline.

- Ok(())
+ fund.deadline_set = true;
+ Ok(())
Updates

Appeal created

bube Lead Judge 6 months ago
Submission Judgement Published
Validated
Assigned finding tags:

Deadline set flag is not updated in `set_deadline` function

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.