News for hackers. Stuff that matters.
Re:It's Time to Fix HTTPS by tptacek on Sunday March 27, 2011 @08:47PM (#2376593)
I think it's important to know that, whether you agree with this deck that key continuity ("tofu/pop") is a better approach than PKI or not, what we're talking about here is a misconfiguration of SSL caused by a political quandary, not a fundamental problem with SSL/HTTPS.

The fact is, if your browser trust roots contain only trustworthy CA's, and you look to make sure you're using a secure site when you expect to, SSL isn't broken. Those sound like two big "ifs", and they may be, but consider: they are both user interface issues:

* There is no collaborative interface for community-rating CA trustworthiness, or even a reasonable interface for pruning CA's out of your browser --- let alone "do I trust certificates delegated from this CA, or just the CA itself". We are still using an interface for this functionality designed in the mid-'90s.

* The "first introduction" problem that key continuity suffers from is, in the SSL case, caused by the fact that the SSL cues in the browser are subtle. But why should that be the case? Is there really no interface anyone can come up with that appropriately signals "this page should be and is secured by SSL"? Because if you have that (or STS), sslstrip doesn't work.

Key continuity's problems, on the other hand, aren't user interface issues. In key continuity schemes, when your browser is first introduced to a new website, you simply are insecure. If at that moment you are MITM'd by an attacker, you might never again be secure. This isn't a UI issue: key continuity protocols don't have the information available to them on first connection to make that decision.

Think to yourself, if you ran the great firewall of China, which system you'd rather have: the flawed one we have now, or the one that explicitly allows your connection on the first and subsequent connections to a new service to be hijacked?

I am our resident SSL/TLS apologist. But let me be clear that this deck is good, and raises a lot of valid concerns. I think SSL/TLS is a good system, but I share the (implied) disgust at the way our PKI has been managed. Some kind of reform is needed. I just don't think it needs to come with additional engineering sacrifices.

Re:It's Time to Fix HTTPS by ChuckMcM on Sunday March 27, 2011 @11:10PM (#2376969)
Raise your hand if you've been to a PGP signing party.

Key management is the weakest link of HTTPS/TLS. And the slide deck does a good job of identifying some of the forces that weaken it still further. It assumes (I believe correctly) that the various actors in this play are all working with their own self interest at heart.

So "tofu/pop", to be an improvement (rather than simply training people to click 'ok' on a lot of pop-ups) needs to have some counteracting forces.

But we don't have CA's which get their CA status revoked when they are shown to have given out untrustworthy certificates, nor do we have liability concerns on the browser maker for failing to warn you that something suspicious was going on, and we don't have nation state actors who will transparently step into the game.

I don't have a good answer, but something that is purely algorithmic is going to be challenging to get right. We trust the bank when we walk up to the brick and mortar office because the cost of 'fooling' average people would be too high to build this sort of ruse. However we have no way to currently transfer the trust of the bank to its presence on the web site. An example of that would be taking home a 'certificate' key from the branch manager and then using it at home.

I started looking at this as part of some Java security work in the 90's and got to appreciate just how difficult a problem set it is. And worse, the group that does the infrastructure has to be 100% open so that folks will trust it and 100% free so that it will be widely adopted. That makes for a very very difficult business model.

Re:It's Time to Fix HTTPS by kragen on Monday March 28, 2011 @01:22AM (#2377250)
I used to work with Allan Schiffman, although well after Terisa, so I have my own share of SSL/TLS distaste, but I agree that it's basically workable, and I agree with you that the current PKI is broken. However, I think Chris, Seth, and Peter are right about how badly broken it is, and you're wrong. Specifically:

> Think to yourself, if you ran the great firewall of China, which system you'd rather have: the flawed one we have now, or the one that explicitly allows your connection on the first and subsequent connections to a new service to be hijacked?

The one we have now explicitly allows your connection on the first and subsequent connections to a new service to be hijacked by the Chinese government, assuming they can get your packets to go to them, because CNNIC has a CA cert in your browser. (Have you removed it? I haven't. I didn't know it was there.) Additionally, it allows any connection to any service, old or new, to be hijacked, even if you previously connected to that service without being hijacked, and it doesn't leave any evidence that this has happened. TOFU/POP solves these additional problems, without solving the introduction problem.

