Hawk High

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

All students are upgraded despite their score

Summary

Students' score is not taken into account on upgrade and all students are upgraded.

Vulnerability Details

The storage variable LevelOne::cutOffScore is intended to filter students who is upgraded to level 2. However, this variable value is not used and all students are actually upgraded.

Impact

All students are upgraded, even if they have not passed the required score.

Tools Used

Manual review

Recommendations

Filter students based on their score in function LevelOne::graduateAndUpgrade.

Updates

Lead Judging Commences

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

cut-off criteria not applied

All students are graduated when the graduation function is called as the cut-off criteria is not applied.

Support

FAQs

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