The giveReview function does not increment the number of reviews given to a student. As a result, the contract fails to track how many times a student has been reviewed, violating the intended limit of a maximum of 4 reviews per student.
A student can receive more than 4 reviews, bypassing the weekly and overall session constraints.
The contract becomes vulnerable to misuse, such as biased grading or review spam.
Manual code review
Correct the review limit condition:
Update the requirement from reviewCount < 5 to reviewCount < 4 to enforce a 4-review maximum.
Track the number of reviews properly:
Add reviewCount[_student] += 1; immediately after setting lastReviewTime.
Add correct condition for number of reviews
Increment the reviewCount after the review has been given
`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.