r/programming • • Nov 24 '16

Let's Encrypt Everything

https://blog.codinghorror.com/lets-encrypt-everything/
3.5k Upvotes

508 comments sorted by

View all comments

-8

u/Sjoerder Nov 24 '16

without HTTPS you have zero online privacy

While this is true and HTTPS is certainly a good thing, it does not really provide much privacy. Men in the middle can still see which pages you visit or even what you type in a form.

5

u/[deleted] Nov 24 '16

What do you mean, they can see what I type in forms?

5

u/TheThiefMaster Nov 24 '16

They can't.

What they can see is exactly two things:

  • The hostname you're connecting to (assuming SNI is supported by the client, otherwise just the IP of the server)

  • The size of your request and the size of the response.

If the site has few enough pages it's possible to use the size or the request/response to infer what page of the site you have visited, but that's all.

0

u/[deleted] Nov 24 '16

[deleted]

10

u/pfg1 Nov 24 '16 edited Nov 24 '16

It's certainly not bullshit - side-channels are a problem for many applications. The study mentioned in the linked article uses Google searches as an example. Google (and many other search engines) basically sends a request for each keystroke to get instant results. AIUI, by correlating the size of those requests (which grows with each additional letter you enter) with the size of the results for that search term, you can make a pretty good guess as to what the search term is.

A MitM definitely won't be able to get the plaintext for everything, but side-channels are more common than one might expect. Still, this is significantly (!) harder to do than just logging all HTTP plaintext traffic out there, especially at scale, so it's a very good thing in the context of mass surveillance.

1

u/alex_w Nov 24 '16

When I check the connection info for the tab I have Google open in it's using AES128GCM. So 128bit block encoder.

As I understand it that means the tail end of the request is going to be padded to the nearest 128bit block, 16 uint8s. I don't see how that could be helpful in working out what I typed.

Am I missing something (I don't have time to read the 16 page .pdf, sorry).

2

u/pfg1 Nov 24 '16

Disclaimer: I haven't read the whole thing either.

AIUI, most of their findings were reproduced with stream ciphers (RC4, though I guess it's similar with newer ones like ChaCha20?):

We checked 22 important HTTPS websites in Appendix B. All of them use RC4 stream cipher, except two: VeriSign, which uses AES128 block cipher for some communications and RC4 for others, and GEICO, which uses Triple-DES block cipher (64 bits). No AES256 traffic was observed on any website.

However, they also state:

Note that we simply state the fact that most websites today have absolutely no side-channel protection at the HTTPS layer, not advocating block ciphers as a cure. We will show later that for most application features, the rounding-effects of block ciphers offer very marginal or no mitigation at all because the traffic distinctions are often too large to hide.

I guess it might be good enough to defeat the search term side-channel.

0

u/loup-vaillant Nov 24 '16

Clueless downvoters, please heed /u/Sjoerder's words. Scrambling the content of a message hides neither its size, its destination, nor its provenance.

As far as privacy is concerned, this metadata is almost as important as the content itself.

0

u/Dave3of5 Nov 24 '16

Why is this downvoted? what a sub !