From c0b3ae46aaae7ef1adeab9c5a88ea003c94855c3 Mon Sep 17 00:00:00 2001 From: "advisory-database[bot]" <45398580+advisory-database[bot]@users.noreply.github.com> Date: Fri, 15 Nov 2024 15:44:58 +0000 Subject: [PATCH] Publish Advisories GHSA-7663-37rg-c377 GHSA-p66q-ppwr-q5j8 --- .../GHSA-7663-37rg-c377.json | 64 +++++++++++++++++++ .../GHSA-p66q-ppwr-q5j8.json | 64 +++++++++++++++++++ 2 files changed, 128 insertions(+) create mode 100644 advisories/github-reviewed/2024/11/GHSA-7663-37rg-c377/GHSA-7663-37rg-c377.json create mode 100644 advisories/github-reviewed/2024/11/GHSA-p66q-ppwr-q5j8/GHSA-p66q-ppwr-q5j8.json diff --git a/advisories/github-reviewed/2024/11/GHSA-7663-37rg-c377/GHSA-7663-37rg-c377.json b/advisories/github-reviewed/2024/11/GHSA-7663-37rg-c377/GHSA-7663-37rg-c377.json new file mode 100644 index 00000000000..1cf298e49a9 --- /dev/null +++ b/advisories/github-reviewed/2024/11/GHSA-7663-37rg-c377/GHSA-7663-37rg-c377.json @@ -0,0 +1,64 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-7663-37rg-c377", + "modified": "2024-11-15T15:43:20Z", + "published": "2024-11-15T15:43:20Z", + "aliases": [ + "CVE-2024-51494" + ], + "summary": "LibreNMS has a Stored XSS ('Cross-site Scripting') in librenms/app/Http/Controllers/Table/EditPortsController.php", + "details": "### Summary\nA Stored Cross-Site Scripting (XSS) vulnerability in the \"Port Settings\" page allows authenticated users to inject arbitrary JavaScript through the \"descr\" parameter when editing a device's port settings. This vulnerability can lead to the execution of malicious code when the \"Port Settings\" page is visited, potentially compromising the user's session and allowing unauthorized actions.\n\n### Details\nWhen editing a device's port settings, an attacker can inject the following XSS payload into the \"descr\" parameter:\n```lo'\">`\n\nNote: The payload uses the \"15.rs\" domain to bypass some of the length restrictions found during research by pointing to a malicious remote file. The file contains a POC XSS payload, and can contain any arbitrary JS code.\n\nThe root cause of this vulnerability is the application's failure to properly sanitize the \"overwrite_ip\" value before including it in the HTML output. This is evident in the following line of code:\n\nhttps://github.com/librenms/librenms/blob/7f2ae971c4a565b0d7345fa78b4211409f96800a/includes/html/dev-overview-data.inc.php#L42\n\n### PoC\n\n1. Edit a device and use the following payload in the \"overwrite_ip\" parameter: `test'\">`\n2. Save the changes.\n3. Navigate to the device overview page.\n4. Observe that the injected script executes in the \"Assigned IP\" field.\n\n```http\nPOST /device/14/edit HTTP/1.1\nHost: \nContent-Type: application/x-www-form-urlencoded\nCookie: \n\n_token=&editing=yes&display=&overwrite_ip=test'\">&descr=&type=&parent_id%5B%5D=15&Submit=\n```\n\n### Impact\n\nThis vulnerability allows authenticated users to execute arbitrary JavaScript code in the context of other users' sessions. Compromised accounts could lead to unauthorized actions being taken on behalf of the impacted users.", + "severity": [ + { + "type": "CVSS_V3", + "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:L" + } + ], + "affected": [ + { + "package": { + "ecosystem": "Packagist", + "name": "librenms/librenms" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "24.10.0" + } + ] + } + ], + "database_specific": { + "last_known_affected_version_range": "<= 24.9.1" + } + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/librenms/librenms/security/advisories/GHSA-p66q-ppwr-q5j8" + }, + { + "type": "WEB", + "url": "https://github.com/librenms/librenms/commit/4568188ce9097a2e3a3b563311077f2bb82455c0" + }, + { + "type": "PACKAGE", + "url": "https://github.com/librenms/librenms" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-79" + ], + "severity": "HIGH", + "github_reviewed": true, + "github_reviewed_at": "2024-11-15T15:44:27Z", + "nvd_published_at": null + } +} \ No newline at end of file