5.3medium
NukeViet: Login Lockout Bypass via Untrusted Forwarded-IP Headers
- Severity
- 5.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.74% (higher than 55% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-ccf2-6mf6-j78j
Description
NukeViet CMS is a multi Content Management System. In 4.6.00, an unauthenticated attacker can rotate X-Forwarded-For because vendor/vinades/nukeviet/Core/Ips.php accepts forwarded client-IP headers without first confirming that REMOTE_ADDR is a trusted proxy. The resulting NV_CLIENT_IP keys the administrator login blocker in includes/core/admin_login.php; changing only the header value bypasses that lockout and permits effectively unlimited password guesses. The same spoofable address is also consumed by the user login blocker in modules/users/funcs/login.php, IP restrictions, bans, flood controls, and security logs, but those additional code-level effects were not dynamically demonstrated. This issue is fixed in version 4.6.01.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| nukeviet nukeviet | >= 4.6.00, < 4.6.01 | CVE List |
| nukeviet/nukeviet (Packagist) | from 4.6.00 before 4.6.01 | GitHub Advisory Database |
All scores
| GitHub_M | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
NukeViet CMS is a multi Content Management System. In 4.6.00, an unauthenticated attacker can rotate X-Forwarded-For because vendor/vinades/nukeviet/Core/Ips.php accepts forwarded client-IP headers without first confirming that REMOTE_ADDR is a trusted proxy. The resulting NV_CLIENT_IP keys the administrator login blocker in includes/core/admin_login.php; changing only the header value bypasses that lockout and permits effectively unlimited password guesses. The same spoofable address is also consumed by the user login blocker in modules/users/funcs/login.php, IP restrictions, bans, flood controls, and security logs, but those additional code-level effects were not dynamically demonstrated. This issue is fixed in version 4.6.01.
GitHub Advisory Database
Summary
NukeViet 4.6.00 unconditionally trusts client-controlled proxy headers, including X-Forwarded-For, when determining the client IP. It does not verify that the request came from a trusted reverse proxy.
An unauthenticated attacker can therefore rotate the header to bypass the built-in login-attempt blocker. The same spoofable IP is also used by admin and API IP restrictions, IP bans, flood protection, and security logging.
Affected Version
- Version: NukeViet 4.6.00
- Commit:
f47de5cd6577d0d49449754be9bafe9081be4981 - Authentication: Not required
Root Cause
Ips.php accepts HTTP_CLIENT_IP, HTTP_X_FORWARDED_FOR, and similar headers before falling back to the connection's REMOTE_ADDR. There is no trusted-proxy check.
NV_CLIENT_IP is then used as the key for the login blocker in admin_login.php and modules/users/funcs/login.php.
Reproduction
From WSL, place the supplied Bash PoC in the current directory and run:
bash ./nukeviet_xff_lockout_poc.sh \
http://localhost/admin/
The script uses a randomly generated nonexistent username. It does not attempt to access a real account.
Verified Result
The following result was reproduced from WSL against NukeViet 4.6.00. With X-Forwarded-For: 203.0.113.203, the installation returned:
attempt=1 blocked=false incorrect=true status=200
attempt=2 blocked=false incorrect=true status=200
attempt=3 blocked=false incorrect=true status=200
attempt=4 blocked=false incorrect=true status=200
attempt=5 blocked=false incorrect=true status=200
attempt=6 blocked=true incorrect=false status=200
Changing only the header to X-Forwarded-For: 203.0.113.204 immediately restored login attempts:
rotated_ip=203.0.113.204 blocked=false incorrect=true status=200
xff
The TCP source and target were unchanged. This confirms that an unauthenticated attacker can evade the lockout by supplying a new header value for every attempt.
Impact
- Verified impact: bypass of administrator login lockout, enabling effectively unlimited password-guessing attempts from one source by rotating
X-Forwarded-For. - Additional code-level exposure: the spoofable IP is also consumed by user-login controls, IP restrictions, bans, flood controls, and security logging. These additional consequences were not dynamically demonstrated by this PoC.
This is a product-level trust issue, not merely a missing proxy configuration option: NukeViet trusts the headers even when the request is received directly.
Remediation
- Use
REMOTE_ADDRby default. - Accept forwarded client-IP headers only when
REMOTE_ADDRbelongs to an explicitly configured trusted proxy. - Parse proxy chains from right to left and select the first untrusted address.
- Ensure rate limits and security logs retain the socket peer address in addition to any validated forwarded address.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-94566 changed 2026-11-30 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-ccf2-6mf6-j78j changed 2026-11-30 | CC-BY-4.0 |
| NVD | CVE-2026-94566 changed 2026-11-20 | Public domain |