CVE-2026-8136 in Pharmacy Sales and Inventory Systeminfo

Summary

by MITRE • 05/08/2026

A flaw has been found in SourceCodester Pharmacy Sales and Inventory System 1.0. This affects an unknown part of the file /index.php?page=users. Executing a manipulation of the argument Name can lead to cross site scripting. The attack may be launched remotely. The exploit has been published and may be used.

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Analysis

by VulDB Data Team • 05/11/2026

This vulnerability exists within the SourceCodester Pharmacy Sales and Inventory System version 1.0, specifically affecting the user management component accessible through the /index.php?page=users endpoint. The flaw represents a classic cross-site scripting vulnerability that allows remote attackers to inject malicious scripts into web pages viewed by other users. The vulnerability manifests when the application fails to properly sanitize or escape user input parameters, specifically the Name argument, which is processed within the user management interface. This type of vulnerability falls under CWE-79 which defines Cross-Site Scripting as a weakness where web applications fail to validate or escape user-supplied data before incorporating it into dynamic content.

The technical exploitation of this vulnerability occurs through the manipulation of the Name parameter in the URL, allowing attackers to inject malicious JavaScript code that executes in the context of other users' browsers. Since the attack can be launched remotely without requiring any special privileges or local access, it represents a significant security risk for the pharmacy system's users. The published exploit demonstrates that this vulnerability is not theoretical but actively being used by threat actors to compromise the system. The remote nature of the attack means that an attacker can target users from any location, making the attack surface extremely broad.

The operational impact of this vulnerability extends beyond simple script execution, as it can enable session hijacking, credential theft, and further exploitation of the pharmacy system. Attackers could potentially steal user sessions, gain unauthorized access to sensitive pharmaceutical inventory data, or manipulate user accounts to gain elevated privileges. The vulnerability affects the integrity and confidentiality of the system's user management functionality, potentially exposing patient data and pharmaceutical inventory information. The attack vector aligns with ATT&CK technique T1566 which covers social engineering attacks including phishing and malicious web content, and T1059 which involves command and scripting interpreters for execution of malicious code.

Mitigation strategies should focus on implementing proper input validation and output encoding across all user-supplied parameters within the application. The system should employ strict sanitization of the Name parameter before rendering it in web pages, utilizing techniques such as HTML entity encoding and Content Security Policy headers. Additionally, the application should implement proper parameter validation, input length restrictions, and regular security code reviews to identify similar vulnerabilities. The system administrators should also consider implementing web application firewalls and monitoring for suspicious parameter values. Regular updates and patches should be applied to address known vulnerabilities, and the application should be migrated to a more secure framework that properly handles user input validation and sanitization to prevent similar cross-site scripting vulnerabilities from occurring in the future.

Responsible

VulDB

Disclosure

05/08/2026

Moderation

accepted

Exploit

Download

EPSS

0.00350

KEV

no

Activities

very low

Sources

Do you know our Splunk app?

Download it now for free!