summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-09-11 08:17:15 -0400
committerTim Graham <timograham@gmail.com>2013-09-11 08:18:52 -0400
commit169594f5ae09782ab1909fc3a9939a23507b4901 (patch)
treeed7576860a77a25fd018abef8b5a5b0c67e655da /docs/ref
parent2a7d3030f9703464fb56e29dbe764eb1b2c88359 (diff)
[1.5.x] Fixed #20887 -- Added a warning to GzipMiddleware in light of BREACH.
Thanks EvilDMP for the report and Russell Keith-Magee for the draft text. Backport of da843e7dba from master
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/middleware.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/ref/middleware.txt b/docs/ref/middleware.txt
index 92b69a2fa8..92b496537f 100644
--- a/docs/ref/middleware.txt
+++ b/docs/ref/middleware.txt
@@ -90,6 +90,20 @@ GZip middleware
.. class:: GZipMiddleware
+.. warning::
+
+ Security researchers recently revealed that when compression techniques
+ (including ``GZipMiddleware``) are used on a website, the site becomes
+ exposed to a number of possible attacks. These approaches can be used to
+ compromise, amongst other things, Django's CSRF protection. Before using
+ ``GZipMiddleware`` on your site, you should consider very carefully whether
+ you are subject to these attacks. If you're in *any* doubt about whether
+ you're affected, you should avoid using ``GZipMiddleware``. For more
+ details, see the `the BREACH paper (PDF)`_ and `breachattack.com`_.
+
+ .. _the BREACH paper (PDF): http://breachattack.com/resources/BREACH%20-%20SSL,%20gone%20in%2030%20seconds.pdf
+ .. _breachattack.com: http://breachattack.com
+
Compresses content for browsers that understand GZip compression (all modern
browsers).