It's possible to solve the introduction problem --- which is what CAs do --- in a variety of more or less secure ways. SSH gives you a key fingerprint and prompts you, which pretty much pushes the problem back on the user. But you can do better than that in a bunch of ways.

Re:It's Time to Fix HTTPS by tptacek on Monday March 28, 2011 @10:06AM (#2378378)
... so, remove the CNNIC cert.

What's the issue here? CNNIC isn't trustworthy. You should get a warning every time you visit a CNNIC-signed site.

I don't understand how people can build entire advocacy campaigns on getting other people to switch from IE, but removing untrustworthy certificates? Time to scrap the protocol and move to a crappier one that we can at least get our heads around!

Re:It's Time to Fix HTTPS by roc on Monday March 28, 2011 @10:56AM (#2378555)
The issue is that Firefox still includes CNNIC by default. A few hundred (thousand?) people on the planet know that's a horrible idea.[1] When the community can't manage a no-brainer, pro-user change from the Mozilla foundation, maybe there's something to the compounded self-interest problem?

This isn't to say TOFU/POP is the right move. But there's a very real problem here. One that HTTPS's strengths do nothing to address or offset.

[1] And of those, I doubt they all remember to check their CA list at every browser install/upgrade/borrowed laptop browsing situation.

Re:It's Time to Fix HTTPS by kragen on Monday March 28, 2011 @12:26PM (#2378923)
Removing the CNNIC cert is not an option if you actually need to talk to sites that use it. And at this point there are literally hundreds of untrustworthy root CA certs in browsers. Just because I want to talk to some server in Turkey doesn't mean I ought to rely on a Turkish organization to vouch for the identity of Bank of America.

This is not a problem with the protocol, but with the criteria used for trusting a signature.

Re:It's Time to Fix HTTPS by tptacek on Monday March 28, 2011 @12:51PM (#2379017)
I know you're a reasonable guy. But, look: you either trust CNNIC or (like me), you don't. If you can't trust CNNIC, you axe their cert and click through to make persistent exceptions to the sites that need that cert.

At the end of the day, we're talking about a very simple UI problem. Yes, our notion of "trust" is broken. But it's broken in large part because nobody has put any effort into communicating to end-users enough information to enable them to make informed decisions. Then, after putting no effort into the problem, we look at and say "you're asking my mom to understand X.509 CNs!", as if that was the extent of what engineering could bring to bear against this problem.

Then we throw up our hands and say "let's make a simpler protocol; who cares if predictably and reliably allows middlemen to hijack our connections, at least we won't have to explain X.509 to our moms".

Can you blame me for being a bit cynical about this?

Re:It's Time to Fix HTTPS by gorset on Sunday March 27, 2011 @09:12PM (#2376662)
The fundamental problem is with X.509... It uses a flat namespace so all CAs can issue a valid certificate for any domain on the internet. Much of the problem could have been avoided if it was using a proper hierarchical structure, e.g. mirroring DNS, so only a .com CA could create a valid google.com certificate.
Re:It's Time to Fix HTTPS by caf on Sunday March 27, 2011 @09:48PM (#2376744)
Completely agreed. Note under such a system we wouldn't have even had to create separate CAs - it would have been natural for DNS registrars to take on this role, signing a certificate for your domain at the same time that they delegated your name server records. Certificate expiry dates could have been directly linked to domain registration expiry dates.

Under such a system, you'd know that you were only at the mercy of the Chinese government when browsing .cn sites - which is neither unsurprising nor too much of a worry.

Re:It's Time to Fix HTTPS by tptacek on Sunday March 27, 2011 @10:41PM (#2376885)
Why do you trust DNS registrars more than you trust CAs?
Re:It's Time to Fix HTTPS by caf on Sunday March 27, 2011 @11:47PM (#2377050)
It is a logical conclusion that I trust the set (my DNS registrar) at least as much as I trust the set (my DNS registrar ∩ All CAs in the world).

Not to mention that this would fix some of the incentive problems. DNS top-levels would effectively be competing on the strength of their certificate-issuing properties - if a particular TLD was known to have a more corruption-resistant registrar, then that TLD ought to become more sought-after by security-concious sites.

