Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft XSS payload in clientName/clientContact
-
DeliverySubmit request to /php_action/printOrder.php
-
ExploitVictim user views order print page
-
ExecutionInjected script executes in victim browser
-
ImpactExfiltrate session token or credentials
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 | The attack requires the target application to be network-accessible and a victim user to view a page rendered from the manipulated clientName or clientContact parameter in /php_action/printOrder.php. The CVSS 4.0 vector specifies PR:N, meaning no authentication is required to submit the malicious payload. However, UI:P (passive user interaction) is required - exploitation is contingent on a legitimate user (likely an authenticated operator or admin) loading the printOrder page. Exploitation is limited by: (1) the product's narrow deployment base (primarily academic/demo installations), (2) the need for victim interaction to trigger the script, and (3) no evidence of automated exploitation tooling beyond the disclosed proof-of-concept. Non-default or restricted network exposure (e.g., intranet-only deployment) would substantially reduce real-world risk. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/E:P) scores 5.3 Medium. Attack complexity is low and no privileges are required to craft a malicious payload, but passive user interaction (UI:P) is necessary - a victim must view the manipulated print order page. The scored impact is limited to low integrity (VI:L) with no confidentiality or availability impact reflected in the vendor-provided vector, which is conservative relative to typical XSS potential (session theft is plausible). The E:P supplemental metric confirms a public proof-of-concept exists. No EPSS data was provided and KEV status is negative, suggesting no observed mass exploitation. Real-world risk is substantially curtailed by the product's narrow deployment footprint - SourceCodester applications are primarily used in academic/demo environments, not production enterprise settings. Overall: low operational priority for most organizations; relevant only to those knowingly running this specific application. |
| Exploit ScenarioDerived | An attacker crafts a URL or form submission targeting /php_action/printOrder.php with a clientName value containing a malicious script payload (e.g., an injected script tag or onerror event handler). When an authenticated staff member or administrator views the resulting print order page - for example, by processing a customer order - the script executes in their browser session, potentially exfiltrating their session cookie to an attacker-controlled server. The public proof-of-concept on GitHub lowers the technical bar for this attack to near-zero. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 23, 2026
Cross-site scripting in SourceCodester Stock Management System 1.0 allows remote attackers to inject malicious script via the clientName and clientContact parameters of /php_action/printOrder.php. When a legitimate user views a manipulated order print page, the unsanitized input is rendered in their browser, enabling session hijacking, credential theft, or malicious redirects. A public exploit has been disclosed via GitHub (referenced in VulDB entry 394299); no active exploitation is confirmed in CISA KEV.
RemediationAI
No vendor-released patch has been identified at time of analysis; the upstream fix is referenced only through a GitHub issue (github.com/i-QvQ-i/first-OvO/issues/12), which does not constitute a tagged release. The primary remediation is to apply HTML entity encoding to all user-supplied output in /php_action/printOrder.php - specifically the clientName and clientContact parameters - using PHP's htmlspecialchars() with ENT_QUOTES before rendering. As a compensating control, restrict access to the printOrder.php endpoint to authenticated internal users only via web server ACL or application-layer authentication middleware, reducing the attack surface against unauthenticated drive-by exploitation. Deploying a Web Application Firewall (WAF) rule blocking script injection patterns in these parameters is an additional layer, though WAF bypass is possible and should not substitute for code-level output encoding. Monitor VulDB entry 394299 and the SourceCodester project page for any patched release.
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
The vulnerability is a classic reflected or stored XSS (CWE-79: Improper Neutralization of Input During Web Page Generation) in a PHP-based inventory application distributed by SourceCodester, a platform providing free source code for student/academic projects. The affected endpoint /php_action/printOrder.php accepts clientName and clientContact as parameters and incorporates them into page output without adequate encoding or sanitization. CPE cpe:2.3:a:sourcecodester:stock_management_system:*:*:*:*:*:*:*:* covers all versioned releases, though only version 1.0 is explicitly referenced. CWE-79 root cause: output rendered from attacker-controlled input without HTML-entity encoding, allowing script tags or event-handler attributes to execute in the victim browser context.
Know when Stock Management 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:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P
Network-delivered XSS with no privileges needed, but requires victim to load the page (UI:R); scope changes as script executes in victim browser context with low C/I impact.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A vulnerability has been found in SourceCodester Stock Management System 1.0. This vulnerability affects unknown code of the file /php_action/printOrder.php. Such manipulation of the argument clientName/clientContact leads to cross site scripting. The attack may be performed from remote. The exploit has been disclosed to the public and may be used.
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.
More in Stock Management System
View allSourcecodester Stock Management System v1.0 is vulnerable to SQL Injection via editCategories.php. Rated critical severi
A vulnerability was found in rickxy Stock Management System and classified as critical. Rated critical severity (CVSS 9.
A SQL injection vulnerability in the login component in Stock Management System v1.0 allows remote attacker to execute a
A vulnerability was found in rickxy Stock Management System and classified as problematic.php?action=add. Rated high sev
A Cross-Site Request Forgery (CSRF) vulnerability in changeUsername.php in SourceCodester Stock Management System v1.0 a
A vulnerability was found in SourceCodester/oretnom23 Stock Management System 1.0 and classified as critical.php?f=login
A vulnerability has been found in SourceCodester Stock Management System 1.0 and classified as critical. Rated medium se
A persistent cross-site scripting vulnerability in Sourcecodester Stock Management System v1.0 allows remote attackers t
A Reflected Cross-Site Scripting (XSS) vulnerability in the index.php login-portal webpage of SourceCodester Stock Manag
Missing authentication for the /api/employees endpoint in haxxorsid Stock Management System lets remote attackers retrie
A vulnerability was found in CodeAstro Stock Management System 1.0 and classified as problematic.php of the component Ad
A vulnerability was found in rickxy Stock Management System. Rated medium severity (CVSS 5.4), this vulnerability is rem
EUVD-2026-64624
GHSA-m7q6-3v5v-h4c2
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB