]> granicus.if.org Git - apache/commitdiff
Change default for SSLCompression to off, as compression
authorStefan Fritsch <sf@apache.org>
Sun, 21 Oct 2012 19:15:43 +0000 (19:15 +0000)
committerStefan Fritsch <sf@apache.org>
Sun, 21 Oct 2012 19:15:43 +0000 (19:15 +0000)
causes security issues in most setups

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1400700 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
docs/manual/mod/mod_ssl.xml
modules/ssl/ssl_engine_init.c

diff --git a/CHANGES b/CHANGES
index c311e42b88914359c2114f352ba0df3e7fb9ff3c..e31d8d075b5c62b65e4c91cd4294ae9329e5be0e 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,10 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.0
 
+  *) mod_ssl: Change default for SSLCompression to off, as compression
+     causes security issues in most setups. (The so called "CRIME" attack).
+     [Stefan Fritsch]
+
   *) syslog logging: Remove stray ", referer" at the end of some messages.
      [Jeff Trawick]
 
index 63645980a0014af4f060b53e2c834e4935e95199..5bc2c2fa3a780e0cd405b183af77c83aed45c2ff 100644 (file)
@@ -2446,16 +2446,21 @@ be protected with file permissions similar to those used for
 
 <directivesynopsis>
 <name>SSLCompression</name>
-<description>Disallow compression on the SSL level</description>
+<description>Enable compression on the SSL level</description>
 <syntax>SSLCompression on|off</syntax>
-<default>SSLCompression on</default>
+<default>SSLCompression off</default>
 <contextlist><context>server config</context>
 <context>virtual host</context></contextlist>
 <compatibility>Available in httpd 2.4.3 and later, if using OpenSSL 0.9.8 or later;
-virtual host scope available if using OpenSSL 1.0.0 or later</compatibility>
+virtual host scope available if using OpenSSL 1.0.0 or later.
+The default used to be <code>on</code> in version 2.4.3.</compatibility>
 
 <usage>
-<p>This directive allows to disable compression on the SSL level.</p>
+<p>This directive allows to enable compression on the SSL level.</p>
+<note type="warning">
+<p>Enabling compression causes security issues in most setups (the so called
+CRIME attack).</p>
+</note>
 </usage>
 </directivesynopsis>
 
index 0ce7e5a691c06e1e156fde362d2f49df40df8cc3..815228126b625783236de94e958208a9d18b418e 100644 (file)
@@ -656,7 +656,7 @@ static void ssl_init_ctx_protocol(server_rec *s,
 
 
 #ifndef OPENSSL_NO_COMP
-    if (sc->compression == FALSE) {
+    if (sc->compression != TRUE) {
 #ifdef SSL_OP_NO_COMPRESSION
         /* OpenSSL >= 1.0 only */
         SSL_CTX_set_options(ctx, SSL_OP_NO_COMPRESSION);