Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify exposed /ajax.php endpoint
-
DeliveryCraft SQL injection payload in ID parameter
-
ExploitSubmit malicious request to save_receiving action
-
ExecutionExecute arbitrary SQL commands
-
ImpactExtract/modify database contents
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 | Remote exploitation requires the target installation to expose /ajax.php endpoint to network access (confirmed by CVSS AV:N) and implement the 'save_receiving' action handler-a standard feature in Pharmacy Sales and Inventory System 1.0 for processing incoming inventory shipments. No authentication required per CVSS PR:N and confirmed by description stating remote launch capability without credential prerequisites. No user interaction needed (CVSS UI:N) as the vulnerable endpoint processes backend AJAX requests directly. Exploitation succeeds against default configurations without special deployment modes. Attack complexity is low (CVSS AC:L) due to straightforward parameter manipulation via standard HTTP requests. Limiting factors: requires the specific SourceCodester application to be deployed and web-accessible; generic pharmacy management systems or different vendor products unaffected. |
| Impact | Real-world risk is ELEVATED despite moderate CVSS 7.3 score. Critical risk factors: (1) CVSS vector shows AV:N/AC:L/PR:N/UI:N-remote unauthenticated exploitation against default configurations with low complexity; (2) publicly available exploit code on GitHub (referenced in VulDB CTI) enables attackers with minimal skill to weaponize this within hours; (3) E:P (Proof-of-concept exists) confirmed in CVSS temporal metrics; (4) RL:X indicates no remediation level assessed, suggesting no vendor patch at time of disclosure. However, impact is constrained to C:L/I:L/A:L-partial confidentiality/integrity/availability rather than complete system compromise, likely reflecting database-layer access rather than OS-level code execution. Primary risk: unauthorized access to pharmacy inventory data, patient records (if stored), or modification of sales/stock records. EPSS score absent from input data, preventing quantitative exploitation probability assessment. No CISA KEV listing indicates targeted rather than widespread exploitation campaigns. Organizations running this specific open-source application face immediate risk; broader healthcare/retail sectors unaffected unless using this exact SourceCodester product. |
| Exploit ScenarioDerived | Attacker identifies pharmacy management system via reconnaissance (banner grabbing, directory enumeration). Crafts HTTP POST/GET request to /ajax.php?action=save_receiving with ID parameter containing SQL injection payload such as "1' UNION SELECT username,password,3 FROM admin_users--" to extract administrative credentials, or "1'; DROP TABLE inventory_records--" to destroy inventory data. Publicly available GitHub PoC (https://github.com/nidieaaa/test/issues/3) provides ready-to-use attack strings, eliminating development effort. No authentication required per CVSS PR:N vector, enabling attacks against internet-facing installations within minutes of discovery. |
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 execute arbitrary SQL commands via the ID parameter in /ajax.php?action=save_receiving. Publicly available exploit code (GitHub PoC) enables immediate weaponization. CVSS 7.3 reflects network-accessible attack with no authentication required, enabling confidentiality/integrity/availability impact across database operations. EPSS data not provided, but public exploit availability significantly elevates real-world risk for unpatched installations of this open-source PHP application.
RemediationAI
No vendor-released patch identified at time of analysis (CVSS RL:X indicates unavailable remediation). Primary mitigation: immediately implement prepared statements or parameterized queries for all database interactions in /ajax.php, specifically for the 'save_receiving' action handler processing the ID parameter-this eliminates root cause by separating SQL logic from user data. Secondary urgent control: implement allowlist input validation restricting ID parameter to positive integers only (e.g., PHP filter_var with FILTER_VALIDATE_INT), rejecting requests with non-numeric values before database interaction. Compensating network controls with trade-offs: (1) restrict /ajax.php access to authenticated admin sessions only via PHP session validation-breaks unauthenticated API workflows if intended; (2) deploy web application firewall (WAF) with SQL injection signatures targeting common patterns (UNION, OR 1=1, comment sequences)-generates false positives for legitimate queries containing SQL keywords; (3) apply IP allowlisting for admin endpoints-prevents remote administration and breaks distributed usage scenarios. For production systems, consider migrating to actively maintained alternatives given SourceCodester's educational codebase focus. Monitor database logs for anomalous query patterns (multiple statements, UNION clauses, information_schema access) as detective control.
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 processes AJAX requests with an action parameter set to 'save_receiving', commonly used for inventory receiving operations in pharmacy management workflows. The vulnerability exists in server-side SQL query construction where user-supplied input from the 'ID' parameter is incorporated without proper sanitization, parameterization, or escaping. Attackers can inject malicious SQL syntax to manipulate database queries, potentially breaking out of intended WHERE clauses or appending additional SQL commands. The CPE identifies SourceCodester Pharmacy Sales and Inventory System as the affected product-a freely available PHP application likely built for educational or small business purposes without enterprise-grade input validation controls.
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. The affected element is an unknown function of the file /ajax.php?action=save_receiving. Executing a manipulation of the argument ID can lead to sql injection. The attack can be launched remotely. The exploit has been made available to the public and could be used for attacks.
Executive ViewAI
SourceCodester Pharmacy Sales and Inventory System version 1.0 contains an unauthenticated SQL injection vulnerability in the receiving module that allows remote attackers to compromise database integrity and confidentiality without credentials. Organizations operating this open-source pharmacy management application face immediate risk of patient data exposure, inventory manipulation, and system downtime, with publicly available exploit code lowering the barrier to attack.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Implement Web Application Firewall (WAF) rules to block SQL injection patterns in /ajax.php?action=save_receiving requests; (2) Restrict network access to pharmacy system via firewall to authorized internal IP ranges only; (3) Disable or restrict the receiving module functionality at application level if operationally feasible; (4) Increase database access logging and monitoring for anomalous SQL commands; (5) Enforce principle of least privilege on database service account credentials.
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 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-25772
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB