Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker network access
-
DeliveryCraft SQL injection payload in ID parameter
-
ExploitSend HTTP request to /ajax.php?action=save_type
-
ExecutionInjected SQL executes in database context
-
PersistAttacker extracts sensitive pharmacy data via UNION-based or blind SQL injection
-
ImpactPotential lateral movement to backend systems or authentication bypass
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
|
| Exploitation Conditions | Exploitation requires: (1) network access to the /ajax.php endpoint - no authentication is needed; (2) the action parameter set to 'save_type' to trigger the vulnerable code path; (3) a database backend (likely MySQL or MariaDB, standard in PHP-based pharmacy systems) configured to execute the injected SQL. No special configuration or user interaction is required. Exploitation is NOT limited to specific deployment modes or non-default settings - the vulnerability exists in the default 1.0 release. The only limiting factor is network accessibility to the application itself. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/PR:N/UI:N) confirms network-accessible, unauthenticated, low-complexity exploitation with confidential and integrity impact. The E:P flag indicates proof-of-concept availability. Real-world risk is elevated beyond the 6.9 score because: (1) publicly disclosed exploit code lowers barrier to exploitation, (2) SQL injection enables data exfiltration and potential authentication bypass in inventory systems containing sensitive pharmaceutical data, (3) the endpoint is directly accessible without authentication, (4) no indicators suggest this is a niche deployment - Pharmacy Sales and Inventory is a common use case. However, the vulnerability is limited to confidentiality and integrity (VC:L/VI:L) rather than full system compromise, and attack vector is network-based without system-level escalation potential. Realistic risk classification: Medium-to-High for organizations running this system, particularly healthcare providers managing controlled substances. |
| Exploit ScenarioDerived | An attacker sends a crafted HTTP GET or POST request to the vulnerable endpoint with a SQL injection payload embedded in the ID parameter, such as /ajax.php?action=save_type&ID=1' UNION SELECT user(),database(),version()-- . The unvalidated input is concatenated into a SQL query, allowing the attacker to extract sensitive data from the pharmacy database including customer records, prescription data, or authentication credentials. With proof-of-concept code publicly available, exploitation requires minimal technical skill. |
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 manipulate the ID parameter in /ajax.php?action=save_type, enabling arbitrary SQL query execution with confidentiality and integrity impact. Publicly disclosed exploit code is available, significantly increasing real-world risk despite the moderate CVSS score of 6.9.
RemediationAI
Immediate action: upgrade to a patched version of SourceCodester Pharmacy Sales and Inventory System if available from https://www.sourcecodester.com/. If no patch is available, implement the following compensating controls: (1) Disable or restrict network access to /ajax.php?action=save_type endpoint using Web Application Firewall (WAF) rules or web server configuration, permitting only trusted internal IP ranges - this eliminates remote exploitation but may impact legitimate inventory operations; (2) Apply strict input validation on the ID parameter to allow only numeric values using regex patterns (e.g., ^[0-9]+$) at the application or WAF layer; (3) Implement parameterized SQL queries (prepared statements) in the PHP code if source is accessible; (4) Deploy SQL injection detection signatures in intrusion prevention systems, looking for common SQLi payloads in the ID parameter. Immediate verification with SourceCodester support is critical given the public exploit availability.
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 endpoint that processes AJAX requests. The /ajax.php file with action=save_type parameter fails to properly sanitize or parameterize the ID argument before incorporating it into SQL queries, violating CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component). This is a classical SQL injection flaw in a file upload/inventory management system where user input flows directly into database operations without prepared statements or input validation.
Know when PHP 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
2DescriptionCVE.org
A security vulnerability has been detected in SourceCodester Pharmacy Sales and Inventory System 1.0. This issue affects some unknown processing of the file /ajax.php?action=save_type. Such manipulation of the argument ID leads to sql injection. The attack can be executed remotely. The exploit has been disclosed publicly 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.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-25852
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB