CVE-2026-30576

Business Logic Vulnerability Allowing Negative Financial Values in Web‑Based Pharmacy Product Management System

Published Mar 27, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
A Business Logic vulnerability exists in SourceCodester Pharmacy Product Management System 1.0 in the add-stock.php file. The application fails to validate the "txtprice" and "txttotalcost" parameters during stock entry, allowing negative financial values to be submitted. This leads to corruption of financial records, allowing attackers to manipulate inventory asset values and procurement costs.

Analysis

AI-generated

Technical impact

A business logic flaw in the add‑stock.php module of Web‑Based Pharmacy Product Management System version 1.0 allows the application to accept negative values for the txtprice and txttotalcost fields without validation. The unchecked negative numbers corrupt financial records, enabling an attacker to artificially lower inventory asset values and procurement costs, thereby skewing reported financial statements and potentially stealing value from the organization. This weakness maps to CWE‑20 (Input Validation).

Affected Systems

The vulnerability exists in SourceCodester Pharmacy Product Management System 1.0, a PHP‑based web application that manages pharmacy inventory. No specific vendor is listed in the CNA data, but the application is identified by the CPE string for senior‑walter:web‑based_pharmacy_product_management_system 1.0.

Risk and Exploitability

With a CVSS score of 7.5 the risk level is medium‑high. The EPSS score of less than 1% indicates a low likelihood that existing exploit code is available in the wild. The vulnerability is not in the CISA KEV catalog. The most likely attack vector is via the web interface that handles stock entries, and it probably requires administrative privileges to access add‑stock.php. Once accessed, an attacker can submit negative numeric values to corrupt the system’s financial data.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the add‑stock.php code to enforce server‑side validation that txtprice and txttotalcost are positive numeric values
  • Enforce authentication and restrict add‑stock.php access to administrators only
  • Audit the database for existing negative entries and correct financial records
  • Implement logging and monitor for abnormal stock entry attempts

Generated by OpenCVE AI on March 31, 2026 at 17:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Title Business Logic Vulnerability Allowing Negative Financial Values in Web‑Based Pharmacy Product Management System
Type Values Removed Values Added
First Time appeared Senior-walter
Senior-walter web-based Pharmacy Product Management System
CPEs cpe:2.3:a:senior-walter:web-based_pharmacy_product_management_system:1.0:*:*:*:*:*:*:*
Vendors & Products Senior-walter
Senior-walter web-based Pharmacy Product Management System
Type Values Removed Values Added
First Time appeared Sourcecodester
Sourcecodester pharmacy Product Management System
Vendors & Products Sourcecodester
Sourcecodester pharmacy Product Management System
Type Values Removed Values Added
Title Negative Financial Values Allowing Inventory Asset Manipulation in SourceCodester Pharmacy Product Management System 1.0
Type Values Removed Values Added
Title Negative Financial Values Allowing Inventory Asset Manipulation in SourceCodester Pharmacy Product Management System 1.0
Type Values Removed Values Added
Weaknesses CWE-20
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N'}

ssvc

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

Type Values Removed Values Added
Description A Business Logic vulnerability exists in SourceCodester Pharmacy Product Management System 1.0 in the add-stock.php file. The application fails to validate the "txtprice" and "txttotalcost" parameters during stock entry, allowing negative financial values to be submitted. This leads to corruption of financial records, allowing attackers to manipulate inventory asset values and procurement costs.
References
Weaknesses
  • CWE-20

    Improper Input Validation

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Mar 27, 2026, 7:06 PM
Reserved
Mar 4, 2026, 12:00 AM
Status
Analyzed
Published
Mar 27, 2026, 5:16 PM
Modified
Nov 11, 2026, 7:10 PM