Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-30480 — Proof-of-concept for CVE-2026-30480, a Local File Inclusion vulnerability in LibreNMS NFSen module, demonstrating path traversal to include arbitrary PHP files and impact analysis. | Kitploit
Tools/GitHubGitHub/parlakbarann/cve-2026-30480
Vulnerability AnalysisExploitationWeb Application ExploitationPapers & ResearchLearning & Education
GitHubparlakbarann/cve-2026-30480

CVE-2026-30480

Proof-of-concept for CVE-2026-30480, a Local File Inclusion vulnerability in LibreNMS NFSen module, demonstrating path traversal to include arbitrary PHP files and impact analysis.

View Repository
337 months agoNot yet reviewed
Share

CVE-2026-30480: LibreNMS Local File Inclusion (LFI) via Path Traversal

Overview

A Local File Inclusion (LFI) vulnerability exists in the NFSen module of LibreNMS. An authenticated attacker can exploit path traversal sequences to include arbitrary PHP files from the server filesystem.

FieldValue
ProductLibreNMS
VendorLibreNMS Project
Vulnerability TypeLocal File Inclusion (LFI) / Path Traversal
CWECWE-98, CWE-22
CVSS Score7.5 - 8.5 (High)
Authentication RequiredYes
Discovery Date2026-02-01

Affected Component

File: includes/html/pages/device/nfsen.inc.php
Lines: 46-48

if (is_file('includes/html/pages/device/nfsen/' . $vars['nfsen'] . '.inc.php')) {
    include 'includes/html/pages/device/nfsen/' . $vars['nfsen'] . '.inc.php';
} else {
    include 'includes/html/pages/device/nfsen/general.inc.php';
}

Vulnerability Description

The $vars['nfsen'] parameter is derived from user input ($_GET/$_POST) and is directly concatenated into the include() statement without proper sanitization. The only validation performed is an is_file() check, which does not prevent path traversal sequences.

Root Cause

  1. User input flows directly into file path construction
  2. No sanitization of path traversal characters (../)
  3. No whitelist validation of allowed values
  4. is_file() only checks existence, not path safety

Proof of Concept

Prerequisites

  • Authenticated LibreNMS user
  • Access to at least one device with Netflow/NFSen tab

Steps to Reproduce

  1. Login to LibreNMS as any authenticated user

  2. Navigate to any device's Netflow tab:

    https://[TARGET]/device/[DEVICE_ID]/tab=netflow
    
  3. Append the malicious parameter:

    https://[TARGET]/device/[DEVICE_ID]/tab=netflow?nfsen=..%2f..%2fapi-access
    
  4. Observe that the API Access page content is loaded instead of NFSen content

Expected vs Actual Behavior

ScenarioExpectedActual
Normal requestNFSen General page (Flows, Packets, Traffic)NFSen General page
Malicious requestNFSen General pageAPI Access page content

Impact

Impact TypeDescription
Information DisclosureInclude and execute arbitrary .inc.php files
Privilege EscalationAccess admin-only pages as low-privileged user
Potential RCEIf attacker can control content of any .inc.php file

Screenshots

0. LibreNMS Version

URL: https://[REDACTED]/about

Version: 22.11.0-23-gd091788f2 (Thu Dec 15 2022)

Description: LibreNMS version information showing the tested version. This version is after the CVE-2021-44278 patch (v21.12.0), confirming this is a new, unpatched vulnerability.

Version


1. Normal NFSen Page

URL: https://[REDACTED]/device/114/tab=netflow

Description: Normal NFSen/Netflow page showing Flows, Packets, and Traffic sections. This is the expected behavior without exploitation.

Normal


2. Exploited - API Access Page (Admin User)

URL: https://[REDACTED]/device/114/tab=netflow?nfsen=..%2f..%2fapi-access

Payload: ..%2f..%2fapi-access (URL encoded path traversal)

Description: When the malicious payload is injected, the API Access page content is loaded instead of NFSen content. This demonstrates successful Local File Inclusion - the api-access.inc.php file was included instead of general.inc.php.

Exploit Admin


3. Exploited - Permission Error (Global Read User)

URL: https://[REDACTED]/device/114/tab=netflow?nfsen=..%2f..%2fapi-access

Payload: ..%2f..%2fapi-access (URL encoded path traversal)

Description: Same exploit attempted with a lower-privileged user (Global Read). The page shows "You have insufficient permissions to view this page" error. This confirms:

  1. The LFI vulnerability worked (file was included)
  2. The target file's internal permission check was triggered
  3. Different content is displayed compared to normal NFSen page

Exploit User

Affected Versions

  • LibreNMS versions containing the NFSen module
  • Tested on: 22.11.0-23-gd091788f2 (Dec 15, 2022)
  • Vulnerability exists in current master branch
  • Note: This is a different vulnerability from CVE-2021-44278 (which affected showconfig.inc.php and was patched in v21.12.0). This vulnerability affects nfsen.inc.php and remains unpatched.

Remediation

Recommended Fix

Implement whitelist-based validation:

$allowed_pages = ['general', 'stats', 'channel'];

if (in_array($vars['nfsen'], $allowed_pages, true)) {
    include 'includes/html/pages/device/nfsen/' . $vars['nfsen'] . '.inc.php';
} else {
    include 'includes/html/pages/device/nfsen/general.inc.php';
}

Alternative Fix

Use basename() to strip path traversal:

$nfsen_page = basename($vars['nfsen']);
if (is_file('includes/html/pages/device/nfsen/' . $nfsen_page . '.inc.php')) {
    include 'includes/html/pages/device/nfsen/' . $nfsen_page . '.inc.php';
}

Timeline

DateAction
2026-02-01Vulnerability discovered
2026-04-14CVE published, vendor notified
2026-04-14Public disclosure

References

  • CWE-98: Improper Control of Filename for Include/Require Statement
  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory
  • OWASP Path Traversal
  • LibreNMS Official Website

Disclaimer

This vulnerability report is provided for educational and authorized security research purposes only. The researcher followed responsible disclosure practices by notifying the vendor before public disclosure.

Credit

Discovered by: Ömer Baran Parlak
Contact: [email protected]
GitHub: parlakbarann

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    772
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    505
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    420
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    345
  • 5

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    260
  • 6

    antifox

    antifox-ai/antifox

    AI multi-agent autonomous penetration testing platform that runs recon, attack-surface discovery, exploitation validation and evidence-backed report delivery.

    251

Explore all tools

Browse our collection of tools

View all tools →