Re:It's Time to Fix HTTPS by tptacek on Sunday March 27, 2011 @11:59PM (#2377084)
HTTPS doesn't depend on you trusting your DNS registrar!
Re:It's Time to Fix HTTPS by caf on Monday March 28, 2011 @12:52AM (#2377200)
There is a transitive trust relationship, because the a CA will typically supply a certificate to anyone who can prove that they control the domain, and the DNS registrar has ultimate control of the domain.
Re:It's Time to Fix HTTPS by vog on Monday March 28, 2011 @05:38AM (#2377756)
> a CA will typically supply a certificate to anyone who can prove that they control the domain

This is true, but it is also a problem that needs to be fixed. A CA should not only check whether you control the domain, but should also check your (real-world) identity, and in the case of a company, should also check other documents. Yes, most don't, or do it only ineffectually, but they should do it.

Re:It's Time to Fix HTTPS by qjz on Monday March 28, 2011 @08:07AM (#2378038)
As always, trustworthy encryption boils down to identity assurance. Even in real-world personal interactions, identity assurance is subject to a leap of faith ("I believe this person is who they say they are based on the evidence they presented"). As such, is this problem even solvable? People rely on a much less stringent level of assurance to create secure connections on the Internet, because they want it handled within a single mouse click, and that expectation isn't going to change.

At least with a certificate issued by the registrar, there's some logical reason to believe that it was issued to whoever purchased the domain (whoever that is), which is often enough to establish an encrypted connection at a level the user expects. Significant problems remain, however: 1) Most domain owners have no idea how to generate a key and CSR (the registrar shouldn't do it) and 2) a truly reliable system for certificate revocation must exist to handle domain transfers. These aren't new problems, they just don't go away by shifting to this "easier" approach.

Re:It's Time to Fix HTTPS by gorset on Sunday March 27, 2011 @10:57PM (#2376947)
You are already trusting DNS more than CAs. The CN is set to your domain, not to mention that the authorization process for many CAs uses email, which depends on DNS.

This is just another reason why it's so important to get technologies such as DNSSEC and DNSCurve working. As many have pointed out, it make sense to replace X.509 with DNSEC for exactly this reason, so you can verify the SSL certificate by simply doing a secure dns lookup.

Re:It's Time to Fix HTTPS by m0nastic on Sunday March 27, 2011 @10:46PM (#2376899)
Danica Patrick isn't inherently trustworthy?
Re:It's Time to Fix HTTPS by fanf2 on Wednesday March 30, 2011 @11:47AM (#2387768)
The IETF "DANE" working group is specifying a way to do this using DNSSEC.
Re:It's Time to Fix HTTPS by modeless on Sunday March 27, 2011 @09:38PM (#2376721)
In key continuity schemes, when your browser is first introduced to a new website, you simply are insecure. If at that moment you are MITM'd by an attacker, you might never again be secure. This isn't a UI issue: key continuity protocols don't have the information available to them on first connection to make that decision.

What if you add that information to a key continuity system? I feel like this is an obvious idea, but I've never heard of a system using it. It's simple: when you first see a certificate you send it to a trusted third party to check. That third party doesn't need to be or even know about the CA who originally issued the cert; all it has to do is make its own connection to the server and make sure it gets the same cert you did. That protects against any MITM on your end of the connection.

To succeed, a MITM would have to control either the server's connection (which becomes the server operator's problem), or both your connection and the trusted third party's connection (which becomes the trusted third party's problem). I'd rather trust a single third party of my choosing than a huge list of CAs chosen by an opaque and somewhat arbitrary process.

Re:It's Time to Fix HTTPS by kgo on Sunday March 27, 2011 @10:01PM (#2376786)
There are multiple hops from you to the server. That scheme would only verify that BOTH your and the third party's initial hops haven't been simultaneously MiTM'ed. It's very possible the routes overlap for several hops.

And even if they didn't, I wouldn't consider hackers getting my bank info-- or governments reading my email-- the server operator's problem.

Re:It's Time to Fix HTTPS by modeless on Sunday March 27, 2011 @10:17PM (#2376833)
The middle hops are much (much) harder to MITM than the initial hops. If hackers control the bank's internet connection then they get everyone's bank info, which is absolutely the bank's problem (and as such they would take measures to prevent it, like third-party monitoring of their certificates from other points on the Internet). As for governments reading email, the current CA system hardly prevents that. Under this system, you could detect MITM after the fact by using a trusted channel to compare the client's saved cert with the server's real cert. That would expose large-scale MITM tampering.
Re:It's Time to Fix HTTPS by kgo on Sunday March 27, 2011 @10:37PM (#2376874)
I don't see any reason why it would be much harder to hit the middle hops for a MiTM attack.

