Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
工具/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.

查看仓库
3天前尚未审核
分享
内容在请求的语言中不可用。显示英文版本。

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
下载工具

最受欢迎

查看全部 →

发现我们社区最常用的工具。

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 终极 OSINT 工具包:调查图谱、置信度评分、别名家族、地图、时间线和报告。49 个模块、400+ 个站点,无需 API 密钥。

    897
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock 一键执行应用(CVE-2026-43499)

    853
  • 3

    wifit3

    derv82/wifit3

    Wifite 但仅限 USB 且跨平台。

    668
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer是一个开源的特权访问管理(PAM)平台,为DevOps和IT团队提供通过Web浏览器按需安全访问SSH、RDP、Kubernetes、数据库和RemoteApp端点的能力。

    448
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT 平台,可将 Shadowserver 报告导入 MongoDB,并将其重放为交互式地图、分析、发现、公告和高管仪表板。

    417
  • 6

    SafeLine

    chaitin/safeline

    自托管WAF和反向代理,可过滤恶意HTTP流量、阻止SQL注入、XSS和机器人攻击,具备速率限制和动态HTML/JS加密功能。

    400

探索所有工具

浏览我们的工具集合

查看所有工具 →