Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain low-privilege credentials
-
DeliveryAccess /admin/patients/view_history.php
-
ExploitInject SQL payload via ID parameter
-
ExecutionExtract database contents
-
ImpactExfiltrate patient records
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Authenticated access with low-privilege user account to the /admin/ administrative panel is required (CVSS PR:L). The vulnerability exists in the view_history.php endpoint specifically when the ID parameter is passed in HTTP requests (GET or POST). No special server configuration or non-default settings are necessary - default installations of version 1.0 are exploitable. The attacker must have network connectivity to the web application (AV:N) but no user interaction is required once credentials are obtained (UI:N). Limiting factors: (1) authentication barrier requires credential compromise through separate attack vector (phishing, brute force, credential reuse), (2) 'low privilege' suggests even read-only or limited-access accounts can trigger the vulnerability, lowering the privilege escalation barrier, (3) the /admin/ path prefix suggests the vulnerable endpoint may be segregated from public-facing pages, potentially limiting exposure if access controls are properly enforced at the web server level. |
| Impact | Real-world risk is MODERATE to HIGH for organizations actually deploying this system in production environments, despite the 6.3 CVSS score. Key risk factors: (1) publicly available exploit code significantly lowers the skill barrier for exploitation, (2) the attack vector is network-based (AV:N) with low complexity (AC:L), making it easily automatable once credentials are obtained, (3) healthcare data is high-value for threat actors due to regulatory implications (HIPAA, GDPR) and resale potential. Mitigating factors: (1) authentication requirement (PR:L) limits exposure to insiders or attackers who have compromised low-privilege accounts, (2) scope is unchanged (S:U), containing impact to the vulnerable application, (3) no CISA KEV listing suggests exploitation is not yet widespread in the wild. CRITICAL UNCERTAINTY: SourceCodester projects are often proof-of-concept code not intended for production use - organizations using this system may be exposed due to lack of vendor support or patching infrastructure. The absence of EPSS score and limited vendor ecosystem means traditional risk signals are incomplete. Realistic threat: compromised employee credentials (phishing, credential stuffing) followed by SQL injection to exfiltrate patient records for ransomware or data extortion campaigns. |
| Exploit ScenarioDerived | An attacker obtains low-privilege credentials to the hospital records system through phishing a medical staff member or exploiting weak password policies. Using the publicly available GitHub exploit code (https://github.com/july-skyload/exp/issues/1), the attacker crafts a malicious HTTP request to /admin/patients/view_history.php with a SQL injection payload in the ID parameter (example: ID=1' UNION SELECT user,password,email FROM admin_users--). The vulnerable PHP code concatenates this unsanitized input directly into a SQL query, executing the attacker's injected commands. The attacker extracts the full patient database including personally identifiable information (PII), medical histories, and billing records, then deploys ransomware and threatens HIPAA violation disclosure unless payment is made. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 23, 2026
SQL injection in SourceCodester Hospitals Patient Records Management System 1.0 allows authenticated attackers to extract, modify, or delete database records via the ID parameter in /admin/patients/view_history.php. The vulnerability requires low-privilege authenticated access (PR:L) but has low attack complexity (AC:L) and can be exploited remotely. Publicly available exploit code exists on GitHub (referenced in VulDB entry), enabling immediate weaponization by threat actors. EPSS data not available, and the vulnerability is not currently listed in CISA KEV, indicating exploitation may be limited or targeted rather than widespread. The CVSS 6.3 (Medium) rating reflects partial impact across confidentiality, integrity, and availability (C:L/I:L/A:L).
RemediationAI
No vendor-released patch identified at time of analysis - SourceCodester projects typically do not receive post-release security updates as they are educational demonstration code rather than supported products. Organizations currently running this system should implement the following mitigations: (1) Apply input validation and parameterized queries (prepared statements) to /admin/patients/view_history.php, specifically sanitizing the ID parameter using PHP PDO parameter binding or equivalent - this requires modifying the source code directly. (2) Restrict administrative panel access (/admin/*) to internal networks only via firewall rules or VPN requirement, eliminating remote attack vector exposure (note: this reduces but does not eliminate risk if internal compromise occurs). (3) Implement database-level access controls using least-privilege MySQL/MariaDB user accounts that prevent DROP, ALTER, or cross-database access even if SQL injection succeeds - this limits impact scope but does not prevent data exfiltration. (4) Deploy web application firewall (WAF) rules to detect SQL injection patterns in ID parameter (common patterns: UNION SELECT, OR 1=1, semicolon injection) - this is a detection/prevention layer but may be bypassed by sophisticated payloads. RECOMMENDED PRIMARY ACTION: Migrate to a security-maintained healthcare records system with active vendor support and CVE response processes, as SourceCodester demonstration code is not designed for production use with sensitive patient data subject to regulatory compliance requirements.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This is a classic SQL injection vulnerability (CWE-89) in a PHP-based healthcare management application. The vulnerable endpoint /admin/patients/view_history.php fails to properly sanitize or parameterize the 'ID' parameter before incorporating it into SQL queries. SQL injection occurs when user-controlled input is concatenated directly into SQL statements without validation or prepared statements, allowing attackers to inject malicious SQL commands. The CPE string (cpe:2.3:a:sourcecodester:hospitals_patient_records_management_system:*:*:*:*:*:*:*:*) identifies this as a SourceCodester open-source project, version 1.0, which is distributed as downloadable PHP source code for educational/demonstration purposes rather than as a supported commercial product. Such codebases often lack security hardening and formal vulnerability management processes.
Know when Hospitals Patient Records Management System gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.org
A security flaw has been discovered in SourceCodester Hospitals Patient Records Management System 1.0. Impacted is an unknown function of the file /admin/patients/view_history.php. The manipulation of the argument ID results in sql injection. The attack may be launched remotely. The exploit has been released to the public and may be used for attacks.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
SQL injection in SourceCodester Hospitals Patient Records Management System 1.0 exposes sensitive patient data to remote
SQL injection in SourceCodester Hospitals Patient Records Management System 1.0 enables remote unauthenticated attackers
SQL injection in SourceCodester Hospitals Patient Records Management System 1.0 allows remote attackers to compromise pa
Stored or reflected cross-site scripting in SourceCodester Hospitals Patient Records Management System 1.0 allows a remo
Stored cross-site scripting in SourceCodester Hospitals Patient Records Management System 1.0 allows a remote, high-priv
EUVD-2026-31554
GHSA-fv8j-whg3-8v9w
NVD
CVE.org
EPSS
VulDB
Exploit-DB