ZeroHour

CVE-2024-50352

PoC large

Stored XSS in LibreNMS Services Page Enables Session Hijacking

CVSS 3.1
5.4 medium
EPSS
38%p98
Published
()
Modified
AI analysis

LibreNMS, an open-source PHP/MySQL/SNMP-based network monitoring system, contains a stored cross-site scripting flaw (CWE-79) in the Services section of the Device Overview page. An authenticated user who can add a service to a device can embed malicious JavaScript in the service 'name' parameter, which is stored and then executed whenever other users view that device's overview page. A successful attack runs attacker-controlled JavaScript in the context of another user's session, potentially compromising that account and enabling unauthorized actions with its privileges. All LibreNMS deployments running a version before 24.10.0 are affected. No exploitation is confirmed in the wild and the issue is not in CISA KEV, but a public advisory with a demonstration exists and EPSS assigns an elevated 37.6% probability of exploitation within 30 days.

What to do: Upgrade LibreNMS to 24.10.0 or later, which fixes the issue. Until patched, limit which accounts can add services, and review existing service names in the Services section for injected HTML/JavaScript. Because the payload fires when other users view the Device Overview page, prioritize instances where lower-privileged users can add services and higher-privileged users (e.g., admins) view them.

Affected
librenmsall versions prior to 24.10.0 (fixed in 24.10.0)
Estimated exposure
large≈ tens of thousands of self-hosted monitoring deployments (estimate; no official install telemetry) — LibreNMS is a widely adopted open-source network monitoring platform used by enterprise, ISP, and datacenter teams, and with no vendor telemetry or marketplace install counts, the order of magnitude is inferred from its community adoption…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

LibreNMS is an open-source, PHP/MySQL/SNMP-based network monitoring system. A Stored Cross-Site Scripting (XSS) vulnerability in the "Services" section of the Device Overview page allows authenticated users to inject arbitrary JavaScript through the "name" parameter when adding a service to a device. This vulnerability could result in the execution of malicious code in the context of other users' sessions, potentially compromising their accounts and enabling unauthorized actions. This vulnerability is fixed in 24.10.0.

Vendors
librenms
Products
librenms
Weakness
CWE-79
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

In the news

No ingested article mentions this CVE yet.