Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify exposed instance via Shodan/banner scan
-
DeliverySend crafted GET request to /ajax.php?action=delete_receiving&ID=[SQLi payload]
-
ExploitDatabase executes malicious SQL query
-
ExecutionExtract credentials or sensitive data from database tables
-
PersistAccess admin panel with stolen credentials
-
ImpactExfiltrate patient/financial 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 | Requires the Pharmacy Sales and Inventory System application to be network-accessible (internet-facing or reachable from attacker's network position) with the /ajax.php endpoint enabled in default configuration. No authentication, valid session cookies, or user interaction required-the vulnerable endpoint processes unauthenticated HTTP GET/POST requests directly. The delete_receiving action must be accessible (not disabled or removed in local customizations). Exploitation is possible against default installations without administrator intervention. Limiting factors: applications deployed behind authenticated reverse proxies or VPNs requiring pre-authentication before reaching the PHP application are not remotely exploitable by unauthenticated attackers. Deployments with properly configured WAF rules blocking SQL injection patterns may prevent automated exploitation, though manual bypass techniques often succeed. |
| Impact | This represents a significant real-world risk despite moderate CVSS base score of 7.3. The CVSS vector (AV:N/AC:L/PR:N/UI:N) indicates network-exploitable attacks requiring no authentication, low complexity, and no user interaction-essentially point-and-shoot exploitation against any exposed instance. The publicly available exploit on GitHub eliminates technical barriers for script kiddies and automated scanners. CVSS impact ratings (C:L/I:L/A:L) suggest partial compromise across confidentiality, integrity, and availability, typical of SQL injection that can read sensitive data (patient records, pricing), modify inventory/sales records, or delete receiving logs. The E:P (Proof-of-concept) temporal metric confirms working exploit code. However, this targets a niche open-source application with limited deployment footprint compared to enterprise software. Real-world risk depends heavily on internet exposure-internal-only deployments behind authentication layers face lower immediate threat. No CISA KEV listing suggests exploitation is not yet widespread, but POC availability means defenders should assume scanning/exploitation attempts are imminent. SSVC assessment: Exploitation=POC, Automatable=Yes (simple HTTP parameter manipulation), Technical Impact=Partial (database compromise but likely not full system takeover unless database credentials allow OS command execution). |
| Exploit ScenarioDerived | An unauthenticated attacker scans for internet-exposed instances of Pharmacy Sales and Inventory System using Shodan/Censys to identify servers running the application (identifiable by characteristic login page or HTTP headers). Using the publicly available GitHub POC, the attacker crafts a malicious HTTP request to https://victim.example.com/ajax.php?action=delete_receiving&ID=1' UNION SELECT username,password,email FROM users WHERE '1'='1 to extract administrator credentials from the database. With harvested credentials, the attacker accesses the administrative interface to view sensitive patient prescription records, alter drug inventory counts to cover theft, or delete audit logs to hide fraudulent transactions. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 27, 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=delete_receiving. Publicly available exploit code (GitHub POC) demonstrates working attack against default installations with no authentication required (CVSS AV:N/AC:L/PR:N). EPSS data not available, but POC publication significantly lowers exploitation barrier for opportunistic attacks against internet-exposed instances.
RemediationAI
No vendor-released patch identified at time of analysis-SourceCodester does not appear to maintain active security updates for legacy versions. Organizations must implement application-level fixes: modify /ajax.php to use parameterized SQL queries (prepared statements) for all ID parameter handling in the delete_receiving function, replacing string concatenation with PDO/MySQLi bound parameters (e.g., $stmt = $pdo->prepare('DELETE FROM receiving WHERE id = ?'); $stmt->execute([$id]);). As immediate compensating controls, implement web application firewall (WAF) rules to block SQL injection patterns in the ID parameter (single quotes, UNION keywords, comment sequences), though this may break legitimate functionality if ID values legitimately contain special characters. Restrict network access to /ajax.php to authenticated sessions only by adding session validation checks at the script entry point-this reduces attack surface from unauthenticated remote to authenticated remote. Long-term recommendation: migrate to maintained inventory management software with active security support, as this application appears abandoned. All compensating controls are bypassed if attackers gain valid session cookies, so patching the underlying code defect is critical.
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 /ajax.php endpoint handles AJAX requests for the 'delete_receiving' action, accepting an 'ID' parameter that is directly concatenated into SQL queries without proper sanitization or parameterized statements. SQL injection allows attackers to break out of the intended query context and execute arbitrary SQL commands against the backend database. The affected product is SourceCodester Pharmacy Sales and Inventory System version 1.0, a PHP application typically deployed with MySQL/MariaDB databases. The CPE string (cpe:2.3:a:sourcecodester:pharmacy_sales_and_inventory_system:*:*:*:*:*:*:*:*) confirms this is a vendor-specific application from the SourceCodester open-source repository, commonly used by small pharmacies or as educational code examples.
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 weakness has been identified in SourceCodester Pharmacy Sales and Inventory System 1.0. This vulnerability affects unknown code of the file /ajax.php?action=delete_receiving. This manipulation of the argument ID causes sql injection. Remote exploitation of the attack is possible. The exploit has been made available to the public and could be used for attacks.
Executive ViewAI
SourceCodester Pharmacy Sales and Inventory System 1.0 contains an unauthenticated SQL injection vulnerability in the receiving module that allows attackers to read, 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 if exposed to the internet.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict network access to /ajax.php endpoints via firewall or reverse proxy to trusted IPs only; (2) Deploy WAF with SQL injection detection rules targeting the ID parameter in delete_receiving function; (3) Implement input validation and parameterized queries through code-level patching if in-house development resources available; (4) Enable database access logging and implement real-time alerting for suspicious query patterns; (5) Maintain offline backups of pharmacy database; (6) Isolate affected systems from production networks pending vendor patch or system replacement.
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 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-25851
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB