Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend HTTP request to vulnerable endpoint
-
DeliveryInject SQL payload in ID parameter
-
ExploitBypass query logic and execute arbitrary SQL
-
ExecutionAccess or modify pharmacy database records
-
ImpactExfiltrate or corrupt patient/sales data
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 | The CVSS 4.0 vector indicates network-accessible attack (AV:N), low complexity (AC:L), no privileges required (PR:N), and no user interaction (UI:N), yielding a CVSS score of 6.9. However, the confidentiality, integrity, and availability impacts are all rated as low (VC:L/VI:L/VA:L), suggesting the vulnerability grants limited scope access to the database. The presence of publicly available exploit code (POC=YES) and evidence tag E:P confirm demonstrated exploitability. This is not a zero-day; the attack vector is straightforward for remote attackers. While CVSS 6.9 might appear significant, the constrained impact scope (single database table, no system-level access) positions this as a moderate real-world risk, particularly if the application processes sensitive patient pharmaceutical records. The E:P tag combined with public POC elevates operational risk despite the limited technical impact score. |
| Exploit ScenarioDerived | An unauthenticated attacker sends a crafted HTTP request to /ajax.php?action=delete_sales with a malicious SQL payload in the ID parameter (e.g., ID=1' OR '1'='1), bypassing the intended DELETE logic and potentially modifying, extracting, or deleting arbitrary database records. The publicly available proof-of-concept (referenced in the GitHub issue) demonstrates the attack mechanism, enabling even unsophisticated threat actors to exploit the vulnerability without reverse engineering. |
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 execute arbitrary SQL queries via the ID parameter in /ajax.php?action=delete_sales, with publicly available exploit code and evidence of active proof-of-concept publication.
RemediationAI
No vendor-released patch identified at time of analysis. Immediate remediation requires implementing prepared statements or parameterized queries in the /ajax.php?action=delete_sales handler to eliminate SQL injection. Apply input validation and whitelist acceptable ID values (e.g., numeric validation). Additionally, implement least-privilege database user permissions to restrict the DELETE operations to only authorized contexts. Temporarily disable or restrict access to the /ajax.php endpoint until the code can be patched. If upgrading is not immediately possible, use Web Application Firewall (WAF) rules to detect and block SQL injection patterns in the ID parameter. Contact SourceCodester support or monitor www.sourcecodester.com for any security advisories or updated versions.
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
The vulnerability exists in a PHP-based web application handling AJAX requests for sales deletion. The application fails to properly sanitize or parameterize SQL queries constructed from user-supplied input in the ID parameter. CWE-89 (SQL Injection) identifies the root cause: dynamic SQL query construction without input validation or prepared statements. The affected endpoint processes DELETE operations on sales records, making the vulnerability particularly impactful for data integrity. The PHP backend likely concatenates user input directly into SQL WHERE clauses without escaping or using prepared statement bindings.
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 flaw has been found in SourceCodester Pharmacy Sales and Inventory System 1.0. Impacted is an unknown function of the file /ajax.php?action=delete_sales. This manipulation of the argument ID causes sql injection. It is possible to initiate the attack remotely. The exploit has been published and may be used.
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 extra
EUVD-2026-22014
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB