GHSA-H3M5-97JQ-QJRF

Vulnerability from github – Published: 2026-06-19 21:43 – Updated: 2026-07-02 20:12
VLAI
Summary
OpenRemote Manager: removeAlarms cross-realm IDOR (bulk delete)
Details

Summary

OpenRemote Manager is vulnerable to a cross-tenant Insecure Direct Object Reference (IDOR) in the bulk alarm deletion endpoint. An authenticated user in any realm can delete alarms belonging to other realms (tenants) by supplying arbitrary alarm IDs. The vulnerability exists because the bulk removeAlarms() method only verifies that the caller's own realm is active and accessible, but never checks whether the targeted alarm IDs belong to the caller's realm before deleting them.

This allows any user with alarm write permissions in their own realm to permanently destroy alarm records — including safety-critical and security alerts — belonging to any other tenant on the same OpenRemote installation.


[Additional Information] The singular removeAlarm() method correctly validates that the target alarm's realm matches the caller's access:

// CORRECT (singular):
SentAlarm alarm = alarmService.getAlarm(alarmId);
if (!isRealmActiveAndAccessible(alarm.getRealm())) {
    throw new ForbiddenException(...);
}

The plural removeAlarms() method is missing this per-alarm realm check and only validates the caller's own realm — a check that is trivially satisfied for any authenticated user:

 // VULNERABLE (plural):
public void removeAlarms(RequestParams requestParams, List<Long> alarmIds) {
    if (!isRealmActiveAndAccessible(getAuthenticatedRealmName())) {  
        throw new ForbiddenException(...);  // always passes for any auth user
    }
    List<SentAlarm> alarms = alarmService.getAlarms(alarmIds);  // no realm filter
    alarmService.removeAlarms(alarms, alarmIds);                // no realm filter
}

The underlying service queries contain no realm scoping:

``` // AlarmService.getAlarms(List): "select sa from SentAlarm sa where sa.id in :ids" // no realm filter

// AlarmService.removeAlarms():
"delete from SentAlarm sa where sa.id in :ids"
// no realm filter
Alarm IDs are sequential auto-increment Long values (JPA
@GeneratedValue), making them trivially enumerable.

[Vulnerability Type]
Insecure Direct Object Reference (IDOR) / Missing Authorization
CWE-639: Authorization Bypass Through User-Controlled Key
CWE-862: Missing Authorization

------------------------------------------

[Vendor of Product]
OpenRemote Inc. (openremote.io)

------------------------------------------

[Affected Product Code Base]
OpenRemote Manager - current version as of 2026
(github.com/openremote/openremote)

------------------------------------------

[Affected Component]
org.openremote.manager.alarm.AlarmResourceImpl#removeAlarms()
org.openremote.manager.alarm.AlarmService#getAlarms(List<Long>)
org.openremote.manager.alarm.AlarmService#removeAlarms()

File: manager/src/main/java/org/openremote/manager/alarm/AlarmResourceImpl.java
File: manager/src/main/java/org/openremote/manager/alarm/AlarmService.java

------------------------------------------

[Attack Type]
Remote (authenticated)

------------------------------------------

[CVE Impact Other]
Cross-tenant permanent destruction of alarm records, including
safety-critical and security alerts in IoT environments. Also enables
cross-tenant alarm enumeration (presence disclosure of alarm IDs
across all tenants).

------------------------------------------

[Attack Vectors]
1. Attacker registers or obtains any low-privilege account in any realm
   on the target OpenRemote installation (or uses an existing account).
2. Attacker enumerates alarm IDs belonging to other realms by sending
   bulk delete requests with sequential IDs (presence confirmed by
   404 vs 200 response codes).
3. Attacker issues a single bulk delete request containing IDs of
   alarms belonging to victim realm(s).
4. Alarms are permanently deleted with no authorization error.

PoC:

Tenant A (attacker) : realm = "tenant-a" user = attacker@tenant-a.com role = WRITE_ALARMS_ROLE

Tenant B (victim) : realm = "tenant-b" alarms with IDs 1174,1173, 1180 exist




DELETE /api/smartcity/alarm HTTP/2 Content-Type: application/json

[1174,1173, 1180] /// <- alarm ID ```

image

Show details on source website

{
  "affected": [
    {
      "package": {
        "ecosystem": "Maven",
        "name": "io.openremote:openremote-manager"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.25.0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2026-57168"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-639"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-06-19T21:43:17Z",
    "nvd_published_at": null,
    "severity": "CRITICAL"
  },
  "details": "### 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\u0027s own realm is active and accessible, but never checks whether\nthe targeted alarm IDs belong to the caller\u0027s realm before deleting\nthem.\n\nThis allows any user with alarm write permissions in their own realm\nto permanently destroy alarm records \u2014 including safety-critical and\nsecurity alerts \u2014 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\u0027s realm matches the caller\u0027s 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\u0027s own realm \u2014 a check that is\ntrivially satisfied for any authenticated user:\n\n```\n // VULNERABLE (plural):\npublic void removeAlarms(RequestParams requestParams, List\u003cLong\u003e alarmIds) {\n    if (!isRealmActiveAndAccessible(getAuthenticatedRealmName())) {  \n        throw new ForbiddenException(...);  // always passes for any auth user\n    }\n    List\u003cSentAlarm\u003e 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\u003cLong\u003e):\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\u003cLong\u003e)\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]  /// \u003c- alarm ID \n```\n\n\u003cimg width=\"1280\" height=\"404\" alt=\"image\" src=\"https://github.com/user-attachments/assets/ffbebea2-2248-42a0-bb22-7a0dc51c78ce\" /\u003e",
  "id": "GHSA-h3m5-97jq-qjrf",
  "modified": "2026-07-02T20:12:17Z",
  "published": "2026-06-19T21:43:17Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/openremote/openremote/security/advisories/GHSA-h3m5-97jq-qjrf"
    },
    {
      "type": "WEB",
      "url": "https://github.com/openremote/openremote/commit/9fad55e5a448c82772d241d395826e5d6fe1ce2d"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/openremote/openremote"
    },
    {
      "type": "WEB",
      "url": "https://github.com/openremote/openremote/blob/master/manager/src/main/java/org/openremote/manager/alarm/AlarmResourceImpl.java"
    },
    {
      "type": "WEB",
      "url": "https://github.com/openremote/openremote/blob/master/manager/src/main/java/org/openremote/manager/alarm/AlarmService.java"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "OpenRemote Manager: removeAlarms cross-realm IDOR (bulk delete)"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…