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

Impact

A SQL injection flaw exists in the delete_supplier endpoint of SourceCodester Pharmacy Sales and Inventory System. By manipulating the ID parameter in /ajax.php?action=delete_supplier, an attacker can inject arbitrary SQL statements. The vulnerability is exploitable from a remote location and can result in unauthorized access to, alteration of, or deletion of database contents. The weakness is classified as CWE-74 (SQL Injection via string concatenation) and CWE-89. The existence of a publicly disclosed exploit raises the risk of exploitation.

Affected Systems

The affected product is SourceCodester Pharmacy Sales and Inventory System version 1.0. The flaw resides in the ajax.php script that handles supplier deletion requests. Only this product version and that specific request handler are listed as impacted.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity. No EPSS data is available, and the vulnerability is not listed in the CISA KEV catalog. The attack vector is inferred to be remote since the description states the attack can be executed from outside the system. Exploitation requires the ability to send crafted HTTP requests to the vulnerable endpoint; no authentication is mentioned as a prerequisite, suggesting the flaw may be exploitable without prior login. Given the public availability of the exploit and the moderate CVSS score, organizations should treat this as a significant security risk.

Generated by OpenCVE AI on April 29, 2026 at 21:16 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update SourceCodester Pharmacy Sales and Inventory System to a release that replaces string concatenation with parameterized queries in the delete_supplier routine.
  • If an official patch is not yet available, modify the delete_supplier code to validate the ID parameter strictly as an integer and to use prepared statements for all SQL operations.
  • Restrict access to the /ajax.php?action=delete_supplier endpoint to only authenticated users with appropriate permissions, using web‑server or application‑level access controls.
  • Enable detailed logging for failed SQL queries near the delete_supplier endpoint and monitor logs for evidence of injection attempts.

Generated by OpenCVE AI on April 29, 2026 at 21:16 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 29 Apr 2026 19:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 29 Apr 2026 18:45: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

Wed, 29 Apr 2026 17:15:00 +0000

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

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

cvssV3_0

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

cvssV3_1

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

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/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-04-29T18:14:29.466Z

Reserved: 2026-04-29T09:37:22.793Z

Link: CVE-2026-7392

cve-icon Vulnrichment

Updated: 2026-04-29T18:11:45.999Z

cve-icon NVD

Status : Deferred

Published: 2026-04-29T17:16:41.950

Modified: 2026-04-29T21:16:21.590

Link: CVE-2026-7392

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-29T21:30:20Z

Weaknesses