School Management System 1.0 — Reflected XSS in register.php (CVE-2026-37750)
by Varad AP Mene (menevarad007) · 2026-07-05
- Severity
- Medium
- CVE
- CVE-2026-37750
- Category
- web
- Affected product
- School Management System (mahmoudai1) 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-37750 |
| Category | web |
| Severity | Medium |
| CVSS Score | 6.1 (CVSSv3: AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N) |
| Status | PoC |
| Tags | php, reflected-xss, cwe-79, unauthenticated, cookie-theft, school-management-system |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | School Management System (mahmoudai1) 1.0 |
| Versions Affected | 1.0 |
| Language / Platform | Python (exploit) targeting PHP web app |
| Authentication Required | No |
| Network Access Required | Yes |
Summary
register.php in School Management System 1.0 reflects the type request parameter into the page’s HTML twice — once inside an <h1> tag via ucfirst($_REQUEST['type']) and once inside a form action attribute — without applying htmlspecialchars() or any output encoding. An unauthenticated attacker can craft a URL containing a <script> payload in the type parameter to execute arbitrary JavaScript in a victim’s browser when they open the link, enabling session-cookie theft, phishing, or malware redirection.
Vulnerability Details
Root Cause
Two sinks in register.php (echo ucfirst($_REQUEST['type']) and echo $_REQUEST['type'] inside a form action) output raw, unescaped user input directly into HTML (CWE-79).
Attack Vector
- Craft a URL such as
http://target/register.php?type=<script>alert(document.cookie)</script>. - Send or embed the URL for a victim to click (no authentication required).
- When the victim’s browser loads the page, the injected script executes in the victim’s session context.
- Use the payload to exfiltrate cookies, inject phishing forms, or redirect to attacker-controlled infrastructure.
Impact
Session hijacking via cookie theft, credential phishing, and malicious redirects — all without requiring authentication.
Environment / Lab Setup
Target: School Management System 1.0 (PHP)
Attacker: Python 3, requests library / any web browser
Proof of Concept
PoC Script
See
exploit.pyin this folder.
| |
The script sends the crafted type parameter payload against register.php and verifies that the injected script tag is reflected unescaped in the response.
Detection & Indicators of Compromise
GET /register.php?type=%3Cscript%3E... HTTP/1.1
Signs of compromise:
- Requests to
register.phpwith<script>,onerror=, or other HTML/JS metacharacters in thetypeparameter - Reports of unexpected pop-ups, redirects, or credential prompts from users visiting the registration page
Remediation
| Action | Detail |
|---|---|
| Primary fix | No vendor patch confirmed as of 2026-07-05 — monitor for advisory |
| Interim mitigation | Apply htmlspecialchars($_REQUEST['type'], ENT_QUOTES, 'UTF-8') at both output sinks in register.php |
References
Notes
Mirrored from https://github.com/menevarad007/CVE-2026-37750 on 2026-07-05.
| |