The review system's time validation incorrectly permits teachers to evaluate students as early as 1 week after contract deployment, rather than enforcing reviews only during active sessions. This breaks the intended 4-week review cadence tied to session periods.
File: levelOne.sol
Function: giveReview(address _student, bool review)
Incorrect Time Reference:
Uses deployment timestamp (lastReviewTime = 0
) instead of session start time
Allows first review 1 week after deployment rather than 1 week after session start
Session Bypass:
Teachers can negatively impact student scores before educational content begins
Violates the intended "4 reviews per session" structure
Score Manipulation Risk:
Students could enter session with already-reduced scores
Enables unfair academic penalties before course begins
Test Case:
Test Result:
Medium Severity because:
Distorts the intended 4-review-per-session structure
Allows academic penalties before educational delivery
Could lead to unfair student outcomes
Foundry (forge test)
Enforce Session-Based Timing:
`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.