Description: In LevelOne contract inSession variable is set to true in LevelOne:startSession and LevelOne:sessionEnd is setted from whatever time the startSession started plus four weeks. But after the four weeks end there is no way to set insession variable to false to prevent teacher from LevelOne:giveReview to students after time is up.
Vulnerability Details: variable inssession is not set to false after sessionEnd reached
Impact: teachers can call giveReview function after sessionEnd
Tools Used: Manual Review
Proof of Concept: Add this test suit to your LeveOnelAndGraduateTest.t.sol code
Recommendations: There are multiple ways to mitigate this:
1. Make a function that can be called after sessionEnd to set inSession to false
2. Use Decentralized oracle Chainlink Upkeep to set inSession to false immediatly after session end
`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.