System upgrade with function graduateAndUpgrade
can occurs even if students has no reviews at the end of the 4 week of the session breaking Invariant.
The function LevelOne::graduateAndUpgrade
does not check if all students got the necessary 4 reviews at the end of the session.
This means that a session can end even if no reviews have been submitted, breaking the invariant.
VERY HIGH, it cause an important invariant break and it's likelihood is high too.
Manual review
Consider adding a check in the function LevelOne::graduateAndUpgrade
which revert if it finds a student with less then 4 reviews.
Proof Of Code:
All students are graduated when the graduation function is called as the cut-off criteria is not applied.
All students are graduated when the graduation function is called as the cut-off criteria is not applied.
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.