Authenticated teachers can write records for students outside their assigned course period by providing arbitrary student IDs. This is possible by modifying the `st arr`, `values`, or `attendance` POST arrays within the following endpoints: 'MakeReferral.php', 'EnterEligibility.php', 'InputFinalGrades.php', and 'TakeAttendance.php'. This allows the creation of referrals, eligibility codes, attendance records, and final grades for any student in the school.