| शीर्षक | jobic10 student-management-using-django 1.0 Class-Based View Bypasses Middleware: Student Account Can Direct |
|---|
| विवरण | A privilege escalation vulnerability exists in the grade editing class-based view `EditResultView`. The application enforces role-based access control only in middleware, and the middleware uses a whitelist-style check based on the module name where the view is defined. The module name of `EditResultView` is `main_app.EditResultView`, which is not included in the middleware’s check list. As a result, the middleware allows the request through by default.
Inside the class-based view, only the GET branch performs a teacher lookup via `Staff.objects.get(admin=request.user)`. The POST branch performs no staff or role validation and directly modifies grades using the `student` and `subject` values supplied by the form. The form itself does not restrict `student` or `subject` to those belonging to the current teacher.
Consequently, any authenticated student account can directly access the grade editing endpoint and submit a POST request to modify grades for any student and any subject, including their own and others’. |
|---|
| स्रोत | ⚠️ https://github.com/jobic10/student-management-using-django/issues/18 |
|---|
| उपयोगकर्ता | hybcx (UID 85801) |
|---|
| सबमिशन | 10/11/2026 09:29 AM (26 दिन पहले) |
|---|
| संयम | 06/12/2026 01:32 PM (26 days later) |
|---|
| स्थिति | स्वीकृत |
|---|
| VulDB प्रविष्टि | 450818 [jobic10 student-management-using-django तक 066dcaeffc52fe52e9279d93e2a00c15909544ae Result Management EditResultView.py EditResultView.post student अधिकार वृद्धि] |
|---|
| अंक | 20 |
|---|