# CVE-2022-39285: ZoneMinder - XSS

> Live exploitation tracking for CVE-2022-39285 by the CrowdSec Live Exploit Tracker, built from real-world attack data crowdsourced from CrowdSec's global network.

Page: https://tracker.crowdsec.net/cves/CVE-2022-39285

## Key facts

- **Exploitation phase:** Limited Exploitation. The vulnerability is known but shows very limited attacker interest or exploitation activity.
- **CVSS score:** 7.6
- **Public exploit available:** Yes
- **Affected products:** ZoneMinder
- **Weaknesses:** CWE-79 (Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'))
- **Tags:** iot

## Description

ZoneMinder is a free, open source Closed-circuit television software application The file parameter is vulnerable to a cross site scripting vulnerability (XSS) by backing out of the current "tr" "td" brackets. This then allows a malicious user to provide code that will execute when a user views the specific log on the "view=log" page. This vulnerability allows an attacker to store code within the logs that will be executed when loaded by a legitimate user. These actions will be performed with the permission of the victim. This could lead to data loss and/or further exploitation including account takeover. This issue has been addressed in versions `1.36.27` and `1.37.24`. Users are advised to upgrade. Users unable to upgrade should disable database logging.

## CrowdSec analysis

[CVE-2022-39285](https://euvd.enisa.europa.eu/vulnerability/CVE-2022-39285) is a vulnerability in ZoneMinder that allows an attacker to inject malicious scripts into the logs, which are executed when viewed by legitimate users, potentially leading to data loss and account takeover.

CrowdSec has been tracking this vulnerability and its exploits since 20th of December 2022.

CrowdSec has not observed any significant exploitation activity targeting CVE-2022-39285 across its network. As a result, no community-driven trend analysis is available for this vulnerability at this time.

This vulnerability is exploited by crafting a malicious log entry that contains the injected script. When a legitimate user views the log, the script is executed in their browser context.

## Timeline

- 2022-10-07: CVE Published. CVE-2022-39285 is published to NVD.
- 2022-12-20: Rule Released. CrowdSec releases a rule to detect CVE-2022-39285 exploitation attempts against the CrowdSec Network.
- 2026-09-21: CrowdSec First Seen. CrowdSec observes in-the-wild exploitation of CVE-2022-39285 for the first time.

## References

- https://github.com/ZoneMinder/zoneminder/security/advisories/GHSA-h6xp-cvwv-q433
- https://github.com/ZoneMinder/zoneminder/commit/c0a4c05e84eea0f6ccf7169c014efe5422c9ba0d
- https://github.com/ZoneMinder/zoneminder/commit/d289eb48601a76e34feea3c1683955337b1fae59

## Live exploitation data

The [Live Exploit Tracker page](https://tracker.crowdsec.net/cves/CVE-2022-39285) follows observed exploitation activity for CVE-2022-39285. [Request an API key](https://tracker.crowdsec.net/request-api-key) for full access to its exploitation timeline, attacking IP addresses and blocklists.
