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.
Published: 2026-05-01
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability allows SQL injection through manipulation of the ID argument in the "/ajax.php?action=save_customer" endpoint. An attacker can inject arbitrary SQL to read, modify, or delete data stored in the pharmacy sales database. Because the application does not validate or escape this input, the injected statements are executed with the database credentials of the web application.

Affected Systems

SourceCodester Pharmacy Sales and Inventory System, version 1.0. The flaw resides in an unknown function of the ajax.php file handling the save_customer action.

Risk and Exploitability

The CVSS score of 6.9 indicates a medium severity. The EPSS score of less than 1% indicates a very low likelihood of exploitation, and the vulnerability is not listed in the CISA KEV catalog. The attack vector is remote, requiring an attacker to craft requests to the /ajax.php endpoint. Public exploit code has been disclosed, suggesting that exploitation is achievable without complex prerequisites.

Generated by OpenCVE AI on May 2, 2026 at 07:47 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Check for and install any vendor patch that fixes the SQL injection in ajax.php.
  • If a patch is not available, enforce numeric validation on the ID parameter or refactor the code to use parameterized queries, thereby eliminating injection.
  • Configure a web application firewall or URL filtering rules to block malicious requests to "/ajax.php?action=save_customer" that contain SQL keywords or suspicious payloads.
  • Review and restrict the database user privileges used by the application to the minimum necessary, avoiding broader DML capabilities.

Generated by OpenCVE AI on May 2, 2026 at 07:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 01 May 2026 20:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 01 May 2026 06:15:00 +0000

Type Values Removed Values Added
First Time appeared Sourcecodester
Sourcecodester pharmacy Sales And Inventory System
Vendors & Products Sourcecodester
Sourcecodester pharmacy Sales And Inventory System

Fri, 01 May 2026 04:45:00 +0000

Type Values Removed Values Added
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.
Title SourceCodester Pharmacy Sales and Inventory System ajax.php save_customer sql injection
Weaknesses CWE-74
CWE-89
References
Metrics cvssV2_0

{'score': 7.5, 'vector': 'AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:ND/RC:UR'}

cvssV3_0

{'score': 7.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R'}

cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R'}

cvssV4_0

{'score': 6.9, 'vector': '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'}


Subscriptions

Sourcecodester Pharmacy Sales And Inventory System
cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-05-01T19:29:56.123Z

Reserved: 2026-04-30T19:03:26.741Z

Link: CVE-2026-7550

cve-icon Vulnrichment

Updated: 2026-05-01T14:55:53.642Z

cve-icon NVD

Status : Deferred

Published: 2026-05-01T05:16:03.847

Modified: 2026-05-01T15:26:24.553

Link: CVE-2026-7550

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-02T08:00:14Z

Weaknesses