Hawk High

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

Missing Grade Correction Mechanism Makes Errors Permanent

Summary

Once a grade is assigned, there's no way to correct it, even in cases of errors or disputes.

Vulnerability Details

Root cause:

  • No function exists to modify or correct grades

  • Grades are permanent once assigned

  • No dispute resolution mechanism

Initial State:

  • Student receives incorrect grade

  • No way to correct the error

Step 1: Teacher makes grading error
Step 2: Error discovered
Step 3: No mechanism to correct the mistake
Step 4: Student stuck with incorrect grade

Implications:

  • Permanent incorrect grades

  • No error correction possible

  • No dispute resolution

Impact

  • Academic integrity compromised

  • Student futures affected

  • No remediation for errors

  • Trust issues in system

Tools Used

Manual Review

Recommendations

function correctGrade(
address _student,
uint256 _newScore,
string memory _reason
) public onlyPrincipal {
require(_newScore <= 100, "Invalid score");
require(isStudent[_student], "Not a student");
uint256 oldScore = studentScore[_student];
studentScore[_student] = _newScore;
emit GradeCorrected(_student, oldScore, _newScore, _reason);
}
Updates

Lead Judging Commences

yeahchibyke Lead Judge about 2 months ago
Submission Judgement Published
Invalidated
Reason: Design choice

Support

FAQs

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