Earlier quoted context omitted.
Can you point to an instance where you said anything like that, here or anywhere else, before last week? It's easy for me to believe that you've internalized "minimize data-dependent branches in crypto code" and thus wouldn't have designed a compressed encrypted transport. It is very hard for me to believe that you would have spotted this flaw immediately had anyone pointed out to you that TLS supported compression.…
This paper published in 2002 does discuss this attack. http://www.iacr.org/cryptodb/data/paper.php?pubkey=3091 "... both the SSH and TLS protocols support an option for on-the-fly compression. Potential security implications of using compression algorithms are of practical importance to people designing systems that might use both compression and encryption."
Google disables compression for OpenSSL in Chrome - SSL exploit coming?
41–50 of 137 posts
Re: Google disables compression for OpenSSL in Chrome - SSL exploit coming?
#42Earlier quoted context omitted.
Note to anyone that doesn't do much crypto: You have to compress before encrypting, compressing after encrypting has no effect. (Reason: because encrypted data is [should be] indistinguishable from random data, and random data does not compress)
You're right, but again: there's advice people get to compress deliberately, not to save space in messages but to make cryptanalysis more difficult.
These days, even when we don't include cryptographic fingerprints (e.g., with the hash-and-encrypt construction C = E(M || H(M)) ) there's enough structure in compression format headers to allow an attacker to recognize if he has the right key... and he isn't going to be running a brute-force attack anyway.
Re: Google disables compression for OpenSSL in Chrome - SSL exploit coming?
#43Earlier quoted context omitted.
Can you point to an instance where you said anything like that, here or anywhere else, before last week? It's easy for me to believe that you've internalized "minimize data-dependent branches in crypto code" and thus wouldn't have designed a compressed encrypted transport. It is very hard for me to believe that you would have spotted this flaw immediately had anyone pointed out to you that TLS supported compression.…
It is very hard for me to believe that you would have spotted this flaw immediately had anyone pointed out to you that TLS supported compression. I'm not claiming that I'd have noticed this particular attack. I'm saying that having compression in a supposedly secure transport layer was an obviously bad idea even before it was clear how it could be exploited. I don't need to get into a car accident to know that drivin…
But compression in TLS is not a relic of the 1990s; it's something that looks to have gained its earliest adoption in SSL/TLS at about the same time as Elliptic Curve.
My issue here isn't that you're wrong; it's that I think this is an extremely clever attack that says something profound about designing cryptosystems, and I wouldn't want to see Thai's and Juliano's (or Pornin's, if he's "wrong" about the prediction) work minimized by a glib comment about TLS.
Re: Google disables compression for OpenSSL in Chrome - SSL exploit coming?
#44Data compression is often used in data storage or transmission. Suppose you want to use data compression in conjunction with encryption. Does it make more sense to
A. Compress the data and then encrypt the result, or
B. Encrypt the data and then compress the result.
Now we know the correct answer is Neither.
[1] http://crypto.stanford.edu/~dabo/cs255/hw_and_proj/hw1.pdf
Re: Google disables compression for OpenSSL in Chrome - SSL exploit coming?
#45Earlier quoted context omitted.
You're right, but again: there's advice people get to compress deliberately, not to save space in messages but to make cryptanalysis more difficult.
FWIW, that advice made more sense pre-internet, when compression formats were tighter and encryption was weaker -- the idea was that an attacker might find the key but not recognize that he successfully decrypted the data. These days, even when we don't include cryptographic fingerprints (e.g., with the hash-and-encrypt construction C = E(M || H(M)) ) there's enough structure in compression format headers to allow an…
Re: Google disables compression for OpenSSL in Chrome - SSL exploit coming?
#46Earlier quoted context omitted.
What, compressing before encrypting?
Yes. There's absolutely zero excuse for including compression as part of a cryptographic protocol.
Re: Google disables compression for OpenSSL in Chrome - SSL exploit coming?
#47Earlier quoted context omitted.
Yes. There's absolutely zero excuse for including compression as part of a cryptographic protocol.
The excuses I've heard for it include 1) can't do compression after the crypto, and 2) it reduces ciphertext available to attackers. SSH and PGP do it too.
A conceptual purist like Colin Percival would argue, correctly, that if there's an attack against a cryptosystem that benefits from knowing the distribution of bytes in the plaintext, that's a damning statement about the cryptosystem itself.
But compression does "break" some exploits.
Re: Google disables compression for OpenSSL in Chrome - SSL exploit coming?
#48Earlier quoted context omitted.
It is very hard for me to believe that you would have spotted this flaw immediately had anyone pointed out to you that TLS supported compression. I'm not claiming that I'd have noticed this particular attack. I'm saying that having compression in a supposedly secure transport layer was an obviously bad idea even before it was clear how it could be exploited. I don't need to get into a car accident to know that drivin…
These are things that are obvious in hindsight. They may have been obvious to you before; or, as I'm claiming, they may just fit snugly into your (probably correct) philosophy about secure channel design. But compression in TLS is not a relic of the 1990s; it's something that looks to have gained its earliest adoption in SSL/TLS at about the same time as Elliptic Curve. My issue here isn't that you're wrong; it's tha…
I guess by that point they had thrown in everything but the kitchen sink, and decided they might as well throw in the kitchen sink too.
I wouldn't want to see Thai's and Juliano's (or Pornin's, if he's "wrong" about the prediction) work minimized by a glib comment about TLS.
Oh, of course. I'm just irritated (as usual) by the fact that people continue to use SSL/TLS "because it's the standard" despite the fact that it's a phenomenally broken standard. There's places where you can't avoid it (HTTPS), but where it can be avoided...
Re: Google disables compression for OpenSSL in Chrome - SSL exploit coming?
#49Relevant: http://www.ekoparty.org/2012/juliano-rizzo.php
Disabling compression could certainly contribute to global warming in a relatively small way...
Re: Google disables compression for OpenSSL in Chrome - SSL exploit coming?
#50Earlier quoted context omitted.
Is my understanding correct that the attack described there requires all of 1. cookies associated with the target, 2. the ability to monitor the length of requests to the target, and 3. the ability to send requests to the target (e.g. JavaScript injection, malicious website)? I guess this is actually an instance where those Hollywood "guess the password one character at a time" animations would make sense.
> Hollywood "guess the password one character at a time" animations Did you see the BEAST attack? Exactly one byte at a time: http://www.youtube.com/watch?v=BTqAIDVUvrU