Hawk High

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

Missing [cutOffScore > 0] check in the startSession() function:

Summary:

The function does not validate whether the provided cutOffScore is greater than zero. This oversight may allow invalid or meaningless configurations, reducing the reliability of the contract's session logic and fairness for students.

Vulnerability Details:

There is no check to ensure that _cutOffScore > 0, which may allow the principal to initiate a session with an invalid or meaningless threshold, effectively graduating all students unconditionally, or introducing logical errors in future validation logic.

Impact:

Setting a cutOffScore of 0 would automatically qualify every student, regardless of performance.

Logical inconsistency: Future functions that rely on a valid cutOffScore may misbehave.

Tools Used:

Mannual Review

Recommendations:

require(_cutOffScore > 0, "Cutoff score must be greater than 0");
Updates

Lead Judging Commences

yeahchibyke Lead Judge 18 days ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
yeahchibyke Lead Judge 18 days ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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