CVE-2026-7199
7.3SourceCodester · Pharmacy Sales and Inventory System
SourceCodester Pharmacy Sales and Inventory System 1.0 is susceptible to remote SQL injection via the ID argument in the /ajax.php?action=delete_product endpoint.
Executive summary
A critical SQL injection vulnerability in SourceCodester Pharmacy Sales and Inventory System allows unauthenticated remote attackers to manipulate database queries.
Vulnerability
This vulnerability is a SQL injection flaw (CWE-89) triggered by improper sanitization of the ID parameter within the delete_product functionality. The attack vector is unauthenticated and can be initiated remotely by sending a crafted request to the vulnerable ajax endpoint.
Business impact
The ability for an unauthenticated attacker to inject arbitrary SQL commands poses a severe risk to data confidentiality and integrity. Successful exploitation could lead to unauthorized access to sensitive pharmacy records, modification of inventory data, or potential exfiltration of database contents. With a CVSS score of 7.3, this flaw represents a significant risk that could result in operational disruption and regulatory non-compliance.
Remediation
Immediate Action: Since no official patch is currently available, administrators should restrict access to the affected /ajax.php endpoint or disable the vulnerable delete_product functionality until a vendor update is released.
Proactive Monitoring: Review web server access logs for anomalous requests containing SQL syntax or unusual parameters directed toward the /ajax.php file.
Compensating Controls: Deploy a Web Application Firewall (WAF) with rules configured to detect and block SQL injection patterns to provide a virtual patch against incoming malicious traffic.
Exploitation status
Public Exploit Available: Yes, a public proof-of-concept exists as documented in the GitHub issue referenced in the vulnerability report.
Analyst recommendation
Given the availability of a public proof-of-concept and the unauthenticated nature of the attack, this vulnerability requires immediate attention. Organizations utilizing SourceCodester Pharmacy Sales and Inventory System must implement compensating controls immediately and prioritize migrating to a secure alternative if the vendor fails to provide a timely patch.
More SourceCodester CVEs
Sources
Originally found and disclosed by zhuque (VulDB User), per the CVE Program record.
- VDB-359800 | SourceCodester Pharmacy Sales and Inventory System ajax.php sql injection Vulnerability database entry
- VDB-359800 | CTI Indicators (IOB, IOC, TTP, IOA)
- Submit #801109 | sourcecodester Pharmacy Sales and Inventory System V1.0 SQL injection Third-party advisory
- Exploit / PoC
- sourcecodester.com