From 5095c5f644c00a8a43b2440be52a789eec051943 Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Sun, 21 Oct 2012 19:15:43 +0000 Subject: [PATCH] Change default for SSLCompression to off, as compression 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 | 4 ++++ docs/manual/mod/mod_ssl.xml | 13 +++++++++---- modules/ssl/ssl_engine_init.c | 2 +- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/CHANGES b/CHANGES index c311e42b889..e31d8d075b5 100644 --- 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] diff --git a/docs/manual/mod/mod_ssl.xml b/docs/manual/mod/mod_ssl.xml index 63645980a00..5bc2c2fa3a7 100644 --- a/docs/manual/mod/mod_ssl.xml +++ b/docs/manual/mod/mod_ssl.xml @@ -2446,16 +2446,21 @@ be protected with file permissions similar to those used for SSLCompression -Disallow compression on the SSL level +Enable compression on the SSL level SSLCompression on|off -SSLCompression on +SSLCompression off server config virtual host 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 +virtual host scope available if using OpenSSL 1.0.0 or later. +The default used to be on in version 2.4.3. -

This directive allows to disable compression on the SSL level.

+

This directive allows to enable compression on the SSL level.

+ +

Enabling compression causes security issues in most setups (the so called +CRIME attack).

+
diff --git a/modules/ssl/ssl_engine_init.c b/modules/ssl/ssl_engine_init.c index 0ce7e5a691c..815228126b6 100644 --- a/modules/ssl/ssl_engine_init.c +++ b/modules/ssl/ssl_engine_init.c @@ -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); -- 2.47.3