| Titel | jobic10 student-management-using-django 1.0 IDOR |
|---|
| Beschreibung | An insecure direct object reference (IDOR) vulnerability exists across the attendance management endpoints. The attendance module implements no object-level authorization. Endpoints accept `subject`, `session`, `date`, and `attendance_date_id` values directly from the client and use them to query or write `Subject`, `Student`, `Attendance`, and `AttendanceReport` records without verifying that the target subject belongs to the authenticated teacher. All relevant endpoints are also marked `@csrf_exempt`, so requests are accepted without a CSRF token.
The vulnerable flow includes:
- `staff_views.py:53-71` — `get_students` returns all students in the course of any supplied `subject` ID without verifying that the subject belongs to the current teacher
- `staff_views.py:75-103` — `save_attendance` creates `Attendance` and `AttendanceReport` records using the client-supplied `subject` without an ownership check
- `staff_views.py:119-133` — `get_student_attendance` returns attendance details for any `Attendance` ID
- `staff_views.py:136-153` — `update_attendance` also lacks ownership validation by design (the route is currently shadowed; see below)
- `main_app/urls.py:94-104` — the four endpoints expose no method restrictions
- `@csrf_exempt` is applied on lines 53, 75, 119, and 136
As a result, any authenticated teacher can enumerate students in another teacher’s course, create attendance records for another teacher’s subject, and read attendance details for any `Attendance` ID. |
|---|
| Quelle | ⚠️ https://github.com/jobic10/student-management-using-django/issues/20 |
|---|
| Benutzer | fannnn (UID 102413) |
|---|
| Einreichung | 10.11.2026 12:04 (vor 21 Tagen) |
|---|
| Moderieren | 30.11.2026 22:51 (20 days later) |
|---|
| Status | Akzeptiert |
|---|
| VulDB Eintrag | 446840 [jobic10 student-management-using-django bis 066dcaeffc52fe52e9279d93e2a00c15909544ae Attendance Management main_app/staff_views.py subject erweiterte Rechte] |
|---|
| Punkte | 20 |
|---|