This is a logic bug where there is a leak for checking the cutOff
Score that is essential to determine the students who will be graduate (if meets the cutOff
Score), or won't be (if didn't meet the cutOff
Score), causing all the students to graduate even if some of them didn't match the cutOff
Score.
1- Navigate to test/LeveOnelAndGraduateTest.t.sol
file
2- add the following PoC code to the test
file:
3- In the command line, run the following command: forge test --match-test testAllStudentsCanGraduateWithNoRestriction -vvv
4- You'll see the following output :
Any student can graduate even if didn't match the cutOff
Score.
manual Recon.
foundry test suite
Add the following restriction to the LevelOne::graduateAndUpgrade
function :
All students are graduated when the graduation function is called as the cut-off criteria is not applied.
All students are graduated when the graduation function is called as the cut-off criteria is not applied.
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.