6 ms·
how would encrypted SNI work? sure, you can probably do some sort of DHE, but that's vulnerable to MITM, which is why we have certificates to begin with.
by gruez 9y ago
how would encrypted SNI work? sure, you can probably do some sort of DHE, but that's vulnerable to MITM, which is why we have certificates to begin with.
- muizelaar 9y agohttps://tools.ietf.org/html/draft-huitema-tls-sni-encryption https://tools.ietf.org/html/draft-huitema-tls-sni-encryption
- deleted 9y ago[deleted]
- arkadiyt 9y agoThere's domain fronting [1] and http/2 certificate frames [2] - they are conceptually similar. [1]: https://www.bamsoftware.com/papers/fronting/ https://www.bamsoftware.com/papers/fronting/ [2]: https://tools.ietf.org/html/draft-bishop-httpbis-http2-additional-certs-05 https://tools.ietf.org/html/draft-bishop-httpbis-http2-addit...
- gruez 9y agoboth of them seem to use the concept of "connect via a fake domain name, then connect to the real domain". i'm not sure how this is scaleable for everyday browsing. you might be able to find the fronting server for wikipedia, but how are you going to find the fronting server for every website you're visiting? this solves the problem of censorship, but not the problem of ISP surveillance.
- the8472 9y agoCouldn't the client send SNI after the DH and then the server authenticate the secret? That way MITM would always be detectable at least.
- ori_b 9y ago> Couldn't the client send SNI after the DH and then the server authenticate the secret? That means you can't use sni to route your request to a different server.
- infogulch 9y agoYes, whatever is serving on that interface will have to terminate TLS. Or somehow pass the session information to the proxied server, or ask the client to reconnect, or do some kind of tls tunneling from the client to the real host. I don't think any of those are unreasonable options.
- bscphil 9y agoWhat if we could have first class SSL certs for IP addresses? You connect to the IP and verify the cert it presents you with your PKI, then switch to the desired host via SNI or some other mechanism after DHE is established. I suspect you could do this without any extra hops but I haven't really thought through how that would work.
- gruez 9y agotls certificates already work out of the box for ip addresses (at least on firefox, see https://1.1.1.1/ https://1.1.1.1/), so that's actually a pretty neat solution.
- ori_b 9y ago> What if we could have first class SSL certs for IP addresses? They're not routable.
- rmwaite 9y agoWhat does this mean?
- ori_b 9y agoWhat's the next hop for a cryptographic hash? With IP addresses, you have a heirarchy: You match on a prefix to find the router to handle the next path, and that one matches on a longer prefix to find the next hop, and so on. That allows you to have routing tables that don't include every single host on the internet. This is what allows efficient routing to happen.
- AlexCoventry 9y ago> you can probably do some sort of DHE Could the browser send a symmetric key encrypted in the public key of the target website, as part of the initial challenge?
- infogulch 9y agoThe point is you don't know what the public key of the target website is. You find out by asking for it, and then you verify it's authenticity by checking the signature. Before you connect all you know is the domain and the keys of CA's you trust.
- AlexCoventry 9y agoAh, right. Thanks.
- hacknat 9y ago> But that’s vulnerable to MITM It is if that’s all you’re trusting, but you get to check the validity of the cert, so someone could MITM a TLS 1.3, but it wouldn’t do them much good as all they would get is a request for a certificate, then the normal TLS certification steps must proceed. Without the certificate private key the rest of the handshake would fail.
- gruez 9y agosure, they're not going to MITM your http connection, but they will be able to MITM your certificate connection, which allows them to discover what site you visited, which is the same problem that SNI has.
- saurik 9y agoThey can do this, but your browser would retroactively notice that it happened and go "holy shit that was bad, you should complain to someone about it". This does not solve for all threat models, but it does avoid the "snoopy ISP".