Description: A session should not begin unless at least one teacher and one student are present in the school.
Since the addTeacher and enroll functions are only callable before the session starts,
calling startSession without any teacher or student will lock the state until graduation.
Impact: If principal did not check for teachers and students before starting the session,
will result in no students and teachers in the school,
Proof of Concept: add following test and run
Recommended Mitigation: add a check that at least one teacher and one student should be present in the school before startSession
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.