Description
A flaw has been found in SourceCodester Pharmacy Sales and Inventory System 1.0. The affected element is an unknown function of the file /ajax.php?action=delete_category. 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.
Published: 2026-04-27
Score: 6.9 Medium
EPSS: n/a
KEV: No
Impact: Remote SQL Injection
Action: Immediate Patch
AI Analysis

Impact

The flaw resides in the SourceCodester Pharmacy Sales and Inventory System 1.0, inside an undocumented function within /ajax.php when the action parameter is set to delete_category. By manipulating the ID argument, an attacker can inject arbitrary SQL code, allowing alteration or exfiltration of the underlying database and compromising data confidentiality and integrity.

Affected Systems

This issue affects the single product SourceCodester Pharmacy Sales and Inventory System version 1.0. No other affected versions are documented. The parameter that triggers the injection is the ID field in the delete_category action.

Risk and Exploitability

The CVSS score of 6.9 indicates moderate severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog, suggesting no widespread known exploitation yet. The description states that the attack can be performed from remote, implying that an unauthenticated attacker with network access to the web application can exploit the flaw by sending a crafted request to the delete_category endpoint. The lack of input validation and the use of raw query building provide the conditions for exploitation.

Generated by OpenCVE AI on April 28, 2026 at 04:24 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the official vendor patch or upgrade to a fixed version of the Pharmacy Sales and Inventory System.
  • Configure a web application firewall rule to detect and block SQL injection attempts against /ajax.php?action=delete_category.
  • Modify the application code to use parameterized queries or prepared statements for any user-supplied IDs in SQL statements.
  • Restrict access to the ajax.php delete_category action to authenticated users only and enforce least privilege.

Generated by OpenCVE AI on April 28, 2026 at 04:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 28 Apr 2026 01:00: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

Mon, 27 Apr 2026 21:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Mon, 27 Apr 2026 14:15:00 +0000

Type Values Removed Values Added
Description A flaw has been found in SourceCodester Pharmacy Sales and Inventory System 1.0. The affected element is an unknown function of the file /ajax.php?action=delete_category. 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.
Title SourceCodester Pharmacy Sales and Inventory System ajax.php 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-04-27T20:11:32.703Z

Reserved: 2026-04-26T19:16:19.628Z

Link: CVE-2026-7130

cve-icon Vulnrichment

Updated: 2026-04-27T19:05:35.002Z

cve-icon NVD

Status : Deferred

Published: 2026-04-27T14:16:57.040

Modified: 2026-04-27T18:36:42.937

Link: CVE-2026-7130

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-28T04:30:21Z

Weaknesses