Description
A security flaw has been discovered in SourceCodester Pharmacy Sales and Inventory System 1.0. Impacted is an unknown function of the file /ajax.php?action=save_sales. Performing a manipulation of the argument ID results in sql injection. The attack can be initiated remotely. The exploit has been released to the public and may be used for attacks.
Published: 2026-04-27
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Remote SQL Injection
Action: Immediate Patch
AI Analysis

Impact

The vulnerability is an unsanitized injection point in the /ajax.php?action=save_sales endpoint of SourceCodester Pharmacy Sales and Inventory System 1.0, corresponding to CWE-74 (Improper Sanitization) and CWE-89 (SQL Injection). By altering the value of the ID parameter, an attacker can embed arbitrary SQL code that the backend database will execute. This allows the potential disclosure, modification, or deletion of data stored in the system. The flaw can be triggered from a remote location, and the existence of a publicly available exploit suggests that an attacker can craft a request with malicious SQL without needing additional credentials.

Affected Systems

The affected product is SourceCodester Pharmacy Sales and Inventory System version 1.0. No other versions or sub‑products are mentioned as vulnerable.

Risk and Exploitability

The CVSS score of 6.9 indicates medium severity and highlights the capacity for data compromise. The EPSS score is less than 1 percent, reflecting a low current exploitation probability, yet the public availability of an exploit increases the risk. The flaw is not listed in the CISA KEV catalog. A successful attack requires an attacker to contact the web application, send a forged request to the /ajax.php?action=save_sales URL with a malicious ID payload, and relies on the server executing that payload against the connected database.

Generated by OpenCVE AI on April 29, 2026 at 01:35 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply any official patch or newer version from SourceCodester that addresses the SQL injection flaw.
  • Replace the raw SQL construction for the ID parameter with a parameterized query or a stored procedure that sanitizes the input.
  • Restrict the database account used by the application to the minimal privileges necessary for its normal operation, limiting the potential damage if an injection succeeds.

Generated by OpenCVE AI on April 29, 2026 at 01:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

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

Mon, 27 Apr 2026 05:30:00 +0000

Type Values Removed Values Added
Description A security flaw has been discovered in SourceCodester Pharmacy Sales and Inventory System 1.0. Impacted is an unknown function of the file /ajax.php?action=save_sales. Performing a manipulation of the argument ID results in sql injection. The attack can be initiated remotely. The exploit has been released to the public and may 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-29T13:46:29.567Z

Reserved: 2026-04-26T08:20:53.860Z

Link: CVE-2026-7087

cve-icon Vulnrichment

Updated: 2026-04-29T13:46:23.591Z

cve-icon NVD

Status : Deferred

Published: 2026-04-27T06:16:03.607

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

Link: CVE-2026-7087

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-29T01:45:26Z

Weaknesses