https://bz.apache.org/bugzilla/show_bug.cgi?id=70307
Bug ID: 70307
Summary: Add directive to not accept HTTP headers with
underscores in field name
Product: Apache httpd-2
Version: 2.5-HEAD
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: mod_proxy_http
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
As I note on Bug 70306 while it is valid HTTP 1.1 to have underscores in the
HTTP header field name, there are cases where backend application servers
normalize HTTP headers to meta variables following legacy CGI practices so
X-Shib-Header1 and X_Shib_Header1 are functionally equivalent.
This opens up a huge potential attack surface when using mod_proxy_http.
Consider the use case of mod_shib:
https://shibboleth.atlassian.net/wiki/spaces/SP3/pages/2065335257/AttributeAccess
If you're using an application server behind Apache and you have to use
mod_proxy_http, your only way to pass info from mod_shib to the application
server is by HTTP request headers.
Nginx blocks HTTP headers with underscores out of the box. I think that would
break backwards compatibility for Apache, so probably not a good idea for
Apache, but I think there should be a ProxyAllowUnderscoresInHeaders False
could be a good plan for mod_proxy_http
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]