Hawk High

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

A Student Score Can Drop to 0

Summary
A student's score can drop to 0 due to bad reviews, but they remain enrolled as a student.

Vulnerability Details
Root Cause: The giveReview function reduces a student's score without checking for a minimum threshold:

if (!review) {

studentScore[_student] -= 10;

}
Initial State: A student is enrolled with a score of 100.

Step 1: The student receives multiple bad reviews.

Outcome: The student's score drops to 0 or below, but they remain enrolled.

Implications: Students with 0 scores may continue to participate in the system, which could undermine its integrity.

Impact
Who is affected: The school system and its credibility.

How they are affected: Students with 0 scores may exploit the system or fail to meet performance standards.

Tools Used
manuel review

Recommendations
Add a check to expel students whose scores drop below a threshold:

if (studentScore[_student] < MINIMUM_SCORE) {

expel(_student);

}

Updates

Lead Judging Commences

yeahchibyke Lead Judge 6 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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