CVE-2021-46355
Description
OCS Inventory 2.9.1 is affected by Cross Site Scripting (XSS). To exploit the vulnerability, the attacker needs to manipulate the name of some device on your computer, such as a printer, replacing the device name with some malicious code that allows the execution of Stored Cross-site Scripting (XSS).
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
OCS Inventory 2.9.1 allows stored XSS via malicious device names, enabling arbitrary script execution in the admin panel.
Vulnerability
OCS Inventory version 2.9.1 is affected by a stored cross-site scripting (XSS) vulnerability. The flaw resides in how the application handles device names (e.g., printer names) reported by inventory agents. When a attacker-controlled device sends a name containing malicious JavaScript, the unsanitized payload is stored in the database and later rendered without proper encoding on the OCS web console pages. [1]
Exploitation
Exploitation requires an attacker to have the ability to modify the name of a device that is inventoried by OCS Inventory. This could be achieved by an authenticated user with permission to edit device properties, or by a compromised agent sending crafted inventory data. The attacker replaces the legitimate device name with an XSS payload (e.g., ``). When an administrator or any user views the affected device in the OCS web interface, the stored script executes in the context of their browser session. [1]
Impact
Successful exploitation allows the attacker to execute arbitrary JavaScript in the context of the victim's OCS Inventory web application session. This can lead to session hijacking, defacement, phishing attacks, or redirection to malicious sites. The attack can compromise administrative accounts and the integrity of the inventory management system. The impact is limited to the web interface; the underlying server or agent data is not directly affected. [1]
Mitigation
As of the publication date (2022-02-11), no patch had been released for CVE-2021-46355. Users of OCS Inventory 2.9.1 are advised to manually sanitize device name input or implement a web application firewall (WAF) rule that blocks common XSS patterns. Organizations should also restrict access to the OCS web console to trusted networks only. [1]
AI Insight generated on May 27, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
2- OCS Inventory/OCS Inventorydescription
- Range: =2.9.1
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
2- ocs.commitrex_refsource_MISC
- medium.com/%40windsormoreira/ocs-inventory-2-9-1-cross-site-scripting-xss-cve-2021-46355-a88d72606b7emitrex_refsource_MISC
News mentions
0No linked articles in our index yet.