The giveReview
function in LevelOne.sol
allows teachers to give reviews even after the session has ended. This is problematic because reviews should only be given during an active session.
In the giveReview
function:
The function checks:
If the student exists
If the student has received less than 5 reviews
If enough time has passed since the last review
However, it does not check if the current session has ended. This means:
Teachers can give reviews after the session end time
Student scores can be modified outside of the active session period
The session end time check that exists in other functions (like expel
) is missing here
Impact: HIGH
Allows modification of student scores outside of the intended session period
Could lead to unfair score adjustments after the session has ended
Affects the integrity of the student evaluation system
Could allow teachers to manipulate scores after the session is over
May affect student graduation eligibility
Manual code review
Add a check to ensure reviews can only be given during an active session:
This will ensure that:
Reviews can only be given during an active session
Student scores cannot be modified after the session ends
The review system maintains its integrity throughout the 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.