]> jfr.im git - solanum.git/commit
Remove SSL_OP_NO_COMPRESSION from openssl initialization.
authorKeith Buck <redacted>
Fri, 21 Feb 2014 09:17:29 +0000 (09:17 +0000)
committerKeith Buck <redacted>
Fri, 21 Feb 2014 09:17:29 +0000 (09:17 +0000)
commit784ce5c1cc6f7d9b61f692726c14c67e6b55f2de
tree8e8483c5e64c40cbfd9c4be7605015635c1d1d5b
parentfab79c5d25423884fc4f5e0a56d97cb59b618196
Remove SSL_OP_NO_COMPRESSION from openssl initialization.

SSL_OP_NO_COMPRESSION was presumably added in an attempt to prevent
information leakage in a manner similar to recent attacks on HTTPS.
However, assuming that IRC is vulnerable to the same class of attacks is
incorrect: the behavior of the IRC protocol (a single long-running
connection) is not the same as that of HTTPS (multiple ephemeral
connections). HTTPS's use of ephemeral connections means that certain
assumptions can be made about the contents of the compression
algorithm's dictionaries and the content exchanged between the client
and server (e.g. the content being nearly the same for each connection),
which is not true for IRC. Additionally, they rely on the attacker being
able to coerce the client into creating many HTTPS connections (and
resending some secret token belonging to the user, along with
attacker-controlled data) each time, none of which is possible with IRC.
Lastly, since compression is no longer performed, this option will
result in leaking the lengths of messages transmitted to and from the
client. This option does reduce CPU utilization on Charybdis servers but
also increases bandwidth consumed.
libratbox/src/openssl.c