Hawk High

First Flight #39
Beginner FriendlySolidity
100 EXP
View results
Submission Details
Impact: medium
Likelihood: medium
Invalid

Post-Session Score Modifications Allowed

Summary

Teachers can modify student scores even after the session has ended, as giveReview does not check the inSession status.

Vulnerability Details

The giveReview function lacks a check for inSession, allowing teachers to alter scores post-session. This could retroactively affect graduation eligibility after the session ends.

https://github.com/CodeHawks-Contests/2025-05-hawk-high/blob/3a7251910c31739505a8699c7a0fc1b7de2c30b5/src/LevelOne.sol#L277-L293

Impact

Scores can be manipulated after the session, undermining the integrity of the grading process.

Tools Used

Recommendations

Add a modifier or require statement in giveReview to ensure reviews are only allowed while inSession is true.

Updates

Lead Judging Commences

yeahchibyke Lead Judge
27 days ago
yeahchibyke Lead Judge 16 days ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement
yeahchibyke Lead Judge 16 days ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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