CVE-2024-42467
Openhab Web Interface vulnerability
openHAB, a provider of open-source home automation software, has add-ons including the visualization add-on CometVisu. Prior to version 4.2.1, 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 issue may lead up to Remote Code Execution (RCE) when chained with other vulnerabilities. Users should upgrade to version 4.2.1 of the CometVisu add-on of openHAB to receive a patch.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Openhab Web Interface. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Openhab Web Interface runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/openhab/openhab-webui/commit/630e8525835c698cf58856aa43782d92b18087f2 · Patch
- github.com/openhab/openhab-webui/security/advisories/GHSA-v7gr-mqpj-wwh3 · Third Party Advisory
- github.com/openhab/openhab-webui/blob/1c03c60f84388b9d7da0231df2d4ebb1e17d3fcf/bundles/org
- nvd.nist.gov/vuln/detail/CVE-2024-42467
- github.com/advisories/GHSA-v7gr-mqpj-wwh3
- github.com/openhab/openhab-webui/commit/531dabfa8311a50d2e740bf4f2b4f2400e78646c#diff-b9a9
- nvd.nist.gov/vuln/detail/CVE-2024-42467
- cve.org/CVERecord?id=CVE-2024-42467
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.