CVE-2026-30567
Received Received - Intake
Reflected XSS in SourceCodester Inventory System view_product.php

Publication date: 2026-03-27

Last updated on: 2026-04-06

Assigner: MITRE

Description
A Reflected Cross-Site Scripting (XSS) vulnerability exists in SourceCodester Sales and Inventory System 1.0 in the view_product.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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-03-27
Last Modified
2026-04-06
Generated
2026-05-07
AI Q&A
2026-03-27
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
ahsanriaz26gmailcom inventory_system 1.0
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Attack-Flow Graph
AI Powered Q&A
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:

The Reflected Cross-Site Scripting (XSS) vulnerability in SourceCodester Inventory System 1.0 can lead to session hijacking and privilege escalation by allowing attackers to execute malicious scripts in the context of an authenticated administrator.

Such unauthorized access and potential data breaches could result in non-compliance with common standards and regulations like GDPR and HIPAA, which require protection of sensitive data and user privacy.

Specifically, if attackers steal administrator session cookies or perform unauthorized actions, it may lead to exposure or manipulation of personal or protected health information, violating regulatory requirements.


Can you explain this vulnerability to me?

CVE-2026-30567 is a Reflected Cross-Site Scripting (XSS) vulnerability found in SourceCodester Inventory System version 1.0, specifically in the view_product.php file. The vulnerability occurs because the application does not properly sanitize the "limit" parameter, which is used for pagination control. This parameter is reflected back to the user without validation, allowing remote attackers to inject malicious JavaScript code via a crafted URL.

An attacker can exploit this by sending a specially crafted URL containing a script payload to an authenticated administrator. When the administrator clicks the link, the injected script executes in their browser.


How can this vulnerability impact me? :

This vulnerability can have serious impacts including session hijacking and privilege escalation. By injecting malicious scripts, an attacker can steal administrator session cookies, allowing them to impersonate the admin user.

Additionally, the attacker can perform unauthorized actions on behalf of the administrator, potentially compromising the integrity and security of the inventory system.


How can this vulnerability be detected on my network or system? Can you suggest some commands?

This vulnerability can be detected by testing the "limit" parameter in the view_product.php page for reflected Cross-Site Scripting (XSS). Specifically, you can craft a URL with a script payload in the "limit" parameter and observe if the script executes when accessed by an authenticated administrator.

An example of such a test URL is: http://127.0.0.1:8089/view_product.php?limit=%22%3E%3Cscript%3Ealert(15623);%3C/script%3E

To detect this on your system, you can use tools like curl or wget to send the crafted GET request and then manually verify if the response reflects the injected script without sanitization.

  • curl -i "http://your-inventory-system/view_product.php?limit=\"\><script>alert(15623);</script>" --cookie "PHPSESSID=your_admin_session_cookie"
  • Use a browser with developer tools or a proxy (e.g., Burp Suite) to intercept and modify requests to include the malicious payload in the "limit" parameter and observe if the script executes.

What immediate steps should I take to mitigate this vulnerability?

Immediate mitigation steps include sanitizing and validating the "limit" parameter input in the view_product.php file to prevent injection of arbitrary scripts.

Until a patch or fix is applied, restrict access to the affected page to trusted users only, especially administrators, to reduce the risk of exploitation.

Additionally, monitor and educate administrators to avoid clicking on suspicious or untrusted URLs that may contain malicious payloads.

Implement Content Security Policy (CSP) headers to limit the execution of unauthorized scripts in the web application.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart