| शीर्षक | vijaythapa333 django-student-management-system 1.0 Stored Cross-Site Scripting (XSS) |
|---|
| विवरण | A stored cross-site scripting (XSS) vulnerability exists in the student profile name field, which is exposed through a teacher-facing JSON endpoint and rendered into the DOM using jQuery’s `.html()` method. The student profile update endpoint stores the `first_name` parameter without validation or sanitization. The teacher-side “fetch students” endpoint (`/get_students/`) returns the stored name inside a JSON response without escaping. The frontend then concatenates the name into an HTML string and inserts it via `.html()`, causing any injected HTML event attributes to be parsed and executed.
An attacker using a student account can submit a payload such as:
```html
<img src=x onerror=alert(document.cookie)>
```
When a teacher fetches the student roster for a subject and session in which the malicious student is enrolled, the payload is rendered as HTML and the `onerror` handler executes in the teacher’s browser context. |
|---|
| स्रोत | ⚠️ https://github.com/vijaythapa333/django-student-management-system/issues/25 |
|---|
| उपयोगकर्ता | Seppts (UID 98140) |
|---|
| सबमिशन | 24/10/2026 06:20 AM (1 महीना पहले) |
|---|
| संयम | 23/11/2026 11:23 AM (1 month later) |
|---|
| स्थिति | स्वीकृत |
|---|
| VulDB प्रविष्टि | 442280 [vijaythapa333 django-student-management-system तक 0d96e62cc4e996e3e77bec1b8e3da3980edf8889 Take Attendance Staff Dashboard StaffViews.py get_students first_name क्रॉस साइट स्क्रिप्टिंग] |
|---|
| अंक | 20 |
|---|