Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify exposed /ajax.php endpoint
-
DeliverySend crafted HTTP request with SQLi payload in ID parameter
-
ExploitDatabase executes injected SQL commands
-
ExecutionExtract credentials and sensitive data
-
ImpactModify/delete records or escalate privileges
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 against the /ajax.php endpoint with action parameter set to delete_customer. No authentication required per CVSS vector PR:N (privileges required: none), meaning the vulnerable AJAX endpoint lacks access controls in default configuration. No user interaction needed (UI:N), allowing fully automated exploitation. Attack succeeds against any internet-accessible deployment of Pharmacy Sales and Inventory System 1.0 where the /ajax.php file is reachable. Exploitation is NOT limited by: database type (SQL injection applies to MySQL, PostgreSQL, etc.), server OS, or PHP version. Limiting factor: many deployments may be on internal networks or localhost-only development environments, reducing exposure despite lack of authentication requirement. |
| Impact | Real-world risk is moderate-high for exposed instances but likely limited in scope. CVSS 7.3 with vector AV:N/AC:L/PR:N/UI:N indicates trivial remote exploitation requiring no authentication or user interaction, earning high urgency on technical metrics alone. The E:P (Proof-of-concept exists) temporal score confirms publicly available exploit code on GitHub, lowering the skill threshold for exploitation. However, SourceCodester applications are typically deployed in small business environments with limited internet exposure, and the product is not widely adopted in enterprise settings. No CISA KEV listing suggests attackers have not prioritized this target for mass exploitation campaigns despite POC availability. SSVC assessment: exploitation is PROVEN (POC exists), technical impact is TOTAL (SQL injection enables data breach and manipulation), but automatable exploitation depends on deployment prevalence. Priority for organizations: HIGH if this application is internet-facing, LOW if internal-only or not deployed. Key uncertainty: RL:X (remediation level unknown) indicates no confirmed vendor patch, elevating risk for existing installations. |
| Exploit ScenarioDerived | Attacker identifies an internet-exposed instance of Pharmacy Sales and Inventory System 1.0 through Shodan or Google dorking. Using the publicly available GitHub POC, they craft a malicious HTTP request to /ajax.php?action=delete_customer with a SQL injection payload in the ID parameter (e.g., ID=1' UNION SELECT user(),database(),version()--). The vulnerable PHP code concatenates this input directly into a DELETE query, causing the database to execute the injected UNION statement and return sensitive information including database credentials, patient records, or medication inventory data. Attacker escalates by modifying queries to dump entire user tables, alter pricing records, or inject administrative accounts for persistent access. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 01, 2026
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to extract database contents, modify records, or execute unauthorized queries via the ID parameter in /ajax.php?action=delete_customer. Publicly available exploit code exists (GitHub POC), enabling trivial exploitation against exposed instances. CVSS 7.3 reflects network-accessible attack with low complexity and no authentication requirement, though EPSS data unavailable and not currently listed in CISA KEV, suggesting limited widespread exploitation despite POC availability.
RemediationAI
No vendor-released patch identified at time of analysis (CVSS RL:X indicates unknown remediation level). Primary mitigation requires manual code remediation: modify /ajax.php to use parameterized prepared statements for the delete_customer action, specifically binding the ID parameter instead of direct concatenation. For organizations unable to patch immediately, implement compensating controls: (1) Restrict /ajax.php access to authenticated admin users only via web application firewall or .htaccess rules, trading functionality for reduced attack surface; (2) Deploy web application firewall with SQL injection signature detection to block exploitation attempts, though this may cause false positives on legitimate queries; (3) Place application behind VPN or IP whitelist if used only by internal staff, eliminating remote attack vector entirely. GitHub POC at https://github.com/khairulazly760530-cell/cves/issues/3 can be used to validate patch effectiveness. VulDB references (https://vuldb.com/vuln/360359) provide additional technical details but no official vendor guidance.
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 file /ajax.php implements a customer deletion function that accepts an ID parameter without proper input validation or parameterized query preparation. According to CPE data (cpe:2.3:a:sourcecodester:pharmacy_sales_and_inventory_system), the vulnerability exists in SourceCodester's Pharmacy Sales and Inventory System version 1.0, a free open-source PHP application for managing pharmacy operations. SQL injection occurs when user-controlled input is concatenated directly into SQL statements, allowing attackers to inject malicious SQL commands. The AJAX endpoint pattern suggests this is part of the application's administrative interface for managing customer records.
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
4DescriptionCVE.org
A flaw has been found in SourceCodester Pharmacy Sales and Inventory System 1.0. This impacts an unknown function of the file /ajax.php?action=delete_customer. Executing a manipulation of the argument ID can lead to sql injection. The attack may be performed from remote. The exploit has been published and may be used.
Executive ViewAI
SourceCodester Pharmacy Sales and Inventory System 1.0 contains an unauthenticated SQL injection vulnerability that allows attackers to extract, modify, or delete pharmacy data without credentials. Organizations running this system face immediate risk of data theft, inventory manipulation, and potential operational disruption, with exploit code publicly available. Urgent inventory and migration planning is required.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable or restrict network access to the application via firewall rules; (2) Deploy Web Application Firewall (WAF) rules to block or sanitize requests to /ajax.php with ID parameter injection patterns; (3) Implement reverse proxy authentication requiring credentials before reaching the application; (4) Monitor database transaction logs for unusual DELETE or SELECT queries; (5) Consider database-level read-only restrictions for non-administrative accounts. These controls reduce but do not eliminate risk-vendor patch or system replacement is mandatory.
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.
Related Vulnerabilities in SourceCodester Pharmacy System SQL Injection
View all 2Pharmacy 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 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
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows unauthenticated remote attackers to execu
EUVD-2026-26475
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB