CVE-2024-47524
JSON

7.2high

LibreNMS has Stored Cross-site Scripting vulnerability in "Device Group" Name

Severity
7.2high CVSS:3.1 by GitHub_M
Exploit likelihood
0.54% (higher than 46% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-fc38-2254-48g7

Description

LibreNMS is an open-source, PHP/MySQL/SNMP-based network monitoring system. 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. This vulnerability is fixed in 24.9.0.

Affected

Product or packageVersionsReported by
librenms librenms24.9.0, before 24.9.0CVE List, NVD
librenms/librenms (Packagist)before 24.9.0GitHub Advisory Database

All scores

GitHub_M7.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
GitHub7.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
GitHubhigh CVSS:4.0CVSS: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
NVD4.8medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-79

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

LibreNMS is an open-source, PHP/MySQL/SNMP-based network monitoring system. 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. This vulnerability is fixed in 24.9.0.

GitHub Advisory Database
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.

NVD (es)

LibreNMS es un sistema de monitoreo de red de código abierto basado en PHP/MySQL/SNMP. El usuario con rol de administrador puede crear un grupo de dispositivos, pero la aplicación no desinfectó correctamente la entrada del usuario en el nombre del grupo de dispositivos. Cuando el usuario ve los detalles del grupo de dispositivos, si el código de Java script está dentro del nombre del grupo de dispositivos, se activará. Esta vulnerabilidad se solucionó en la versión 24.9.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-47524 changed 2024-10-02CVE Terms of Use
GitHub Advisory DatabaseGHSA-fc38-2254-48g7 changed 2024-10-01CC-BY-4.0
NVDCVE-2024-47524 changed 2026-06-17Public domain