External risk intelligence

openHAB CometVisu SSRF and XSS Vulnerability

CVE advisorySeverity: CRITICAL (CVSS 10.0)

CVE-2024-42467

openHAB is home automation software typically deployed within private, internal home networks. While the vulnerability allows for SSRF and XSS if the software is exposed to a non-private network, such internet exposure is not the standard or intended deployment pattern for home automation hubs, making public reachability possible but not the common baseline configuration.

Server-Side Request Forgery

Openhab Web Interface

before 4.2.1

Halo Surface Signal: 3 out of 5 — possibly public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

A security vulnerability has been identified in openHAB's home automation software, specifically within its CometVisu add-on. This issue could allow unauthorized access to internal systems through Server-Side Request Forgery and Cross-Site Scripting, potentially leading to further exploitation. The primary concern is to confirm if this software is used and exposed in a way that could be affected.

  • Unauthenticated access to internal systems.
  • Check if openHAB is deployed and exposed externally.
  • Assess relevance and exposure of openHAB deployments.

Attack Path

How an attacker could exploit the issue

An attacker can reach this vulnerability by interacting with the CometVisu add-on's proxy endpoint, which is accessible without authentication if openHAB is exposed externally. This can allow the attacker to craft requests that trick the add-on into sending arbitrary GET requests to internal servers, potentially leading to cross-site scripting attacks that execute with the origin of the add-on's user interface. If chained with other vulnerabilities, this could enable remote code execution.

  • No authentication required.
  • Proxy endpoint triggers vulnerability.
  • Risks include SSRF, XSS, and RCE.

Live Threat

Current exploitation, exposure, and threat context

When openHAB's CometVisu add-on is exposed on a non-private network, an unauthenticated attacker could exploit a proxy endpoint to send GET requests to internal servers. This could also lead to cross-site scripting, allowing an attacker to execute JavaScript with the CometVisu UI's origin. This may enable further exploitation, potentially leading to remote code execution when combined with other vulnerabilities.

  • Internal network services or data.
  • SSRF and XSS attacks on the add-on.
  • Compromise of system and user data.

Operational Fix

Recommended remediation, mitigation, and detection steps

The openHAB CometVisu add-on's proxy endpoint is vulnerable to SSRF and XSS attacks, potentially leading to RCE if chained with other vulnerabilities. Given that openHAB is typically deployed in private networks, the immediate first step for technical leaders and system owners is to identify all instances of the affected technology, confirm their network exposure and business criticality, and then assign ownership for remediation planning.

  • Assign ownership to application or platform teams.
  • Verify network exposure and business criticality.
  • Plan remediation based on risk assessment.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is openHAB and the CometVisu add-on?

openHAB is an open-source platform designed for home automation, enabling users to integrate and control various smart devices. The CometVisu add-on serves as a visualization interface for this software, providing a dashboard for users to interact with their connected home environment.

How does CVE-2024-42467 affect CometVisu security?

This vulnerability is classified as CWE-918, or Server-Side Request Forgery (SSRF). Because the add-on's proxy endpoint lacks authentication, an attacker can trick the system into making unauthorized requests to internal network services. This flaw also permits Cross-Site Scripting (XSS), allowing the execution of malicious scripts within the context of the user interface.

Does this vulnerability trigger automatically?

No. The vulnerability requires an active interaction with the CometVisu proxy endpoint. It only functions if the openHAB instance is accessible via a non-private, external network. If your installation is strictly confined to a private home network without internet exposure, this specific trigger path is not met.

How do I know if my openHAB instance is at risk?

According to Halo Surface Signal, openHAB is typically intended for private, internal networks. While the software is affected, you should evaluate if your specific instance is reachable from the public internet. If it is exposed outside of a private network, the potential for unauthorized access via this proxy endpoint increases significantly.

What should I do to secure my system?

The most effective way to address this issue is to update the CometVisu add-on to version 4.2.1 or later. Prioritize identifying where you have deployed openHAB and verify its current network accessibility. If you do not require remote access, ensure the instance is not exposed to the public internet as a foundational security practice.

References