CVE-2026-7550
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 vulnerability has been found in SourceCodester Pharmacy Sales and Inventory System 1.0. Affected is an unknown function of the file /ajax.php?action=save_customer. The manipulation of the argument ID leads to sql injection. It is possible to initiate the attack remotely. The exploit has been disclosed to the public 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?

This vulnerability is a SQL injection flaw found in the SourceCodester Pharmacy Sales and Inventory System version 1.0, specifically in the file `/ajax.php?action=save_customer`. It occurs due to improper input validation of the 'id' parameter, which allows an attacker to inject malicious SQL queries remotely without needing authentication.

The attack exploits a boolean-based blind SQL injection technique targeting the 'id' argument, enabling unauthorized database access and manipulation.


How can this vulnerability impact me? :

Exploitation of this vulnerability can lead to several serious impacts including unauthorized access to the database, tampering with data, leakage of sensitive information, potential system compromise, and disruption of service.


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

This vulnerability can be detected by testing the 'id' parameter in the /ajax.php?action=save_customer endpoint for SQL injection. A common approach is to send boolean-based blind SQL injection payloads to observe differences in the application's response.

  • Use curl or similar tools to send requests with SQL injection payloads, for example: curl "http://target/ajax.php?action=save_customer&id=1' OR '1'='1"
  • Monitor the responses for anomalies such as error messages or differences in response times indicating SQL injection.
  • Use automated vulnerability scanners that support SQL injection detection targeting the 'id' parameter in the specified endpoint.

What immediate steps should I take to mitigate this vulnerability?

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

  • Apply strict input validation and filtering on the 'id' parameter to ensure only expected data is processed.
  • 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.

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 tampering, and sensitive information leakage. Such impacts can lead to non-compliance with data protection regulations like GDPR and HIPAA, which require safeguarding personal and sensitive data against unauthorized access and breaches.

Failure to address this vulnerability could result in violations of these standards due to compromised confidentiality, integrity, and availability of protected data.


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