VDB
Sign up
MEDIUM5.3

GHSA-8vm2-c32j-mvfr

Apache NiFi fails to validate proxy host headers when constructing qualified URLs

Quick fix

GHSA-8vm2-c32j-mvfr — org.apache.nifi:nifi-jetty: upgrade to the fixed version with the command below.

# pom.xml: bump <version>2.10.0</version> for org.apache.nifi:nifi-jetty

Details

Apache NiFi 0.0.1 through 2.9.0 support building qualified URLs from one of several HTTP request headers that provide an alternative to the standard Host header without validating the values provided. Apache NiFi 1.6.0 introduced a configurable application property to restrict values provided in the HTTP Host header, but did not apply the validation to alternative Proxy and Forwarded headers. The absence of proxy host header validation allowed a client to instruct Apache NiFi web services to construct invalid qualified URLs for redirection or data references. Upgrading to Apache NiFi 2.10.0 is the recommended mitigation, which implements validation for the X-ProxyHost and X-Forwarded-Host HTTP request headers based on the nifi.web.proxy.host property. Enabling header validation requires configuring the application with HTTPS. Reverse proxy servers in front of Apache NiFi are responsible for filtering input request headers and providing allowed values to the application.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.apache.nifi:nifi-jetty
Introduced in: 0Fixed in: 2.10.0
Fix# pom.xml: bump <version>2.10.0</version> for org.apache.nifi:nifi-jetty

References