ghsa-fc38-2254-48g7
Vulnerability from github
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
-
Login as an Admin role user. Then go over to "$URL/device-groups"
-
Create a new Device Group with this payload in their name
js <img src="x" onerror="alert(document.cookie)">
-
Go over to the detail page of that Device Groups, in this case "$URL/devices/group=2". Will see a pop-up.
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.
{ "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\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\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" }
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.