The removeTeacher function in LevelOne.sol allows removing teachers during an active session without compensating them for their work, creating an unfair payment system.
Teachers can be removed at any time during an active session
No pro-rated payment calculation for partial session work
Teachers lose all compensation for work done if removed before session end
Example: Teacher removed one day before session end loses payment for previous 6 days
Medium: This vulnerability leads to:
Potential loss of earned wages
Unfair treatment of teachers
Negative impact on teacher trust and retention
Manual code review
For example implement pro-rated payment calculation based on time worked or add a function to calculate and distribute partial payments upon removal.
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.