CVE-2024-49758: LibreNMS has a stored XSS in ExamplePlugin with Device's Notes

Published Nov 15, 2024
·
Updated

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.

!image

2. Add the payload <img src="x" onerror="alert(document.cookie)"> into the device Notes

!image

3. Once visit the Overview of the Device, a pop-up will show up.

!image

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.

Other sources

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

MITRE

Affected Software

2 affected componentsFixes available
composer/librenms/librenms<=24.9.0
24.10.0
librenms librenms<24.10.0

Event History

Nov 15, 2024
Advisory Published
via GitHub·03:17 PM
CVE Published
via MITRE·03:17 PM
Data Sourced
via MITRE·03:17 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-49758?

The severity of CVE-2024-49758 is classified as high due to its potential for remote code execution via unsanitized input.

2

How do I fix CVE-2024-49758?

To fix CVE-2024-49758, update LibreNMS to version 24.10.0 or later, which contains the necessary security patches.

3

Who is affected by CVE-2024-49758?

CVE-2024-49758 affects LibreNMS versions prior to 24.10.0 with the vulnerability arising from improper input sanitization.

4

What type of vulnerability is CVE-2024-49758?

CVE-2024-49758 is classified as a cross-site scripting (XSS) vulnerability that allows execution of malicious JavaScript code.

5

Can CVE-2024-49758 lead to data compromise?

Yes, CVE-2024-49758 can lead to data compromise by allowing attackers to execute unauthorized scripts within user sessions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203