Hawk High

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

Don't have to upgrade unless sessionEnd has reached

Summary

8th rule in invariants:

System upgrade cannot take place unless school's sessionEnd has reached

Vulnerability Details

No check in graduateAndUpgrade for block.timestamp >= sessionEnd.

Impact

Upgrade can be called before session ends.

Tools Used

Manual Review

Recommendations

Add a check in graduateAndUpgrade:

require(block.timestamp >= sessionEnd, "Session not ended");
Updates

Lead Judging Commences

yeahchibyke Lead Judge 6 months 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.