summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-08-25 19:53:21 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-08-25 19:53:21 -0300
commitff8478731d6a93cd22d06a1c4769bdc095fedaf0 (patch)
tree01b4e5f6be8ff09ca132d67e8338b2c72ce6b9b8 /templates
parent628f80926a4187d76a8dddb0c0a1d37305706ca2 (diff)
downloadpuppet-apache-ff8478731d6a93cd22d06a1c4769bdc095fedaf0.tar.gz
puppet-apache-ff8478731d6a93cd22d06a1c4769bdc095fedaf0.tar.bz2
Mitigation for CVE-2011-3192
Diffstat (limited to 'templates')
-rw-r--r--templates/apache2.conf.erb7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/apache2.conf.erb b/templates/apache2.conf.erb
index ee28bdc..e387ea8 100644
--- a/templates/apache2.conf.erb
+++ b/templates/apache2.conf.erb
@@ -89,6 +89,13 @@ MaxKeepAliveRequests 100
#
KeepAliveTimeout 15
+# Drop the Range header when more than 5 ranges.
+# CVE-2011-3192
+# See http://mail-archives.apache.org/mod_mbox/httpd-announce/201108.mbox/browser
+# TODO: remove this when a fix is released
+SetEnvIf Range (,.*?){5,} bad-range=1
+RequestHeader unset Range env=bad-range
+
##
## Server-Pool Size Regulation (MPM specific)
##