Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/googlesky/cve-2026-104885
Vulnerability AnalysisExploitationWeb Application ExploitationLabs & Practice
GitHubgooglesky/cve-2026-104885

CVE-2026-104885

Proof-of-concept and differential lab for CVE-2026-104885, an OpenRemote authorization bypass letting any authenticated user disconnect MQTT sessions in other realms.

View Repository
3 days agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    897
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    853
  • 3

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    668
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    448
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    417
  • 6

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    400

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-104885 — OpenRemote: cross-realm MQTT session disconnect without authorization

License: MIT Research status: validated

CVECVE-2026-104885
ComponentOpenRemote — UserResourceImpl.disconnectUserSession (manager/.../security/UserResourceImpl.java)
Affectedbefore commit 51dce18d
Fixed incommit 51dce18d (GHSA-3h6w-xcw3-9xjj)
CWECWE-863 (Incorrect Authorization), CWE-285 (Improper Authorization)
ImpactThe disconnectUserSession endpoint accepts a realm path parameter but ignores it, performing no authorization or realm-boundary check; any authenticated user from any realm can force-disconnect MQTT broker sessions belonging to users in other realms by supplying the target session ID — cross-realm denial of service
VectorAuthenticated user from any realm calling the disconnect endpoint
TriggerdisconnectUserSession(realm="attacker-realm", sessionID=<victim-realm session>)

The vulnerable endpoint disconnected the session with no checks:

// UserResourceImpl.disconnectUserSession — pre-fix
public void disconnectUserSession(RequestParams requestParams, String realm, String sessionID) {
    if (!mqttBrokerService.disconnectSession(sessionID)) {
        throw new NotFoundException("User session not found");
    }
}

The fix authorizes against the session owner's realm:

// fixed (commit 51dce18d)
String connectionUserId = mqttBrokerService.getConnectionUserId(sessionID);
User connectionUser = identityService.getIdentityProvider().getUser(connectionUserId);
String connectionRealm = connectionUser.getRealm();
if (!connectionRealm.equals(realm)) throw new NotFoundException("User session not found in realm");
throwIfCannotReadUserInRealm(connectionRealm, connectionUserId);
boolean hasAdminWriteRole = hasResourceRoleOrIsSuperUser(ClientRole.WRITE_ADMIN.getValue(), ...);
if (!hasAdminWriteRole && !Objects.equals(getUserId(), connectionUserId))
    throw new ForbiddenException("Can only disconnect own user sessions unless you have role 'write:admin'");

1. Root cause

disconnectUserSession(RequestParams, realm, sessionID) took a realm path parameter but never used it: it called mqttBrokerService.disconnectSession directly after only the endpoint's generic authentication. There was no realm-boundary check and no per-user authorization, so an authenticated user in realm A could disconnect a broker session owned by a user in realm B simply by guessing/knowing the session ID. The fix resolves the session's connection user (getConnectionUserId), loads that user, and enforces: 404 for a missing session, deleted owner, or mismatched realm path; read access to the owner (throwIfCannotReadUserInRealm); and either self-disconnect or the write:admin resource role (or superuser) for disconnecting another user in the same realm.

2. Reproduction environment

serviceimagerole
or-vulncve-2026-104885:vulnreal disconnectUserSession (pre-fix)
or-fixedcve-2026-104885:fixedreal method (vendor fix 51dce18d)
poccve-2026-104885-poc:localstdlib-only Python driver

A Java harness embeds the real disconnectUserSession method verbatim from each tag (prefix + method + suffix, compiled with javac). The infrastructure is stubbed: MQTTBrokerService records disconnect calls and returns the owner user id, IdentityService returns the owner User/realm, and the base authorization methods are configurable (admin/non-admin). Both sides differ only in the upstream method body.

3. Running the environment

./run-lab.sh build     # builds both sides (eclipse-temurin:17-jdk)
./run-lab.sh up        # cve104885lab network: or-vuln / or-fixed
./run-lab.sh sweep
./run-lab.sh down

4. The PoC

poc/poc.py (stdlib only):

  • check — exit 1 when a cross-realm disconnect succeeds, 0 when blocked; 3 no worker, 2 unreachable/indeterminate.
  • exploit — narrated cross-realm chain: authenticated attacker → victim session ID in another realm → forced disconnect.
  • probe — authorization matrix: cross-realm, same-realm other (non-admin), same-realm self, same-realm other (admin).
  • mitigation — commit 51dce18d.

A standalone full-chain exploit ships at exploit/exploit.py:

python3 exploit/exploit.py --host=or-vuln
# exit 1 on confirmed cross-realm disconnect, 0 on a safe target

5. Expected results

scenarioor-vuln (pre-fix)or-fixed (51dce18d)
cross-realmdisconnectednot_found (User session not found in realm)
same-realm other (non-admin)disconnectedforbidden (Can only disconnect own user sessions...)
same-realm selfdisconnected (legit)disconnected (legit)
same-realm other (admin)disconnected (legit)disconnected (legit)

Captured runs: evidence/check-*-run.txt, evidence/exploit-*-run.txt, evidence/probe-*-run.txt, evidence/mitigation-*-run.txt, evidence/exploit-standalone-run.txt, evidence/exploit-standalone-fixed-run.txt, evidence/versions.txt, evidence/0day-sweep.txt.

6. Environment preconditions

  • Podman (or Docker); bounded containers on the isolated cve104885lab network; JDK 17 in the lab images.
  • Real-world exploitation requires an authenticated OpenRemote user in any realm and knowledge of a target session ID in another realm.

7. Additional findings (0-day sweep on the fixed line)

The fixed disconnectUserSession resolves the session owner via getConnectionUserId + identityService, returns 404 on missing session / deleted owner / realm mismatch, requires read access (throwIfCannotReadUserInRealm), and permits only self-disconnect or write:admin/superuser for other same-realm users. Cross-realm and unauthorized same-realm disconnects are blocked; legitimate self/admin disconnects still work. No cross-realm path remains.

8. Repository layout

README.md             this write-up
run-lab.sh            environment driver (build / up / sweep / down)
Makefile              convenience targets
poc/poc.py            the PoC (check / exploit / probe / mitigation)
exploit/exploit.py    standalone full-chain exploit
lab/lab.Dockerfile    builds both sides from upstream method source
lab/vendor/           verbatim disconnectUserSession from pre-fix / fix commits
lab/prefix.java       infrastructure stubs + harness class header
lab/suffix.java       harness main (scenario driver)
lab/gen.py            assembles prefix + method + suffix
lab/service.py        HTTP wrapper (POST /disconnect)
evidence/             captured runs of every mode on both sides
TRACKING.md           excluded (working record)

9. References

  • CVE record — https://www.cve.org/CVERecord?id=CVE-2026-104885
  • GitHub advisory — https://github.com/openremote/core/security/advisories/GHSA-3h6w-xcw3-9xjj
  • Fix commit — https://github.com/openremote/core/commit/51dce18d9e00d671a5e032d942ece186bdada560
Download Tool