{"id":"CVE-2026-56120","aliases":["GHSA-h3m5-97jq-qjrf"],"title":"OpenRemote Manager: removeAlarms cross-realm IDOR (bulk delete)","summary":"OpenRemote Manager: removeAlarms cross-realm IDOR (bulk delete)","severity":"critical","cvss":9.6,"cwe":["CWE-639"],"vendor":"openremote","product":"io.openremote:openremote-manager","ecosystem":"maven","affected":["io.openremote:openremote-manager < 1.25.0"],"patched":["io.openremote:openremote-manager 1.25.0"],"published":"2026-06-19","updated":"2026-09-24","sourceUpdated":"2026-09-24T18:24:05Z","source":"GHSA","sourceUrl":"https://github.com/advisories/GHSA-h3m5-97jq-qjrf","references":[{"url":"https://github.com/openremote/openremote/security/advisories/GHSA-h3m5-97jq-qjrf"},{"url":"https://github.com/openremote/openremote/blob/master/manager/src/main/java/org/openremote/manager/alarm/AlarmResourceImpl.java"},{"url":"https://github.com/openremote/openremote/blob/master/manager/src/main/java/org/openremote/manager/alarm/AlarmService.java"},{"url":"https://github.com/openremote/openremote/commit/9fad55e5a448c82772d241d395826e5d6fe1ce2d"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-56120"},{"url":"https://github.com/openremote/openremote/releases/tag/1.25.0"},{"url":"https://www.vulncheck.com/advisories/openremote-idor-via-bulk-alarm-deletion-endpoint"},{"url":"https://github.com/advisories/GHSA-h3m5-97jq-qjrf"}],"tags":["ghsa","maven"],"ingestedAt":"2026-09-24T18:49:36.714Z","slug":"CVE-2026-56120","body":"## Overview\n\n### Summary\nOpenRemote Manager is vulnerable to a cross-tenant Insecure Direct\nObject Reference (IDOR) in the bulk alarm deletion endpoint. An\nauthenticated user in any realm can delete alarms belonging to other\nrealms (tenants) by supplying arbitrary alarm IDs. The vulnerability\nexists because the bulk removeAlarms() method only verifies that the\ncaller's own realm is active and accessible, but never checks whether\nthe targeted alarm IDs belong to the caller's realm before deleting\nthem.\n\nThis allows any user with alarm write permissions in their own realm\nto permanently destroy alarm records — including safety-critical and\nsecurity alerts — belonging to any other tenant on the same OpenRemote\ninstallation.\n\n------------------------------------------\n\n[Additional Information]\nThe singular removeAlarm() method correctly validates that the\ntarget alarm's realm matches the caller's access:\n\n    // CORRECT (singular):\n    SentAlarm alarm = alarmService.getAlarm(alarmId);\n    if (!isRealmActiveAndAccessible(alarm.getRealm())) {\n        throw new ForbiddenException(...);\n    }\n\nThe plural removeAlarms() method is missing this per-alarm realm\ncheck and only validates the caller's own realm — a check that is\ntrivially satisfied for any authenticated user:\n\n```\n // VULNERABLE (plural):\npublic void removeAlarms(RequestParams requestParams, List<Long> alarmIds) {\n    if (!isRealmActiveAndAccessible(getAuthenticatedRealmName())) {  \n        throw new ForbiddenException(...);  // always passes for any auth user\n    }\n    List<SentAlarm> alarms = alarmService.getAlarms(alarmIds);  // no realm filter\n    alarmService.removeAlarms(alarms, alarmIds);                // no realm filter\n}\n\n```\nThe underlying service queries contain no realm scoping:\n\n   ```\n // AlarmService.getAlarms(List<Long>):\n    \"select sa from SentAlarm sa where sa.id in :ids\"\n    // no realm filter\n\n    // AlarmService.removeAlarms():\n    \"delete from SentAlarm sa where sa.id in :ids\"\n    // no realm filter\n\n```\nAlarm IDs are sequential auto-increment Long values (JPA\n@GeneratedValue), making them trivially enumerable.\n\n[Vulnerability Type]\nInsecure Direct Object Reference (IDOR) / Missing Authorization\nCWE-639: Authorization Bypass Through User-Controlled Key\nCWE-862: Missing Authorization\n\n------------------------------------------\n\n[Vendor of Product]\nOpenRemote Inc. (openremote.io)\n\n------------------------------------------\n\n[Affected Product Code Base]\nOpenRemote Manager - current version as of 2026\n(github.com/openremote/openremote)\n\n------------------------------------------\n\n[Affected Component]\norg.openremote.manager.alarm.AlarmResourceImpl#removeAlarms()\norg.openremote.manager.alarm.AlarmService#getAlarms(List<Long>)\norg.openremote.manager.alarm.AlarmService#removeAlarms()\n\nFile: manager/src/main/java/org/openremote/manager/alarm/AlarmResourceImpl.java\nFile: manager/src/main/java/org/openremote/manager/alarm/AlarmService.java\n\n------------------------------------------\n\n[Attack Type]\nRemote (authenticated)\n\n------------------------------------------\n\n[CVE Impact Other]\nCross-tenant permanent destruction of alarm records, including\nsafety-critical and security alerts in IoT environments. Also enables\ncross-tenant alarm enumeration (presence disclosure of alarm IDs\nacross all tenants).\n\n------------------------------------------\n\n[Attack Vectors]\n1. Attacker registers or obtains any low-privilege account in any realm\n   on the target OpenRemote installation (or uses an existing account).\n2. Attacker enumerates alarm IDs belonging to other realms by sending\n   bulk delete requests with sequential IDs (presence confirmed by\n   404 vs 200 response codes).\n3. Attacker issues a single bulk delete request containing IDs of\n   alarms belonging to victim realm(s).\n4. Alarms are permanently deleted with no authorization error.\n\nPoC:\n\n```\nTenant A (attacker) : realm = \"tenant-a\"\n                      user  = attacker@tenant-a.com\n                      role  = WRITE_ALARMS_ROLE\n\nTenant B (victim)   : realm = \"tenant-b\"\n                      alarms with IDs 1174,1173, 1180 exist\n```\n\n\n\n```\nDELETE /api/smartcity/alarm HTTP/2\nContent-Type: application/json\n\n\n[1174,1173, 1180]  /// <- alarm ID \n```\n\n<img width=\"1280\" height=\"404\" alt=\"image\" src=\"https://github.com/user-attachments/assets/ffbebea2-2248-42a0-bb22-7a0dc51c78ce\" />\n\n## Affected packages\n\n- `io.openremote:openremote-manager < 1.25.0`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `io.openremote:openremote-manager 1.25.0`","depth":"midnight","depthScore":53,"depthScoreParts":{"impact":52.8,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}