ThegiveReview
function fails to increment reviewCount
, rendering the reviewCount[_student] < 5
check ineffective. This allows teachers to submit unlimited reviews, excessively manipulating student scores.
Root Cause: The reviewCount[_student]
mapping is never incremented in giveReview
, so the check always passes.
Attack Path: A teacher repeatedly calls giveReview
with review = false
, reducing a student’s score indefinitely.
Affected Component: The review system, specifically reviewCoun
t and score calculation.
Unfair Score Manipulation: Students can be unfairly prevented from graduating by excessive score reductions.
Core Mechanic Violation: Breaks the 4-review limit, undermining system fairness.
Manual Review
Increment reviewCount
and adjust the check for clarity. Here’s the diff:
`reviewCount` for students is not updated after each review session
`reviewCount` for students is not updated after each review session
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.