Visitor Management System 1.0 — Unrestricted File Upload to RCE (CVE-2026-37748)
by Varad AP Mene (menevarad007) · 2026-07-05
- Severity
- High
- CVE
- CVE-2026-37748
- Category
- web
- Affected product
- Visitor Management System (sanjay1313) 1.0
- Affected versions
- 1
- Disclosed
- 2026-07-05
- Patch status
- unpatched
Archive entry
intelseclab/poc-archiveMetadata
| Field | Value |
|---|---|
| Date Added | 2026-07-05 |
| Last Updated | 2026-04 |
| Author / Researcher | Varad AP Mene (menevarad007) |
| CVE / Advisory | CVE-2026-37748 |
| Category | web |
| Severity | High |
| CVSS Score | 7.2 (CVSSv3: AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H) |
| Status | PoC |
| Tags | php, unrestricted-file-upload, rce, webshell, admin-authenticated, cwe-434 |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | Visitor Management System (sanjay1313) 1.0 |
| Versions Affected | 1.0 |
| Language / Platform | Python (exploit) targeting PHP/MySQL web app |
| Authentication Required | Yes (admin account) |
| Network Access Required | Yes |
Summary
Visitor Management System 1.0 calls move_uploaded_file() in vms/php/admin_user_insert.php and vms/php/update_1.php without validating the uploaded file’s MIME type, extension, or content. An authenticated admin user can upload a PHP webshell disguised as a profile image and then invoke it directly via its predictable URL under the images directory, achieving remote code execution as the web server user. The PoC automates login, webshell upload, and command execution.
Vulnerability Details
Root Cause
admin_user_insert.php / update_1.php pass $_FILES['image'] straight into move_uploaded_file() with no extension allowlist or MIME/content validation (CWE-434).
Attack Vector
- Authenticate to the admin panel (default credentials
admin/adminare common on fresh installs). - Navigate to Admin Users → Add New Admin and upload a
shell.phpfile containing<?php system($_GET['cmd']); ?>as the profile photo. - Access the uploaded file directly at
http://target/vms/images/shell.php?cmd=<command>. - Arbitrary OS commands execute as the web server user.
Impact
Full remote code execution and server compromise, including data exfiltration of visitor records and potential lateral movement.
Environment / Lab Setup
Target: Visitor Management System 1.0 (PHP/MySQL)
Attacker: Python 3, requests library
Proof of Concept
PoC Script
See
exploit.pyin this folder.
| |
The script authenticates as an admin user, uploads a PHP webshell via the profile image field, and executes the specified OS command through the uploaded file.
Detection & Indicators of Compromise
GET /vms/images/shell.php?cmd=id HTTP/1.1
Signs of compromise:
- Non-image (
.php) files present in thevms/images/upload directory - Admin user creation/update events immediately followed by requests to a newly uploaded
.phpfile
Remediation
| Action | Detail |
|---|---|
| Primary fix | No vendor patch confirmed as of 2026-07-05 — monitor for advisory |
| Interim mitigation | Validate file extension and MIME type against an allowlist, rename uploads to random names, and store uploads outside the web root |
References
Notes
Mirrored from https://github.com/menevarad007/CVE-2026-37748 on 2026-07-05.
| |