Executive brief
The Rizwan17 inventory-management-system is an open-source inventory application that includes a login page. An attacker can inject malicious JavaScript code into the login page via the msg URL parameter, allowing them to steal credentials, session cookies, or trick users into performing unauthorized actions. The vulnerability requires a victim to click a specially crafted link, but no authentication is needed to exploit it.
Technical details
This is a reflected cross-site scripting (XSS) vulnerability in index.php where the msg query parameter is echoed directly into an HTML alert div without output encoding (htmlspecialchars/htmlentities). An unauthenticated attacker can craft a malicious URL containing JavaScript payload in the msg parameter, and when a user visits that URL, the script executes in the browser with the application's origin context. The vulnerable code prints $_GET["msg"] directly into the HTML without sanitization. User interaction (clicking the link) is required, but no authentication is needed. The attack impacts confidentiality and integrity by enabling credential theft, session hijacking, or UI forgery on the login page.
Affected products
- Rizwan17 inventory-management-system up to commit bfe78a330d01bb26b9daec5dc9ecd5c77900e03f
Timeline
- 2026-07-30: disclosed: Vulnerability reported as GitHub issue #11
- 2026-09-10: advisory: CVE-2026-87926 published