Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify target via web scanning
-
DeliverySend crafted POST to /ajax.php?action=save_customer
-
ExploitInject SQL via ID parameter
-
ExecutionExtract database credentials/patient data
-
ImpactModify inventory records for fraud
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 | The /ajax.php endpoint with action=save_customer must be network-accessible - typically this means the application is deployed on a web server facing the internet or an internal network segment reachable by the attacker. No authentication is required (PR:N in CVSS vector confirmed). The vulnerability is exploitable against default configurations of Pharmacy Sales and Inventory System 1.0 with no special feature enablement needed. Limiting factors: the application must be actively deployed and reachable; many SourceCodester projects are used only in test/lab environments. The SQL injection impact is constrained by the database user privileges the application runs with - if the PHP application connects to MySQL/MariaDB with a limited user account, the attacker inherits those restrictions, potentially preventing DROP TABLE or filesystem operations but still allowing SELECT/UPDATE/INSERT on application tables. |
| Impact | Real-world risk is HIGH for deployed instances. The CVSS vector AV:N/AC:L/PR:N/UI:N indicates the worst-case scenario: network-accessible, low complexity, no authentication, and no user interaction required. An attacker needs only to send crafted HTTP requests to the vulnerable endpoint. The temporal metric E:P (Proof-of-concept exploit exists) is confirmed by the GitHub POC reference. CVSS subscores show C:L/I:L/A:L (low impact across confidentiality, integrity, availability), suggesting the injection may be constrained by database permissions or application context, but attackers can still exfiltrate sensitive patient/medication data, modify pricing records, or corrupt inventory. The RL:X (remediation level not defined) indicates no official patch is confirmed, forcing reliance on workarounds. SSVC assessment: exploitation is PUBLIC (POC available), likely AUTOMATABLE (simple parameter injection), and TECHNICAL IMPACT is at minimum PARTIAL (database access). This combination justifies IMMEDIATE action despite the 'Low' CIA ratings. The primary limiting factor is target exposure - this is niche vertical software, not enterprise-grade, so attack surface is limited to organizations actually deploying this specific SourceCodester project. However, any internet-facing instance is trivially exploitable. |
| Exploit ScenarioDerived | An attacker discovers an internet-facing instance of Pharmacy Sales and Inventory System through Shodan or Google dorking. Using the public GitHub POC, they craft a POST request to /ajax.php?action=save_customer with a malicious ID parameter containing SQL injection payloads (e.g., ID=1' UNION SELECT user(),database(),version()-- -). The vulnerable PHP code directly concatenates this input into a SQL query, allowing the attacker to extract the database schema, enumerate patient records including names and prescriptions, or modify inventory quantities to facilitate drug diversion fraud. No authentication is required, and the attack leaves minimal forensic traces in application logs if logging is not configured to capture POST body parameters. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 01, 2026
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to read, modify, or delete database records via the ID parameter in /ajax.php?action=save_customer. CVSS 7.3 with low attack complexity and no authentication required. Publicly available exploit code exists (GitHub POC published), elevating immediate risk for exposed installations. EPSS data not available, but the combination of network vector, zero authentication, and public POC indicates high probability of opportunistic scanning and exploitation.
RemediationAI
No vendor-released patch identified at time of analysis. Organizations using this software must implement compensating controls immediately. Primary mitigation: apply input validation and parameterized queries to /ajax.php by modifying the save_customer action handler to use prepared statements (e.g., PDO with bound parameters or mysqli_prepare) instead of direct string concatenation of the ID parameter - this requires source code modification and testing to ensure customer save functionality remains intact. Secondary mitigation: restrict network access to /ajax.php to authenticated sessions only by adding authentication checks in the PHP handler or using web server access controls (e.g., Apache .htaccess with IP whitelisting or session validation) - trade-off is that legitimate unauthenticated AJAX calls will break if the application design expects them. Tertiary: deploy a web application firewall (WAF) with SQL injection signatures to block common payloads targeting the ID parameter - this is a detection-based control that may be bypassed with obfuscation but provides immediate defense-in-depth. Long-term: consider migrating to actively maintained pharmacy management software with a vendor security program. VulDB disclosure reference https://vuldb.com/vuln/360360 and exploit POC at https://github.com/khairulazly760530-cell/cves/issues/2 provide technical details for testing mitigations.
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 web application. The affected endpoint /ajax.php with action=save_customer likely handles AJAX requests for customer data operations. The vulnerability stems from inadequate input validation and parameterization of the ID argument before incorporating it into SQL queries. SQL injection occurs when user-controlled input is concatenated directly into SQL statements rather than using prepared statements or proper escaping. The affected product, Pharmacy Sales and Inventory System by SourceCodester, is a downloadable open-source project commonly used for educational purposes or by small pharmacies. CPE string cpe:2.3:a:sourcecodester:pharmacy_sales_and_inventory_system identifies version 1.0 as vulnerable, though the wildcard version field suggests all current versions may be affected pending vendor clarification.
Know when Pharmacy Sales And Inventory 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:N/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
4DescriptionCVE.org
A vulnerability has been found in SourceCodester Pharmacy Sales and Inventory System 1.0. Affected is an unknown function of the file /ajax.php?action=save_customer. The manipulation of the argument ID leads to sql injection. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used.
Executive ViewAI
SourceCodester Pharmacy Sales and Inventory System version 1.0 contains a critical SQL injection vulnerability in customer management functions that allows unauthenticated attackers to read, modify, or delete pharmacy database records. Organizations running this system face immediate risk of data theft, patient record compromise, and operational disruption; publicly available exploit code significantly accelerates threat actor discovery and exploitation.
No vendor-released patch identified at time of analysis. Interim mitigations: restrict network access to /ajax.php via firewall or IP allowlisting, deploy WAF rules to detect and block SQL injection payloads targeting the ID parameter, implement database activity monitoring, and apply principle of least privilege to database service accounts. These controls reduce but do not eliminate risk; migration or vendor patch remains critical.
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.
Related Vulnerabilities in SourceCodester Pharmacy System SQL Injection
View all 2Pharmacy Sales And Inventory System v1.0 is vulnerable to SQL Injection via /pharmacy-sales-and-inventory-system/manage_
Unauthenticated remote information disclosure in SourceCodester Pharmacy Sales and Inventory System 1.0 allows network-b
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to execu
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to execu
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 exposes the `/ajax.php?action=save_product` endp
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to read,
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to execu
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to execu
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to extra
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows unauthenticated remote attackers to extra
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows unauthenticated remote attackers to execu
EUVD-2026-26476
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB