Live data from Hacker News

Google disables compression for OpenSSL in Chrome - SSL exploit coming?

chromiumcodereview.appspot.com

111–120 of 137 posts

Re: Google disables compression for OpenSSL in Chrome - SSL exploit coming?

#111
post #109

Earlier quoted context omitted.

Yes. There's absolutely zero excuse for including compression as part of a cryptographic protocol.

Compression itself in a cryptographic protocol is not the issue here. The problem starts when you let an attacker add chosen plain-text before or after the secret in the same compressed and encrypted stream. Compression before encryption is not a problem if the sender is the only person that decides what is in the message to be sent. Compression doesn't make it vulnerable to chosen plain-text attacks either. Mixing v…

This isn't true in theory or in practice.

In theory, protocols which fall to attacks when attackers have control of some of the message are said to be vulnerable to "chosen plaintext attacks" (if the attacker only gets 1 shot per message) or "adaptive chosen plaintext attacks" (if the attacker gets many bites at the same apple). Sound protocols don't have feasible adaptive chosen plaintext attacks.

In practice, most protocols can be coerced into carrying some data controlled by attackers. Sneaking some attacker-controlled data into a message is a very low bar for an attacker to clear.

It's true that content-controlled Javascript code makes it distinctively easy for an attacker to spirit their data into the plaintext, but don't let that confuse you. For the HTTPS/TLS cryptosystem to be sound, attackers can't use this property to decrypt the content they didn't add to the message.

Re: Google disables compression for OpenSSL in Chrome - SSL exploit coming?

#112
Is this a disabling of compression on both ends? No DEFLATE on either requests or responses?

Will a site using HTTPS be able to serve compressed assets (like javascript & css)?

If not, we’ll urgently need a way for site devs to whitelist precomputed (and thus immune) static assets for compression.

Re: Google disables compression for OpenSSL in Chrome - SSL exploit coming?

#113

Earlier quoted context omitted.

Won't help in this case.

I don't know what you're saying. If you're saying that the "Secure" flag won't defend against CRIME, nobody is saying that. I'm saying that the "Secure" flag and HSTS mitigates SSL-stripping.

I think both ivanr and thatwonthelp were suggesting that any non-secure site (same origin or not) can be hijacked in order to make the requests necessary for this attack.

I understand and agree with your comment about the secure flag, but if I understood ivanr's comment it doesn't apply.

Re: Google disables compression for OpenSSL in Chrome - SSL exploit coming?

#114

Earlier quoted context omitted.

> You better have an extremely low jitter connection! Like AWS. (Cite: http://dl.acm.org/citation.cfm?id=1653687. )

Okay, but people don't run web browsers on AWS.

except when they do! http://www.amazon.com/gp/help/customer/display.html/?nodeId=...

Re: Google disables compression for OpenSSL in Chrome - SSL exploit coming?

#115
post #91

Earlier quoted context omitted.

The level of civility in this thread is great, but I would pay money to see a DEF CON panel debate between you two where you each had to take a shot every 8 minutes. We could get Mikko Hypponen to moderate and pour shots!

(a) I would lose the debate, (b) it would be boring, (c) I can drink Colin under the table.

(d) I would probably end up in the hospital.

There's a reason why I don't drink -- type 1 diabetes and large quantities of alcohol don't interoperate well.

Re: Google disables compression for OpenSSL in Chrome - SSL exploit coming?

#116
post #2

Yes. See: http://security.stackexchange.com/a/19914

Unless I'm missing something, I reckon there's a really obvious improvement on that, but Stack Exchange doesn't let new users leave comments. Think of the old puzzle where you've got 9 bags of gold coins which weight 10 grams each and one bag of shaved coins which weigh only 9 grams each and you need to figure out which bag has the shaved coins in only one weighing. You should be able do the same thing here - add one "Cookie: secret=A", two "Cookie: secret=B" and so on. Because of the limited look-back window in the compressor you'll need to interleave them like ABCD...BCD...CD... but it should give more information.

Edit: Wait, I am. That wouldn't work because it'd compress the repeated subsequences. D'oh.

Re: Google disables compression for OpenSSL in Chrome - SSL exploit coming?

#117

So, to summarize for the laypeople, if the user has Javascript and/or cookies disabled, this exploit will not work?

Javascript just makes the attack faster, but it can be accomplished with raw html. Cookies are required though; it's what you are after when using this attack.

Fascinating. And how about if the cookies are marked "secure"? (This can be done manually in some browsers, e.g., elinks).

Re: Google disables compression for OpenSSL in Chrome - SSL exploit coming?

#118

So, to summarize for the laypeople, if the user has Javascript and/or cookies disabled, this exploit will not work?

Hidden elements would probably work just as well. It might even work with JacaScript turned. Have a page with nested iframes. Serve each one from a different IP address and have the server not answer right away. The server answers with the first iframe having a chosen URL while Eve snoops the wire. Eve tells the server which URL to use for the next iframe body that it sends. Repeat until the cookie is deduced. The se…

Add to the list of all the malicious things that can be done using . Why elements are even allowed by any purportedly "secure" browser is beyond me. Is their functionality really worth the risk?

Re: Google disables compression for OpenSSL in Chrome - SSL exploit coming?

#119
post #61

Earlier quoted context omitted.

You don't even need (3) if you can do enough trials and have an accurate clock. Compression by its very nature drips timing side channels.

Due to the padding of even compressed SSL segments only having timing data will significantly complicate things. You'll be trying to measure the variance in deflate compressing different blocks with single byte differences. You better have an extremely low jitter connection!

Low jitter is not a requirement for timing side-channel attacks. As long as the jitter is uncorrelated with the timing difference that you're after, you can filter the signal from the noise.

Re: Google disables compression for OpenSSL in Chrome - SSL exploit coming?

#120

Colour me stupid, but is there something to prevent inserting indeterminate padding while sending headers? e.g. imagine a request like GET / HTTP/1.0 X-Pad: GET / HTTP/aaaaaaa Where X-Pad randomly repeats previous bytes, and perhaps 0..8 bytes of random/repeating variable-length data. By randomizing the effectiveness of the compression, surely this attack can be generally prevented by the browser? You could argue tha…

If it's random, you can just get enough samples and remove the noise. It'd have to be padding to a given number of bytes, but that probably has a vulnerability too.
Post reply on HN