VulnWatch by ve1ve2
high 7.7 EPSS 0.32%

GHSA-3h6w-xcw3-9xjj: OpenRemote: Cross-realm MQTT session disconnect without authorization

Source:
OSV.dev
Published:
Fetched:
Updated:
Affects:
io.openremote:openremote-manager

https://osv.dev/vulnerability/GHSA-3h6w-xcw3-9xjj ↗

osvmavenfix-available

OpenRemote: Cross-realm MQTT session disconnect without authorization ### Summary Cross-realm MQTT session disconnect without authorization ## Vulnerability The `disconnectUserSession` endpoint in `UserResourceImpl.java` (line 443) accepts a `realm` path parameter but ignores it entirely, performing no authorization or realm-boundary check before force-disconnecting an MQTT session. Any authenticated user from any realm can disconnect MQTT broker sessions belonging to users in other realms by supplying the target session ID. File: `manager/src/main/java/org/openremote/manager/security/UserResourceImpl.java`, lines 443-447 ```java @Override public void disconnectUserSession(RequestParams requestParams, String realm, String sessionID) { if (!mqttBrokerService.disconnectSession(sessionID)) { throw new NotFoundException("User session not found"); } } ``` The REST interface at `model/src/main/java/org/openremote/model/security/UserResource.java` (line 201-204) maps this to `GET {realm}/disconnect/{sessionID}` with no `@RolesAllowed` annotation, so any authenticated user (not just admins) can call it. ## Root Cause CVE-2026-54641 (commit de89b8d) fixed cross-realm information disclosure in three read methods of the same file (`get()`, `getUserClientRoles()`, `getUserRealmRoles()`) and also added a realm check to `getClientRoles()`. The fix added `throwIfCannotReadUserInRealm()` and `throwIfCannotAdminRealm()` guards. However, `disconnectUserSession` was not patched and remains unprotected. Every other mutating method in this class has either a `@RolesAllowed` annotation on the interface or an explicit realm check in the implementation. This one has neither. ## Proof of Concept Given two realms, "master" and "building": 1. User A authenticates in the "building" realm (any role, no admin needed). 2. User B has an active MQTT session in the "master" realm with session ID `S`. 3. User A sends: `GET /api/master/user/master/disconnect/S` with their building-realm bearer token. 4. The handler ignores the realm path segments, looks up session `S` in the global `connectionIDConnectionMap`, and calls `doForceDisconnect()`. User B's MQTT connection is terminated. Session IDs use the Netty `ChannelId.asLongText()` format (deterministic, partially sequential). While not trivially brute-forceable, IDs can leak through monitoring, logs, or correlated API calls. Within the same realm, any user (not just admins) can also disconnect sessions they should not have access to. ## Impact In a multi-tenant IoT deployment, an attacker authenticated in any realm can disrupt MQTT device connectivity in other realms. Since OpenRemote is used for building management, energy monitoring, and industrial IoT, forcibly disconnecting MQTT sessions can: - Knock IoT sensors and actuators offline across tenant boundaries - Disrupt safety-critical alarm monitoring (compounding the alarm IDOR fixed in CVE-2026-57168) - Cause denial of service against other tenants' device fleets The method also uses HTTP GET for a destructive op Affected: Maven:io.openremote:openremote-manager Fixed in: 1.31.0 References: https://github.com/openremote/core/security/advisories/GHSA-3h6w-xcw3-9xjj https://nvd.nist.gov/vuln/detail/CVE-2026-104885 https://github.com/openremote/core/commit/51dce18d9e00d671a5e032d942ece186bdada560 https://github.com/openremote/core/releases/tag/1.31.0 https://github.com/openremote/openremote

Linked vulnerabilities (4)

CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

OpenRemote: Cross-realm MQTT session disconnect without authorization

CWE: CWE-862Aliases: CVE-2026-104885, CVE-2026-54641, CVE-2026-57168
CVE-2026-104885 medium 6.3 EPSS 0.32% (p26) NVDCVE.orgGHSA
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

OpenRemote: Cross-realm MQTT session disconnect without authorization

CWE: CWE-862Aliases: GHSA-3h6w-xcw3-9xjj, CVE-2026-54641, CVE-2026-57168NVD: Deferred
CVE-2026-54641 high 7.7 EPSS 0.29% (p22) NVDCVE.org
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N

OpenRemote is an open-source internet-of-things platform. Prior to 1.24.2, the get, getUserClientRoles, and getUserRealmRoles methods in manager/src/main/java/org/openremote/manager/security/UserResourceImpl.java authorize callers with the read:admin role without confirming that the target UUID belongs to the requested and authenticated realm. A realm administrator can supply a user identifier from another tenant or the master realm and retrieve that user's profile, client roles, and realm roles, breaking tenant isolation and exposing privileged account information. This issue is fixed in...

CWE: CWE-639NVD: Deferred

Rejected reason: ** REJECT ** DO NOT USE THIS CANDIDATE NUMBER. ConsultIDs: CVE-2026-56120. Reason: This candidate is a duplicate of CVE-2026-56120. Notes: All CVE users should reference CVE-2026-56120 instead of this candidate.

NVD: Rejected

Also reported by (1)