In function addTeacher
we are missing check that is msg.sender = principal
. Principal can add itself as a teacher and withdraw the salary of teacher and principal both .
In function addTeacher
we are missing check that is msg.sender = principal
. Principal can add itself as a teacher and withdraw the salary of teacher and principal both .
Principal can add itself as a teacher and can withdraw the salary or can manipulate the review of the student . Drawing salary as teacher and principal both can lead to the loss of funds to the protocol .
manual review
Add check . So, that if principal tries to add itself as a teacher it will revert .
Principal can add themselves as teacher and share in teacher pay upon graduation
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.