NukeViet: Pre-authentication SSRF via X-Forwarded-Host (CVE-2026-55372)
NukeViet before version 4.6.00 contains a pre-authentication Server-Side Request Forgery (SSRF) vulnerability via the X-Forwarded-Host and X-Forwarded-Proto HTTP headers. An attacker can send a specially crafted POST request with the __serverInfoUpdate=1 parameter and spoof these headers to cause the server to issue a blind HEAD request to an attacker-controlled host. The vulnerability arises because the server uses these headers without proper validation to build a URL for a cURL request early in processing, before authentication. The SSRF is limited to a fixed request path and does not allow direct data exfiltration or internal remote code execution. However, it enables unauthenticated internal host and port discovery and poisoning of cached server headers.
AI Analysis
Technical Summary
The vulnerability exists in NukeViet's includes/ini.php and vendor/vinades/nukeviet/Core/Server.php components where the server_info_update() function issues a cURL request using the X-Forwarded-Host and X-Forwarded-Proto headers without validation. The standardizeHost() function's regex-based port stripping can be bypassed by appending a slash, allowing attacker-controlled host:port values to reach the cURL sink. The __serverInfoUpdate=1 POST request triggers this behavior before authentication. The SSRF is blind and restricted to a fixed HEAD request path, preventing direct data exfiltration or cloud metadata access. The issue is mitigated by validating and normalizing forwarded headers using parse_url(), restricting X-Forwarded-Proto to http/https, validating X-Forwarded-Port numerically, and enforcing host checks against configured domains (my_domains).
Potential Impact
An unauthenticated attacker can cause the server to make arbitrary HTTP HEAD requests to attacker-chosen internal or external hosts and ports. This enables internal host and port discovery and poisoning of cached server response headers, which may affect site behavior. The SSRF is blind and limited to a fixed request path, so it does not allow direct data exfiltration, cloud metadata access, or remote code execution. The overall impact is rated high due to the unauthenticated nature and potential for internal network reconnaissance and cache poisoning.
Mitigation Recommendations
A fix is available in NukeViet version 4.6.00 and later, which validates and normalizes the X-Forwarded-Host, X-Forwarded-Proto, and X-Forwarded-Port headers, and enforces host checks against the configured my_domains list before processing the server_info_update() request. Until upgrading, administrators should configure reverse proxies or web servers to strip or override client-supplied X-Forwarded-Host, X-Forwarded-Proto, and X-Forwarded-Port headers and ensure my_domains is correctly configured with the site's canonical domains.
NukeViet: Pre-authentication SSRF via X-Forwarded-Host (CVE-2026-55372)
Description
NukeViet before version 4.6.00 contains a pre-authentication Server-Side Request Forgery (SSRF) vulnerability via the X-Forwarded-Host and X-Forwarded-Proto HTTP headers. An attacker can send a specially crafted POST request with the __serverInfoUpdate=1 parameter and spoof these headers to cause the server to issue a blind HEAD request to an attacker-controlled host. The vulnerability arises because the server uses these headers without proper validation to build a URL for a cURL request early in processing, before authentication. The SSRF is limited to a fixed request path and does not allow direct data exfiltration or internal remote code execution. However, it enables unauthenticated internal host and port discovery and poisoning of cached server headers.
CVSS v3.1
Score 7.2high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in NukeViet's includes/ini.php and vendor/vinades/nukeviet/Core/Server.php components where the server_info_update() function issues a cURL request using the X-Forwarded-Host and X-Forwarded-Proto headers without validation. The standardizeHost() function's regex-based port stripping can be bypassed by appending a slash, allowing attacker-controlled host:port values to reach the cURL sink. The __serverInfoUpdate=1 POST request triggers this behavior before authentication. The SSRF is blind and restricted to a fixed HEAD request path, preventing direct data exfiltration or cloud metadata access. The issue is mitigated by validating and normalizing forwarded headers using parse_url(), restricting X-Forwarded-Proto to http/https, validating X-Forwarded-Port numerically, and enforcing host checks against configured domains (my_domains).
Potential Impact
An unauthenticated attacker can cause the server to make arbitrary HTTP HEAD requests to attacker-chosen internal or external hosts and ports. This enables internal host and port discovery and poisoning of cached server response headers, which may affect site behavior. The SSRF is blind and limited to a fixed request path, so it does not allow direct data exfiltration, cloud metadata access, or remote code execution. The overall impact is rated high due to the unauthenticated nature and potential for internal network reconnaissance and cache poisoning.
Mitigation Recommendations
A fix is available in NukeViet version 4.6.00 and later, which validates and normalizes the X-Forwarded-Host, X-Forwarded-Proto, and X-Forwarded-Port headers, and enforces host checks against the configured my_domains list before processing the server_info_update() request. Until upgrading, administrators should configure reverse proxies or web servers to strip or override client-supplied X-Forwarded-Host, X-Forwarded-Proto, and X-Forwarded-Port headers and ensure my_domains is correctly configured with the site's canonical domains.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-4chg-4752-w88r
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-55372"]
- Ecosystems
- ["Packagist"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a55ffb668715ace432fac1c
Added to database: 07/14/2026, 09:21:58 UTC
Last enriched: 07/14/2026, 09:58:25 UTC
Last updated: 07/31/2026, 12:27:30 UTC
Views: 11
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.