It certainly wouldn't be worth setting up a MiTM attack between my house and the first Comcast router my cable hits. That approach doesn't scale. Sure maybe if I'm Warren Buffet (or some mobster if we're talking about the government) it might make sense. And if they did do that, then NO source I connect to is a trusted channel, as they could MiTM any and all connections.

The scheme wouldn't (always) protect you from an attacker setup somewhere in between you and your destination, like the NSA servers at AT&T, or the Firewall of China. Your trusted source could hit the same bad path.

And by your own acknowledgment, the scheme doesn't protect you from a hacker breaking into a bank's data center. If a hacker is smart, and only grabs say every 100,000th credit card, how long will it take to isolate the location of the exploit?

So the scheme doesn't really protect against anything with any level of confidence.

Re:It's Time to Fix HTTPS by kalmi10 on Monday March 28, 2011 @03:16AM (#2377465)
You are getting out of scope. A hacker breaking into a bank's data center is not at all releated to the discussion at hand.
Re:It's Time to Fix HTTPS by modeless on Sunday March 27, 2011 @11:13PM (#2376976)
You get the initial trusted source cert through a secure channel in exactly the same way you get CA certs today, so this scheme is just as secure as SSL against an attacker who controls your entire connection.

Sure, the scheme is only as good as your trusted source. But the trusted source could be very good. It could have multiple servers in different ISPs and even different countries verifying certs for you, and could use other methods of verification as well.

The bank can easily check if their connections are getting MITM attacked. The hacker has to modify the certs seen by anyone who contacts the bank, even if he doesn't MITM every connection, and that would be easy for the bank to detect.

Re:It's Time to Fix HTTPS by tbrownaw on Sunday March 27, 2011 @09:58PM (#2376775)
Perspectives (mentioned in the slides) goes a couple better: multiple third parties that poll sites and keep a history of what cert they offer.
Re:It's Time to Fix HTTPS by rwmj on Monday March 28, 2011 @12:41PM (#2378978)
The fact is, if your browser trust roots contain only trustworthy CA's

That would be the empty set, because neither have I any idea of what criteria I'd use to trust a CA [1], nor do I trust CAs not to give up their private keys to the govt given even the slightest pressure.

[1] Thinking about it a bit more: I'd trust a CA that I'd set up myself. But I wouldn't necessarily trust the hardware it was running on.

Re:It's Time to Fix HTTPS by _b8r0 on Monday March 28, 2011 @04:05AM (#2377588)
> Is there really no interface anyone can come up with that appropriately signals "this page should be and is secured by SSL"?

The problem with first introduction is that while this is great for technical people, it will not pass the Bill Gates' mum test. I'm not saying that TOFU/POP is or isn't the right approach, I'm highlighting that there would be some resistance to change from people who don't understand and don't want to understand.

Introducing (from a tech luddite's perspective) a complex intermediary step to getting online to a bank or ecommerce site is going to be something that people work against. Some people don't actually care that the government may listen in (for various values of people, care and government).

I pretty much agree with 99% of what you're saying. I think this is a big problem and also political. I have no idea what the answer is though.

> Think to yourself, if you ran the great firewall of China, which system you'd rather have: the flawed one we have now, or the one that explicitly allows your connection on the first and subsequent connections to a new service to be hijacked?

This would be fairly straightforward to implement for the Chinese government. Another way to do this is to get your CA accepted (as has happened with CINIC) by default in various web browsers and abuse that.

Re:It's Time to Fix HTTPS by azernik on Monday March 28, 2011 @02:34AM (#2377396)
I agree that the "first introduction" is an issue, but the use of Perspectives and key signing seems to be a fairly strong attempt to overcome that.

A stronger disagreement: after the presentation puts so much time into linking the structure of PKI and the social incentives that mess it up, to just handwave that away as "a misconfiguration of SSL caused by a political quandary" is kind of missing the point. Any system designed with security in mind must take into account the human factor from the start; human behavior cannot be changed independently of the system's structure.