The giveReview() function in the LevelOne contract lacks a check to verify that the school session has actually started before allowing teachers to give reviews to students. While other functions like expel() properly check that the school is in session, this critical check is missing from the review functionality.
Students can receive reviews before the school session officially starts
This violates the educational process where reviews should only be given during the active session
Students could start the session with unfairly reduced scores
Combined with the fact that lastReviewTime[_student] is not initialized and reviewCount[_student] is never incremented, this leads to a situation where a student can receive unlimited reviews, depending only on how many weeks have passed since enrollment.
Add a check at the beginning of the giveReview() function to ensure the school is in session
`inSession` not updated after during upgrade
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.