Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.openhab.ui.bundles/org.openhab.ui.cometvisu
  4. ›
  5. CVE-2024-42467

CVE-2024-42467: CometVisu Backend for openHAB affected by SSRF/XSS

August 9, 2024

The proxy endpoint of openHAB’s CometVisu add-on can be accessed without authentication. This proxy-feature can be exploited as Server-Side Request Forgery (SSRF) to induce GET HTTP requests to internal-only servers, in case openHAB is exposed in a non-private network.

Furthermore, this proxy-feature can also be exploited as a Cross-Site Scripting (XSS) vulnerability, as an attacker is able to re-route a request to their server and return a page with malicious JavaScript code. Since the browser receives this data directly from the openHAB CometVisu UI, this JavaScript code will be executed with the origin of the CometVisu UI. This allows an attacker to exploit call endpoints on an openHAB server even if the openHAB server is located in a private network. (e.g. by sending an openHAB admin a link that proxies malicious JavaScript.)

This vulnerability was discovered with the help of CodeQL’s Server-side request forgery query.

References

  • github.com/advisories/GHSA-v7gr-mqpj-wwh3
  • github.com/openhab/openhab-webui
  • github.com/openhab/openhab-webui/blob/1c03c60f84388b9d7da0231df2d4ebb1e17d3fcf/bundles/org.openhab.ui.cometvisu/src/main/java/org/openhab/ui/cometvisu/internal/backend/rest/ProxyResource.java
  • github.com/openhab/openhab-webui/commit/630e8525835c698cf58856aa43782d92b18087f2
  • github.com/openhab/openhab-webui/security/advisories/GHSA-v7gr-mqpj-wwh3
  • nvd.nist.gov/vuln/detail/CVE-2024-42467

Code Behaviors & Features

Detect and mitigate CVE-2024-42467 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.2.1

Fixed versions

  • 4.2.1

Solution

Upgrade to version 4.2.1 or above.

Impact 10 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

maven/org.openhab.ui.bundles/org.openhab.ui.cometvisu/CVE-2024-42467.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:04 +0000.