- Severity: MEDIUM
- CVE: CVE-2026-104885
- Ecosystems: maven
- Packages: io.openremote:openremote-manager
### 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 eith…
Source: GitHub Security Advisories · 2026-11-20