Teachers are allowed to submit only one review per student per week, for a total of four weeks. By the end of the session, every student must have received all four weekly reviews in order to system upgrade. Otherwise the system is not upgraded.
After a review the 'reviewCount' mapping is not updated. This leads to teachers can give any more than 4 reviews but one per student per week because this check is always true
require(reviewCount[_student] < 5, "Student review count exceeded!!!");
vulnerable code:
Breaks invariant of the protocol
Manual Analysis
Update the reviewCount
mapping after each review
Updated Code:
`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.