A teacher could exploit the LevelOne::giveReview by giving a student review more than 5 times because LevelOne::reviewCount mapping for a student is not incremented after each review, this bypasses the require check and disrupts function's intention
The require statement would fail to revert when student reviews has exceeded the limit which is 5 because reviewCount is not been incremented after each review in the function
A worst case scenario involves a Malicious Teacher calling LevelOne::giveReview countless times, giving a student reviews for as long as the student has a score, the teacher could go as far as giving bad reviews until the students score is reduced to zero.
Foundry Testing and Manual Review
Increment ``LevelOne::reviewCount mapping for each student after each review
`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.