From: Joe Orton Date: Wed, 5 Oct 2011 15:57:15 +0000 (+0000) Subject: Merge r1179272, r1179266 from trunk: X-Git-Tag: 2.2.22~126 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae1b8d2e66ea2e4fd762d6257183023fa88f4eab;p=thirdparty%2Fapache%2Fhttpd.git Merge r1179272, r1179266 from trunk: * docs/manual: add note here in light of CVE-2011-3368 - add a security warning, and tweak the example, in light of CVE-2011-3368 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1179283 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_proxy.html.en b/docs/manual/mod/mod_proxy.html.en index 66353fe4bd8..e336cdda501 100644 --- a/docs/manual/mod/mod_proxy.html.en +++ b/docs/manual/mod/mod_proxy.html.en @@ -1296,6 +1296,15 @@ through RewriteRule directive with the [P] flag.

+
+

Security Warning

+

Take care when constructing the target URL of the rule, considering + the security impact from allowing the client influence over the set of + URLs to which your server will act as a proxy. Ensure that the scheme + and hostname part of the URL is either fixed, or does not allow the + client undue influence.

+
+
top

ProxyPassReverse Directive

diff --git a/docs/manual/mod/mod_proxy.xml b/docs/manual/mod/mod_proxy.xml index 81a308c81ae..66862a8cc59 100644 --- a/docs/manual/mod/mod_proxy.xml +++ b/docs/manual/mod/mod_proxy.xml @@ -1122,6 +1122,15 @@ expressions

If you require a more flexible reverse-proxy configuration, see the RewriteRule directive with the [P] flag.

+ + + Security Warning +

Take care when constructing the target URL of the rule, considering + the security impact from allowing the client influence over the set of + URLs to which your server will act as a proxy. Ensure that the scheme + and hostname part of the URL is either fixed, or does not allow the + client undue influence.

+
diff --git a/docs/manual/rewrite/flags.html.en b/docs/manual/rewrite/flags.html.en index 0e16b2d1c0b..01c7a790797 100644 --- a/docs/manual/rewrite/flags.html.en +++ b/docs/manual/rewrite/flags.html.en @@ -459,7 +459,7 @@ example, if you wanted all image requests to be handled by a back-end image server, you might do something like the following:

-RewriteRule (.*)\.(jpg|gif|png) http://images.example.com$1.$2 [P] +RewriteRule /(.*)\.(jpg|gif|png) http://images.example.com/$1.$2 [P]

Use of the [P] flag implies [L] - that is, the request is immediately @@ -474,6 +474,15 @@ error from the proxy module. Use this flag to achieve a more powerful implementation of the ProxyPass directive, to map remote content into the namespace of the local server.

+
+

Security Warning

+

Take care when constructing the target URL of the rule, considering +the security impact from allowing the client influence over the set of +URLs to which your server will act as a proxy. Ensure that the scheme +and hostname part of the URL is either fixed, or does not allow the +client undue influence.

+
+

Note: mod_proxy must be enabled in order to use this flag.

diff --git a/docs/manual/rewrite/flags.xml b/docs/manual/rewrite/flags.xml index 97e288b445e..103a9100a75 100644 --- a/docs/manual/rewrite/flags.xml +++ b/docs/manual/rewrite/flags.xml @@ -459,7 +459,7 @@ example, if you wanted all image requests to be handled by a back-end image server, you might do something like the following:

-RewriteRule (.*)\.(jpg|gif|png) http://images.example.com$1.$2 [P] +RewriteRule /(.*)\.(jpg|gif|png) http://images.example.com/$1.$2 [P]

Use of the [P] flag implies [L] - that is, the request is immediately @@ -475,6 +475,15 @@ more powerful implementation of the ProxyPass directive, to map remote content into the namespace of the local server.

+ +Security Warning +

Take care when constructing the target URL of the rule, considering +the security impact from allowing the client influence over the set of +URLs to which your server will act as a proxy. Ensure that the scheme +and hostname part of the URL is either fixed, or does not allow the +client undue influence.

+
+

Note: mod_proxy must be enabled in order to use this flag.