Hawk High

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

M-02. System can be upgraded even if the session is not finished

Summary

The function to upgrade the system graduateAndUpgrade does not check if the session (sessionEnd) is terminated.

As a result, the principal can perform an upgrade even if the session is not finished

Vulnerability Details

As a result, the following specification is not respected
System upgrade cannot take place unless school's sessionEnd has reached

Impact

Tools Used

Foundry / static analysis

Recommendations

Revert in the function `graduateAndUpgrade if block.timestamp is < sessionEnd


Updates

Lead Judging Commences

yeahchibyke Lead Judge
27 days ago
yeahchibyke Lead Judge 16 days ago
Submission Judgement Published
Validated
Assigned finding tags:

can graduate without session end

`graduateAndUpgrade()` can be called successfully even when the school session has not ended

yeahchibyke Lead Judge 16 days ago
Submission Judgement Published
Validated
Assigned finding tags:

can graduate without session end

`graduateAndUpgrade()` can be called successfully even when the school session has not ended

Support

FAQs

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