Submit #1055284: vijaythapa333 django-student-management-system 1.0 Arbitrary File Uploadinfo

Titlevijaythapa333 django-student-management-system 1.0 Arbitrary File Upload
DescriptionAn arbitrary file upload vulnerability exists in the student creation functionality, which allows an authenticated administrator to upload files with arbitrary extensions and content. The uploaded file is stored on disk as-is via `FileSystemStorage().save()` without validating its type, size, or content. The application then serves files from the `/media/` path using Django’s `static()` helper, which determines the response `Content-Type` based on the file extension. As a result, an uploaded `.html` file is returned as `text/html` and is rendered in the site’s origin. Because the uploaded HTML can contain arbitrary JavaScript, an attacker with administrator access can upload a malicious `.html` file (for example, as a “profile picture”) and lure any authenticated user into opening the file’s `/media/` URL. The script then executes in the victim’s browser within the application’s same origin. ## Affected Component - Student creation endpoint: `/add_student_save/` - Vulnerable upload field: `profile_pic` - File storage: `FileSystemStorage().save()` in `HodViews.py:354-358` - Form field: `forms.FileField` in `forms.py:49` - Media serving route: `/media/` via `urls.py` using `static()` - Vulnerable behavior: no file type, size, or content validation; extension-based `Content-Type` handling
Source⚠️ https://github.com/vijaythapa333/django-student-management-system/issues/27
User
 sunynov (UID 102405)
Submission10/24/2026 06:39 (1 month ago)
Moderation11/23/2026 11:23 (1 month later)
StatusAccepted
VulDB entry442282 [vijaythapa333 django-student-management-system up to 0d96e62cc4e996e3e77bec1b8e3da3980edf8889 Student Profile Picture Upload HodViews.py add_student_save profile_pic unrestricted upload]
Points20

Do you want to use VulDB in your project?

Use the official API to access entries easily!