CVE-2022-22851: Sourcecodtester Hospital - Stored XSS
- Cve: CVE-2022-22851
- Name: Sourcecodtester Hospital - Stored XSS
- Description: A Stored Cross Site Scripting (XSS) vulnerability exists in Sourcecodtester Hospital's Patient Records Management System 1.0 via the specialization parameter in doctors.php
- Impact: Attackers can execute malicious scripts in users' browsers, potentially stealing cookies, session tokens, or performing actions on behalf of users.
- Remediation: Implement proper input validation and output encoding for the specialization parameter in doctors.php.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: user_interaction
- Requirements: Attacker needs to store malicious input in the specialization parameter
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.4
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.0065
- Epss percentile: 0.51925
- Assignee: [email protected]
- Published at: 2022-01-26T16:15:07Z
- Age in days: 1763
- Modified at: 2026-06-17T04:29:08Z
- Patch available: yes
- Public exploits total: 1
- References total: 2
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-22851
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/Sant268/CVE-2022-22851 | poc-in-github | 2022-01-23 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/Sant268/CVE-2022-22851/commit/17381378bdb7c9f7b3326af6fb79cf68ca9f9d3d | nvd | Patch, Third Party Advisory |
| https://www.sourcecodester.com/php/15116/hospitals-patient-records-management-system-php-free-source-code.html | nvd | Product |
Products
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2022-01-23
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts