Description
A weakness has been identified in SourceCodester Pharmacy Sales and Inventory System 1.0. This impacts an unknown function of the file /ajax.php?action=save_product. This manipulation of the argument ID causes sql injection. The attack is possible to be carried out remotely. The exploit has been made available to the public and could be used for attacks.
Published: 2026-04-27
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: SQL Injection
Action: Apply Mitigation
AI Analysis

Impact

A weakness was discovered in the function handling the /ajax.php?action=save_product request of SourceCodester Pharmacy Sales and Inventory System 1.0. By manipulating the ID argument, an attacker can inject arbitrary SQL statements, leading to unauthorized data exposure or modification. The vulnerability is exploitable remotely and a public exploit is available, meaning an attacker can trigger it over the internet without local access.

Affected Systems

The vulnerable module resides in SourceCodester Pharmacy Sales and Inventory System version 1.0. No other versions or product variations are listed as affected.

Risk and Exploitability

The CVSS score is 6.9, indicating a moderate risk level. EPSS data is not available, and the vulnerability is not listed in CISA’s KEV catalog. The likely attack vector is remote, as the flaw operates over a web interface. Without remediation, an attacker could exploit the injection to read, modify, or delete database contents related to pharmacy sales and inventory, potentially compromising business operations and confidential customer data.

Generated by OpenCVE AI on April 28, 2026 at 12:47 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Disable or restrict direct access to /ajax.php?action=save_product so that only authenticated users can reach it.
  • Validate the ID parameter in the request to accept only numeric values within a known range.
  • Refactor the database code to use prepared statements or parameterized queries for all interactions with the ID parameter.
  • Deploy web application firewall rules that detect and block common SQL injection patterns targeting the ID field.
  • Continuously monitor application logs for suspicious queries or repeated injection attempts and investigate them as needed.

Generated by OpenCVE AI on April 28, 2026 at 12:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 28 Apr 2026 13:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 28 Apr 2026 02:30: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 23:00:00 +0000

Type Values Removed Values Added
Description A weakness has been identified in SourceCodester Pharmacy Sales and Inventory System 1.0. This impacts an unknown function of the file /ajax.php?action=save_product. This manipulation of the argument ID causes sql injection. The attack is possible to be carried out remotely. The exploit has been made available to the public and could be used for attacks.
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-28T12:48:06.769Z

Reserved: 2026-04-27T13:45:12.613Z

Link: CVE-2026-7194

cve-icon Vulnrichment

Updated: 2026-04-28T12:48:02.267Z

cve-icon NVD

Status : Deferred

Published: 2026-04-27T23:16:04.043

Modified: 2026-04-29T01:00:01.613

Link: CVE-2026-7194

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-28T13:00:15Z

Weaknesses