RustFund

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

Creator can change deadline multiple times

Summary

The deadline_set field in the Fund Account is always false even when the deadline is set in set_deadline.

Vulnerability Details

This entails that there is that the creator can change the deadline multiple times at will

Impact

Creator can change deadline multiple times to cheat contributors who contributed at an initial deadline, hence allowing more contributions until the goal is met

Tools Used

Manual

POC

Check deadline_set after set_deadline is called.

Add this in rustfund.ts#L64

console.log("deadline_set = ", fund.dealineSet);// This ooutputs false

Recommendations

Ensure that the deadline_set is true after the set_deadline is called.
Add in set_deadline

fund.dealine_set = true;
Updates

Appeal created

bube Lead Judge 2 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.