CVE-2026-7549
Received Received - Intake
SQL Injection in Pharmacy Sales and Inventory System

Publication date: 2026-05-01

Last updated on: 2026-05-01

Assigner: VulDB

Description
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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-05-01
Last Modified
2026-05-01
Generated
2026-05-07
AI Q&A
2026-05-01
EPSS Evaluated
2026-05-05
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 Powered Q&A
Can you explain this vulnerability to me?

CVE-2026-7549 is a SQL injection vulnerability found in the Pharmacy Sales and Inventory System version 1.0, specifically in the file `/ajax.php?action=delete_customer`. The flaw occurs because the 'id' parameter is not properly validated or sanitized, allowing an attacker to inject malicious SQL code remotely without needing authentication.

This improper input validation leads to the execution of unintended SQL commands on the database, which can compromise the system's security.


How can this vulnerability impact me? :

Exploitation of this SQL injection vulnerability can have serious impacts including unauthorized access to the database, leakage of sensitive data, tampering with data, gaining control over the system, or causing service disruption.


How can this vulnerability be detected on my network or system? Can you suggest some commands?

This SQL injection vulnerability can be detected by testing the /ajax.php?action=delete_customer endpoint with manipulated 'id' parameters to observe if the system is vulnerable to injection.

A common approach is to send specially crafted HTTP requests to the vulnerable URL and check for SQL error messages or unexpected behavior.

  • Use curl or similar tools to send requests with SQL injection payloads, for example: curl "http://target/ajax.php?action=delete_customer&id=1' OR '1'='1"
  • Monitor responses for SQL errors or abnormal data returned, indicating injection success.
  • Use automated vulnerability scanners that support SQL injection detection targeting the specific URL and parameter.

What immediate steps should I take to mitigate this vulnerability?

Immediate mitigation steps include implementing prepared statements and strict input validation on the 'id' parameter to prevent SQL injection.

Additionally, minimize database permissions to limit the impact of a potential exploit.

Conduct regular security audits and patch the system to the latest secure version if available.


How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:

The SQL injection vulnerability in the Pharmacy Sales and Inventory System allows unauthorized database access, data leakage, and tampering. Such unauthorized access and potential exposure of sensitive data can lead to non-compliance with data protection regulations like GDPR and HIPAA, which mandate strict controls over personal and health-related information.

Failure to properly secure the system against this vulnerability could result in breaches of confidentiality, integrity, and availability of data, which are core requirements of these standards. This may lead to legal and financial consequences for organizations using the affected system.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart