GHSA-v7gr-mqpj-wwh3

Suggest an improvement
Source
https://github.com/advisories/GHSA-v7gr-mqpj-wwh3
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/08/GHSA-v7gr-mqpj-wwh3/GHSA-v7gr-mqpj-wwh3.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-v7gr-mqpj-wwh3
Aliases
Published
2024-08-09T18:21:07Z
Modified
2024-08-12T16:01:01Z
Severity
  • 10.0 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N CVSS Calculator
  • 7.8 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N CVSS Calculator
Summary
CometVisu Backend for openHAB affected by SSRF/XSS
Details

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.

Impact

This issue may lead up to Remote Code Execution (RCE) when chained with other vulnerabilities (see: GHSL-2024-007).

Database specific
{
    "nvd_published_at": "2024-08-12T13:38:34Z",
    "cwe_ids": [
        "CWE-918"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2024-08-09T18:21:07Z"
}
References

Affected packages

Maven / org.openhab.ui.bundles:org.openhab.ui.cometvisu

Package

Name
org.openhab.ui.bundles:org.openhab.ui.cometvisu
View open source insights on deps.dev
Purl
pkg:maven/org.openhab.ui.bundles/org.openhab.ui.cometvisu

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.2.1

Database specific

{
    "last_known_affected_version_range": "<= 4.2.0"
}