Miggo Logo

CVE-2017-12632: Apache NiFi host header poisoning issue

7.5

CVSS Score
3.0

Basic Information

EPSS Score
0.60759%
Published
5/14/2022
Updated
1/30/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.apache.nifi:nifimaven>= 1.0.0, < 1.5.01.5.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability (CWE-20) explicitly involves improper Host header validation. The CVE description and NiFi security notes indicate the fix added header sanitization/whitelist checks. Key functions would be those handling proxy headers (X-Forwarded-Host/X-ProxyContextPath) and raw Host header retrieval, as these are the entry points for the malicious input. WebUtils.getProxiedHosts() is a known utility for proxy header processing in NiFi, and JettyServer's request handling would directly access headers. These functions would appear in runtime traces when processing HTTP requests with malicious Host headers, making them primary candidates for detection.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

* m*li*ious *ost *****r in *n in*omin* *TTP r*qu*st *oul* **us* Ni*i to lo** r*sour**s *rom *n *xt*rn*l s*rv*r. T** *ix to s*nitiz* *ost *****rs *n* *omp*r* to * *ontroll** w*it*list w*s *ppli** on t** *p**** Ni*i *.*.* r*l**s*. Us*rs runnin* * prior

Reasoning

T** vuln*r**ility (*W*-**) *xpli*itly involv*s improp*r *ost *****r v*li**tion. T** *V* **s*ription *n* Ni*i s**urity not*s in*i**t* t** *ix ***** *****r s*nitiz*tion/w*it*list ****ks. K*y *un*tions woul* ** t*os* **n*lin* proxy *****rs (X-*orw*r***-