GitHub Advisoryadvisory · Packagist
GHSA-c86q-rj37-8f85 LibreNMS has a stored XSS in ExamplePlugin with Device's Notes
MEDIUM
Official page ↗
- Aliases
- CVE-2024-49758
- Ecosystem
- Packagist
- Packages
- librenms/librenms
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-79
- Reviewed
- 2024-11-15
Affected packages
• Packagist librenms/librenms: < 24.10.0 → fixed in 24.10.0
Description
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 add Notes to a device, the application did not properly sanitize the user input, when the ExamplePlugin enable, if java script code is inside the device's Notes, its will be trigger.
PoC
1. As an admin user, enable the ExamplePlugin.
2. Add the payload `` into the device Notes
3. Once visit the Overview of the Device, a pop-up will show up.
Impact
It could allow authenticated users to execute arbitrary JavaScript code in the context of other users' sessions.
Impacted users could have their accounts compromised, enabling the attacker to perform unauthorized actions on their behalf.
Related
Alias · CVE (1)
- CVE-2024-49758 LibreNMS is an open-source, PHP/MySQL/SNMP-based network monitoring system. vulnerability
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness