Summary
CVE-2026-108109 is an account takeover vulnerability (CWE-307, Improper Restriction of Excessive Authentication Attempts) in the customer password reset flow of PHPNuxBill, an open-source PHP billing system for MikroTik hotspots. An unauthenticated remote attacker who knows a customer’s username can brute-force the 6-digit reset code and take over the account. The CVE record lists a CVSS v4.0 score of 9.3 (Critical).
Technical details
- Root cause: The password reset flow in
system/controllers/forgot.phpaccepts unlimited guesses of the 6-digitotp_code, with no rate limiting, throttling or lockout. The vendor advisory also notes that codes are generated withmt_rand(100000, 999999), which is not a cryptographically secure generator. - Trigger conditions: The attacker needs network access to the PHPNuxBill customer portal and a valid customer username. No authentication or user interaction is required.
- Attack vector: The attacker triggers OTP generation for the victim and then submits guesses against the verification step. A wrong guess does not invalidate the code, which remains valid for 600 seconds. The advisory reports roughly 2.6 ms per request, with about 300 requests completing in around 4 seconds.
- Impact: On a correct guess, the newly set password is returned in the HTTP response body to the unauthenticated requester. The attacker can then log in as the victim, with high impact on confidentiality and integrity of customer accounts.
Affected software
- PHPNuxBill (hotspotbilling/phpnuxbill) through version 2025.3.20
Severity
- CVSS v4.0: 9.3 (Critical) –
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N - CVSS v3.1: 9.1 (Critical) –
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Mitigation and recommended actions
- Immediate: The GitHub security advisory (GHSA-337r-rrrc-r559) listed no patched release at the time of research. A patch commit (
c3c2a92d468af91136d747b75142ed72f10320cc) is referenced in the CVE record. Check the vendor repository for a release that includes it, and upgrade once one is available. - If no patch is available: The advisory recommends the following hardening:
- Replace
mt_rand()withrandom_int(). - Invalidate the reset code after about 5 failed attempts.
- Apply per-IP rate limiting to the verification endpoint.
- Use constant-time comparison for code checks.
- Replace
- Network-level controls such as a WAF rate limit on the forgot-password endpoint, or restricting access to the customer portal, can reduce exposure. These are general measures, not vendor-documented ones.
- Review customer accounts for unexpected password resets.

