如何在 Apache httpd 2.2.15 上禁用 SSLCompression?(防御犯罪/野兽)

Ste*_*ski 14 security mod-ssl tls apache-2.2

我了解了针对 TLS 压缩的CRIME攻击(CVE-2012-4929,CRIME 是针对 ssl 和 tls 的 BEAST 攻击的继承者),我想通过禁用 SSL 压缩来保护我的网络服务器免受这种攻击,它已添加到 Apache 2.2.22(见错误 53219)。

我正在运行 Scientific Linux 6.3,它与 httpd-2.2.15 一起提供。httpd 2.2 上游版本的安全修复应该向后移植到这个版本。

# rpm -q httpd
httpd-2.2.15-15.sl6.1.x86_64

# httpd -V
Server version: Apache/2.2.15 (Unix)
Server built:   Feb 14 2012 09:47:14
Server's Module Magic Number: 20051115:24
Server loaded:  APR 1.3.9, APR-Util 1.3.9
Compiled using: APR 1.3.9, APR-Util 1.3.9
Run Code Online (Sandbox Code Playgroud)

我在我的配置中尝试关闭 SSLCompression,但这会导致以下错误消息:

# /etc/init.d/httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: Syntax error on line 147 of /etc/httpd/httpd.conf:
Invalid command 'SSLCompression', perhaps misspelled or defined by a module not included in the server configuration
                                                           [FAILED]
Run Code Online (Sandbox Code Playgroud)

是否可以使用此版本的 Apache Webserver 禁用 SSLCompression?

Mic*_*ton 21

2013 年 3 月 4 日,Red Hat 提供了更新的 OpenSSL 软件包来解决这个问题。您可以通过正常的更新渠道接收它们。

原来的答案是:


尽管有可用的解决方法,但Red Hat 尚未提供提供此功能的更新包。编辑/etc/sysconfig/httpd文件并向其添加以下行:

export OPENSSL_NO_DEFAULT_ZLIB=1
Run Code Online (Sandbox Code Playgroud)

然后重启Apache:

service httpd restart
Run Code Online (Sandbox Code Playgroud)

这将导致为 Apache 提供加密功能的 OpenSSL 不提供压缩。