7 ms·
Pushing too hard for HTTPS can lead to HTTPS as security theater. Cloudflare offers this as a service; they call it "Flexible SSL". They get a multi-domain SS
by Animats 12y ago
Pushing too hard for HTTPS can lead to HTTPS as security theater. Cloudflare offers this as a service; they call it "Flexible SSL". They get a multi-domain SSL certificate for a huge number of unrelated domains, and let people connect to that. The data is decrypted at Cloudflare, and retransmitted in the clear to the destination site. The user thinks they have security, and they have a little, but less than they think. The multi-domain cert makes some attacks possible. If an attacker can mess with DNS near the client end (perhaps at a public WiFi access point), and can break into any of the sites listed on the cert, they can do an MITM attack. A cert with both an important site and a weakly secured site creates an easy attack target.
Multi-domain certs are used because IPv4 space is full and Windows XP doesn't support Server Name Indication, which allows a unique cert for different domains at the same IP address. So if you want SSL on a shared IP address, and need to support good old IE6 over IPv4, multi-domain certs are necessary. XP still has 19% market share on line, as of October 2014. Everything else has supported SNI since 2007 or so.
I have a paper on this:
http://john-nagle.github.io/certscan/whoamitalkingto04.pdf http://john-nagle.github.io/certscan/whoamitalkingto04.pdf
This identifies all the major front-end services using shared SSL certificates. Cloudflare has 36,280 second level domains tied to "*.cloudflare.com". Incapsula, the DDOS protection service, has 1471. Once you're past the top 20 such services, no site has more than about 100. Once IE6 has died off, the CAs can stop issuing certs containing unrelated domains. But not yet.
- Rapzid 12y agoHoly S*. I was about to call BS on you because I know CloudFlare supports end-to-end TLS then I read this: https://www.cloudflare.com/ssl https://www.cloudflare.com/ssl: > SSL can be difficult for website administrators to set up. > For sites that require more advanced SSL configurations, CloudFlare supports custom certificates from any certificate authority, full end-to-end SSL with robust certificate checking... Just, wow. TLS is NOT hard to setup for a website administrator. I think I just lost a ton of respect for CloudFlare. Granted, most threats would be between the client and CloudFlare anyway(that is to say, on the wrong side of the tracks), but still....
- Animats 12y agoCloudflare offers a number of SSL options, but they all involve decrypting the traffic at Cloudflare and possibly re-encrypting it for the link to the final server. Their options: (https://www.cloudflare.com/ssl https://www.cloudflare.com/ssl) * "Flexible SSL" - encrypted from client to Cloudflare using Cloudflare's cert, unencrypted from Cloudflare to host. * "Full SSL" - encrypted from client to Cloudflare using Cloudflare's cert, encrypted from Cloudflare to host using a different host self-signed cert. * "Full SSL (strict)" - encrypted from client to Cloudflare using Cloudflare's cert, encrypted from Cloudflare to host using a different host CA-signed cert. (http://blog.cloudflare.com/keyless-ssl-the-nitty-gritty-technical-details/ http://blog.cloudflare.com/keyless-ssl-the-nitty-gritty-tech...) * "Keyless SSL" - encrypted from client to Cloudflare using the customer host's cert. Cloudflare doesn't have the customer's cert private key. They contact the customer's host for a session key for each session, and use this to encrypt from the client to Cloudflare. They decrypt at Cloudflare, and re-encrypt for the trip to the customer's host. With the first three, you can see in the browser that this is happening. The host will be identified as "cloudflare.com" in the certificate. With "Keyless SSL", which is basically MITM with active cooperation from the end host, it looks at the browser end like you're encrypted end to end, but you're not. One assumes that all of these are being "lawfully intercepted".
- Rapzid 12y agoThe "possibly" is the problem. CloudFlare should not be promoting or supporting TLS that is not encrypted all the way to their customers infrastructure IMHO.
- ryan-c 12y agoCloudflare can't act as a "cloud waf" unless they are able to decrypt the ssl sessions.
- Rapzid 12y agoThe issue isn't that they are decrypting the traffic for inspection. That's a concession you just have to make with a trusted third party providing these types of services. The issue is that with their "Flexible SSL" they are then forwarding that unencrypted traffic on through the wilds(the internet) to the customer. Not only does this fly in the face of widely regarded best practices for transferring sensitive information between trusted, controlled networks the browser is none the wiser. You could argue that somebody with a certificate could do this anyhow. Yes, this is true. However CloudFlare who should, and most likely DOES, know better and are now doing this wholesale as a product offering! This should be frowned upon and CloudFlare should receive double frowns.
- freerk 12y agoSNI is not supported by the schannel implementation of win XP, it is not an IE6 thing, IE8 on win XP doesn't know SNI either :(
- Animats 12y agoRight; you have to get to at least Windows Vista to get SNI.
- dspillett 12y agoYou have to have at least Vista to get SNI in IE. IIRC both Firefox and Chrome support SNI on XP.
- bad_user 12y agoFirefox and Chrome on the other hand don't have a problem on Windows XP.
- sporkmonger 12y agoAlso the non-Chrome version of Android Gingerbread's browser lacks SNI support.
- tedunangst 12y agoIt's also not supported by python urllib or feedparser (at least not by default), meaning any attempt to connect to a service that requires SNI (cloudfront is one) fails during handshake. This is doubly annoying for checking blogs that require https and redirect http. I have no way to check their RSS feeds.
- Animats 12y agoRead this Python bug report for the painful story of SNI support in Python, 2009 through 2014. http://bugs.python.org/issue5639 http://bugs.python.org/issue5639
- tedunangst 12y ago
- dspillett 12y ago> The data is decrypted at Cloudflare, and retransmitted in the clear to the destination site. > The user thinks they have security, and they have a little, but less than they think. That is true. But it the user's main concern is the legs of network from their location out of a local untrusted network (such as communal wireless) or country, that is definitely better than nothing. > XP still has 19% market share I don't worry about the security of XP+IE users any more. Anyone still there has chosen against good advice to remain insecure. It is their choice when there are other options available (both browsers that support modern standards on XP, and alternate OSs), it is their choice to have the certificate warning and more iffy security when they hit a site that needs SNI.
- tptacek 12y agoIt's not about the security of XP users; it's about their connectivity.
- pixl97 12y agoConnectivity and security need to be considered the same thing on the modern Internet. XP is no longer supported, and that leaves it in a pretty dangerous position. A unpatched computer isn't just a risk to the user of that computer, it becomes a risk to everybody on the net as it tries to spread its latest infection.
- tptacek 12y agoYou've mistaken me for someone endorsing Windows XP. I'm not; I'm saying that the tradeoff the parent comment proposed is not the real tradeoff sites have to make.