https://bz.apache.org/bugzilla/show_bug.cgi?id=70306
Bug ID: 70306
Summary: Add option to unset headers containing underscores
Product: Apache httpd-2
Version: 2.5-HEAD
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: mod_headers
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
As I note on https://github.com/miyagawa/Starman/issues/157, Apache httpd will
accept HTTP headers that contain underscores in the field name. While this is
syntactically correct HTTP, it's a potential security risk.
For instance, if you're using mod_shib with mod_proxy, and you use mod_headers
to unset X-Shib-Header1, you're still vulnerable to an end user sending
X_Shib_Header1 through Apache and then the backend application converting to
HTTP_X_SHIB_HEADER1 by following the legacy CGI method of normalising headers
to "meta variables".
Nginx blocks HTTP headers with underscores in the field name, but I think an
option for Apache would be to have either mod_requests optionally normalize
HTTP headers so that "set" and "unset" work more as expected, or to optionally
block all HTTP headers with underscores, but have it to be opt-in so as to
maintain backwards compatibility.
--
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]