Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify exposed application via scanning
-
DeliverySend crafted POST to /ajax.php?action=login
-
ExploitInject SQL payload in Username parameter
-
InstallExecute arbitrary SQL commands
-
C2Extract database contents or bypass authentication
-
ExecuteAccess administrative functions
-
ImpactExfiltrate pharmacy records and credentials
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. |
| Impact | This vulnerability presents significant real-world risk due to the convergence of multiple high-risk factors. The CVSS vector (AV:N/AC:L/PR:N/UI:N) indicates maximum accessibility: network-based attack vector, low complexity requiring minimal skill, no authentication required, and no user interaction needed. The publicly available exploit code (github.com/lingzezzz/lingze/issues/1) dramatically lowers the barrier to exploitation, enabling even unsophisticated attackers to compromise vulnerable instances. While the individual CIA impacts are rated Low (C:L/I:L/A:L), SQL injection vulnerabilities typically escalate beyond these ratings in practice-attackers can often extract entire databases, modify critical inventory/pricing data, create administrative accounts, or execute operating system commands depending on database configuration. The combination of PR:N (unauthenticated), AC:L (low complexity), and publicly available exploit code creates an immediately exploitable threat surface. However, the limited deployment scope (SourceCodester projects are often educational/small-scale implementations rather than enterprise software) may constrain the overall attack surface. The absence from CISA KEV suggests no confirmed active exploitation campaigns targeting this specific vulnerability, but the public POC makes exploitation trivial for any exposed instance. Organizations running this system face imminent risk and should prioritize remediation. |
| Exploit ScenarioDerived | An external attacker identifies an internet-exposed instance of the Pharmacy Sales and Inventory System through automated scanning or search engine discovery. Using the publicly available exploit code from GitHub, the attacker crafts a malicious HTTP POST request to /ajax.php?action=login with a SQL injection payload in the Username parameter (e.g., admin' OR '1'='1' -- ) to bypass authentication or extract database contents. The vulnerable login handler executes the injected SQL, allowing the attacker to dump the entire pharmacy database including customer information, prescription records, inventory data, and administrative credentials, or create a new administrator account for persistent access. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 13, 2026
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows unauthenticated remote attackers to extract, modify, or delete database contents via the Username parameter in /ajax.php?action=login. The vulnerability enables low-complexity attacks requiring no user interaction, with publicly available exploit code (EPSS probability data not provided, not listed in CISA KEV). Attackers can compromise confidentiality, integrity, and availability of the pharmacy inventory database without authentication.
RemediationAI
No vendor-released patch identified at time of analysis. Organizations currently running SourceCodester Pharmacy Sales and Inventory System 1.0 should immediately implement defense-in-depth measures since an official fix version is not confirmed. Primary remediation steps include: replace vulnerable authentication code in /ajax.php with parameterized prepared statements using PDO or MySQLi prepared statement APIs to prevent SQL injection; implement strict input validation and sanitization on the Username parameter using allowlists for acceptable characters; deploy a web application firewall (WAF) with SQL injection detection rules to block exploitation attempts targeting the /ajax.php?action=login endpoint; restrict network access to the application to trusted IP ranges if feasible; conduct security audit of the entire codebase as similar injection flaws may exist in other endpoints; monitor database query logs and web server access logs for suspicious patterns matching the public exploit (github.com/lingzezzz/lingze/issues/1). For production environments handling sensitive pharmacy data, consider replacing this application with a commercially supported or actively maintained alternative given the absence of vendor security response. Additional vulnerability details and threat intelligence available at vuldb.com/vuln/357111 and vuldb.com/vuln/357111/cti.
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 vulnerability affects the authentication handler in SourceCodester's Pharmacy Sales and Inventory System version 1.0, a PHP-based web application for managing pharmacy operations. The flaw exists in the /ajax.php endpoint's login action handler, which fails to properly sanitize or parameterize the Username input before incorporating it into SQL queries. This is a classic CWE-89 (SQL Injection) vulnerability where unsanitized user input is concatenated directly into SQL statements. Based on the CPE string (cpe:2.3:a:sourcecodester:pharmacy_sales_and_inventory_system:*:*:*:*:*:*:*:*), this affects the SourceCodester-distributed version of the application. The login endpoint processes authentication requests via AJAX, likely using a backend database (MySQL/MariaDB typical for PHP applications) to verify credentials. The lack of prepared statements or input validation allows attackers to break out of the intended SQL query structure and execute arbitrary SQL commands.
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
5DescriptionCVE.org
A vulnerability has been found in SourceCodester Pharmacy Sales and Inventory System 1.0. The affected element is an unknown function of the file /ajax.php?action=login. Such manipulation of the argument Username leads to sql injection. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used.
Executive ViewAI
SourceCodester Pharmacy Sales and Inventory System 1.0 contains an unauthenticated SQL injection vulnerability in the login function that allows attackers to directly access, modify, or delete critical pharmacy inventory and sales data without credentials. Organizations using this system face immediate risk of data breach, inventory manipulation, and operational disruption affecting patient safety and business continuity.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Deploy Web Application Firewall with SQL injection detection signatures targeting /ajax.php; (2) Implement network-layer access controls restricting login endpoint to trusted internal networks only; (3) Enable comprehensive database audit logging and real-time alerting for unauthorized queries; (4) Apply strict input validation and output encoding at application layer if feasible; (5) Consider discontinuation of this product in favor of supported pharmacy management software.
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.
Pharmacy 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 read,
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 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 execu
EUVD-2026-22016
GHSA-f7v4-47q7-f3fq
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB