CVE-2026-7392
Received Received - Intake

SQL Injection in Pharmacy Sales and Inventory System

Vulnerability report for CVE-2026-7392, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-04-29

Last updated on: 2026-04-29

Assigner: VulDB

Description

A vulnerability has been found in SourceCodester Pharmacy Sales and Inventory System 1.0. This impacts the function delete_supplier of the file /ajax.php?action=delete_supplier. Such manipulation of the argument ID leads to sql injection. The attack can be executed remotely. The exploit has been disclosed to the public and may be used.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-04-29
Last Modified
2026-04-29
Generated
2026-07-26
AI Q&A
2026-04-29
EPSS Evaluated
2026-07-25
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
sourcecodester pharmacy_sales_and_inventory_system 1.0

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-74 The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.
CWE-89 The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability exists in the SourceCodester Pharmacy Sales and Inventory System version 1.0. It affects the delete_supplier function in the file /ajax.php?action=delete_supplier. The issue arises because the argument ID can be manipulated, leading to a SQL injection vulnerability. This means an attacker can remotely execute malicious SQL commands by altering the ID parameter.

Detection Guidance

This vulnerability can be detected by testing the /ajax.php?action=delete_supplier endpoint for SQL injection via the id parameter. One common method is to send specially crafted HTTP requests with SQL injection payloads and observe the responses for anomalies or error messages indicating SQL injection.

  • Use curl or similar tools to send requests with SQL injection payloads, for example: curl "http://target/ajax.php?action=delete_supplier&id=1' OR '1'='1"
  • Monitor for boolean-based blind SQL injection by sending payloads that alter query logic and checking for differences in response behavior.
  • Use automated vulnerability scanners that support SQL injection detection targeting the id parameter in the specified endpoint.
Impact Analysis

The vulnerability allows an attacker to perform SQL injection remotely, which can lead to unauthorized access to the database. This can result in data leakage, data modification, or deletion of important information related to suppliers or other sensitive data stored in the system.

Compliance Impact

The vulnerability is a SQL injection in the delete_supplier function of SourceCodester Pharmacy Sales and Inventory System 1.0, which can be exploited remotely.

Such vulnerabilities can potentially lead to unauthorized access or manipulation of sensitive data, which may impact compliance with data protection regulations like GDPR or HIPAA.

However, there is no specific information provided about the impact of this vulnerability on compliance with these standards in the provided context.

Mitigation Strategies

Immediate mitigation steps include implementing prepared statements with parameter binding to prevent SQL injection.

  • Apply strict input validation on the `id` parameter to ensure only expected values are accepted.
  • Minimize database user permissions to limit the impact of a potential exploit.
  • Conduct regular security audits and code reviews to identify and fix similar vulnerabilities.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-7392. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart