Skip to main content
Vulnerability Database/CVE-2026-108107

CVE-2026-108107: PHPNuxBill SQL Injection Vulnerability

CVE-2026-108107 is an unauthenticated SQL injection flaw in PHPNuxBill that allows attackers to extract customer records and credentials via time-based blind injection. This post covers technical details, affected versions, impact, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-108107 Overview

CVE-2026-108107 is an unauthenticated SQL injection vulnerability affecting PHPNuxBill through version 2025.3.20. The flaw resides in the radius.php FreeRADIUS REST endpoint, which interpolates untrusted request parameters directly into whereRaw() database queries. Attackers can submit crafted username, macAddr, or nasid parameters to the accounting or authenticate actions and extract customer records and credentials through time-based blind SQL injection. The vulnerability is classified under CWE-89 (Improper Neutralization of Special Elements used in an SQL Command).

Critical Impact

Unauthenticated remote attackers can exfiltrate customer records, hashed credentials, and billing data from PHPNuxBill deployments exposed to the network.

Affected Products

  • PHPNuxBill billing platform versions through 2025.3.20
  • Deployments exposing the radius.php FreeRADIUS REST endpoint
  • Hotspot and ISP billing environments integrating PHPNuxBill with FreeRADIUS

Discovery Timeline

  • 2026-10-09 - CVE-2026-108107 published to NVD
  • 2026-10-09 - Last updated in NVD database

Technical Details for CVE-2026-108107

Vulnerability Analysis

PHPNuxBill exposes a FreeRADIUS REST integration through radius.php. The endpoint accepts JSON parameters forwarded by FreeRADIUS during accounting and authenticate actions. These values are passed into Laravel-style whereRaw() query clauses without parameter binding or sanitization.

Because whereRaw() concatenates the attacker-controlled strings into the SQL statement, request fields such as username, macAddr, and nasid become injection sinks. The endpoint requires no authentication, so any network-adjacent attacker can issue requests directly. Exploitation returns little visible output, but attackers can use time-based blind techniques such as SLEEP() payloads to infer data byte by byte.

Successful exploitation discloses customer billing records, Point-to-Point Protocol (PPP) credentials, hashed passwords, and administrative data stored in the backing MySQL or MariaDB database. The affected endpoint typically holds the full customer dataset used for RADIUS authentication, maximizing data impact.

Root Cause

The root cause is unsafe query construction in radius.php around the FreeRADIUS REST handler. Request parameters flow into whereRaw() without prepared statements or input validation. See the GitHub source snippet and the GHSA-q8ch-r8cv-q579 advisory for the vulnerable code path.

Attack Vector

The attack is unauthenticated and network-reachable. An attacker sends an HTTP POST request to the radius.php endpoint with the accounting or authenticate action and injects SQL payloads in the username, macAddr, or nasid fields. Time-based blind extraction allows data exfiltration without requiring error output. Refer to the VulnCheck advisory for exploitation specifics.

Detection Methods for CVE-2026-108107

Indicators of Compromise

  • HTTP POST requests to /radius.php containing SQL keywords such as SLEEP(, BENCHMARK(, UNION SELECT, or -- inside username, macAddr, or nasid parameters.
  • Abnormally long response times on radius.php requests, consistent with time-based blind SQL injection probing.
  • Unexpected database queries containing whereRaw fragments appearing in MySQL general or slow query logs.
  • RADIUS authentication requests originating from non-NAS source IP addresses.

Detection Strategies

  • Deploy web application firewall (WAF) rules that inspect radius.php request bodies for SQL metacharacters and time-delay functions.
  • Correlate request latency metrics on the FreeRADIUS REST endpoint to flag statistically slow responses indicative of SLEEP()-based extraction.
  • Enable MySQL or MariaDB query logging and alert on whereRaw clauses referencing conditional time functions.

Monitoring Recommendations

  • Monitor outbound traffic from the PHPNuxBill host for unexpected data egress following suspicious radius.php activity.
  • Track volume anomalies in requests to radius.php from unique source IPs, which may indicate automated blind SQL injection tooling.
  • Audit database user privileges used by PHPNuxBill and alert on queries accessing credential or administrative tables outside normal RADIUS flows.

How to Mitigate CVE-2026-108107

Immediate Actions Required

  • Restrict network access to radius.php so only authorized FreeRADIUS servers can reach the endpoint, using firewall or reverse-proxy allow-lists.
  • Rotate all PPP, hotspot, and administrator credentials stored in PHPNuxBill, assuming database contents may be exposed.
  • Review web server and database logs for prior exploitation attempts matching the indicators above.
  • Upgrade PHPNuxBill to a fixed release once published by the maintainers.

Patch Information

At the time of publication, no fixed version is referenced in the enriched NVD data. Track the PHPNuxBill GitHub repository and the GHSA-q8ch-r8cv-q579 security advisory for the upstream patch and corresponding version bump.

Workarounds

  • Place radius.php behind an authenticated reverse proxy or VPN that terminates only trusted FreeRADIUS traffic.
  • Deploy WAF rules that block requests to radius.php containing SQL keywords in username, macAddr, or nasid parameters.
  • Grant the PHPNuxBill database account the minimum privileges required, denying access to unrelated schemas and administrative tables.
  • Disable the FreeRADIUS REST integration until a patched release is deployed if the feature is not in active use.
bash
# Example nftables rule restricting radius.php access to a trusted FreeRADIUS server
nft add rule inet filter input tcp dport 443 ip saddr != 10.0.0.25 drop

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.