GHSA-FC38-2254-48G7

Vulnerability from github – Published: 2024-10-01 20:31 – Updated: 2024-10-01 21:53
VLAI
Summary
LibreNMS has Stored Cross-site Scripting vulnerability in "Device Group" Name
Details

Summary

The application fail to sanitising inputs properly and rendering the code from user input to browser which allow an attacker to execute malicious javascript code.

Details

User with Admin role can create a Device Groups, the application did not properly sanitize the user input in the Device Groups name, when user see the detail of the Device Group, if java script code is inside the name of the Device Groups, its will be trigger.

PoC

  1. Login as an Admin role user. Then go over to "$URL/device-groups"

  2. Create a new Device Group with this payload in their name

<img src="x" onerror="alert(document.cookie)">

image

  1. Go over to the detail page of that Device Groups, in this case "$URL/devices/group=2". Will see a pop-up. image

Impact

Attacker can use this to perform malicious java script code for malicious intent. This would impact all users as anyone can have access to the detail page of the device group.

Show details on source website

{
  "affected": [
    {
      "package": {
        "ecosystem": "Packagist",
        "name": "librenms/librenms"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "24.9.0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2024-47524"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-79"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2024-10-01T20:31:17Z",
    "nvd_published_at": "2024-10-01T21:15:07Z",
    "severity": "HIGH"
  },
  "details": "### Summary\nThe application fail to sanitising inputs properly and rendering the code from user input to browser which allow an attacker to execute malicious javascript code.\n\n### Details\nUser with Admin role can create a Device Groups, the application did not properly sanitize the user input in the Device Groups name, when user see the detail of the Device Group, if java script code is inside the name of the Device Groups, its will be trigger.\n\n### PoC\n1. Login as an Admin role user. Then go over to \"$URL/device-groups\"\n\n2. Create a new Device Group with this payload in their name\n```js\n\u003cimg src=\"x\" onerror=\"alert(document.cookie)\"\u003e\n```\n![image](https://github.com/user-attachments/assets/2764b313-ee65-47e9-ab57-559d75f4575c)\n\n3. Go over to the detail page of that Device Groups, in this case \"$URL/devices/group=2\". Will see a pop-up.\n![image](https://github.com/user-attachments/assets/f743ca74-5dcb-4e72-ac56-dda2b42e2986)\n\n### Impact\nAttacker can use this to perform malicious java script code for malicious intent.\nThis would impact all users as anyone can have access to the detail page of the device group.\n",
  "id": "GHSA-fc38-2254-48g7",
  "modified": "2024-10-01T21:53:10Z",
  "published": "2024-10-01T20:31:17Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/librenms/librenms/security/advisories/GHSA-fc38-2254-48g7"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-47524"
    },
    {
      "type": "WEB",
      "url": "https://github.com/librenms/librenms/commit/d3b51560a8e2343e520d16e9adc72c6951aa91ee"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/librenms/librenms"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    },
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P",
      "type": "CVSS_V4"
    }
  ],
  "summary": "LibreNMS has Stored Cross-site Scripting vulnerability in \"Device Group\" Name"
}


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…