Hawk High

First Flight #39
Beginner FriendlySolidity
100 EXP
View results
Submission Details
Severity: low
Valid

[M-04] The Principal Cannot Start a New Term After the Current One Begins

Vulnerability Details

  1. The startSession function contains the notYetInSession modifier restriction.

  2. There is no inSession = false operation performed throughout the entire project.

  3. This causes the principal to only be able to start the first term, and subsequent terms cannot be started.

Impact

The principal can only start one term and cannot initiate a second or third term!

POC

Not written.

Recommendations

When executing the graduateAndUpgrade function, the inSession = false operation should be performed. This would signify the end of the term after fund allocation, allowing the principal to start a second term!

Updates

Lead Judging Commences

yeahchibyke Lead Judge 7 months ago
Submission Judgement Published
Validated
Assigned finding tags:

session state not updated

`inSession` not updated after during upgrade

Support

FAQs

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

Give us feedback!