News for hackers. Stuff that matters.
Re:CA Comodo used broken OCR and issued certificates to the ... by cik on Friday October 21, 2016 @12:00PM (#12761494)
And yet somehow browsers have decided that self-signed certificates are less valuable that purchased ones. Seriously?
Re:CA Comodo used broken OCR and issued certificates to the ... by mholt on Friday October 21, 2016 @12:07PM (#12761575)
The fact that it's "purchased" has nothing to do with it. The important part is a "trusted" third party (note my use of quotes). Without authentication, the guarantees of confidentiality and integrity are pretty much empty.

(In fact, I would argue that free certificates from Let's Encrypt are more trustworthy since the ACME protocol drastically reduces the surface area for attacks on the verification process. See slides[1].)

[1]: http://www.thedotpost.com/2016/10/matthew-holt-go-with-acme

Re:CA Comodo used broken OCR and issued certificates to the ... by hannob on Friday October 21, 2016 @12:32PM (#12761825)
This comes up so often, and I really wonder what the logic behind this should be. "We have identified a security problem. Therefore instead of fixing it we should abandon all security." Doesn't seem to make a lot of sense to me.
Re:CA Comodo used broken OCR and issued certificates to the ... by josho on Friday October 21, 2016 @01:01PM (#12762204)
No the problem is that we centralized trust instead of designing a distributed trust model. I suspect we centralized trust at the encouragement of folks like the NSA and similar ilk.

Regardless, look at the vast majority of technical users relying on SSH without using a CA for secure communications, had browsers done a better job at self-signed certs we could be doing the same on the web.

Re:CA Comodo used broken OCR and issued certificates to the ... by gsnedders on Friday October 21, 2016 @02:54PM (#12763451)
> Regardless, look at the vast majority of technical users relying on SSH without using a CA for secure communications, had browsers done a better job at self-signed certs we could be doing the same on the web.

How many technical users actually check the fingerprint matches the expected one of the server, out-of-band? Almost everyone I know just accepts the unknown fingerprint, so almost nobody knows who the endpoint they're actually connected to is.

Re:CA Comodo used broken OCR and issued certificates to the ... by emodendroket on Friday October 21, 2016 @04:15PM (#12764265)
It works OK as long as you're connecting to the correct one the first time, I suppose. But yeah, I agree.
Re:CA Comodo used broken OCR and issued certificates to the ... by jb613 on Friday October 21, 2016 @05:20PM (#12764953)
> I suspect we centralized trust at the encouragement of folks like the NSA and similar ilk.

In the mid-90's, CA certs were put into Netscape Navigator (IE joined later) in order to facilitate the new wild wacky concept that someone might buy something online. They called it "e-commerce".

Trust was centralized because it was far easier to add the then ~half-dozen CA's rather then somehow vetting every joe that wanted to self-sign their certs. PGP's web-of-trust existed but it was deemed less viable.

Besides, the whole SSL certs thing was a major business premise behind creating Netscape - profits. Without that there might not have been a dot-com and the huge amount of money that followed since then.

Re:CA Comodo used broken OCR and issued certificates to the ... by deckar01 on Friday October 21, 2016 @01:08PM (#12762293)
I think you are confusing trust with security. If only there was some sort of distributed cryptographic system that let you choose who to trust...
Re:CA Comodo used broken OCR and issued certificates to the ... by wolf550e on Friday October 21, 2016 @12:06PM (#12761563)
If the browser adopts a trust-on-first-use policy with self signed certificates and the certificate is replaced (possibly because it has expired), how do you know whether it's MiTM or benign?
Re:CA Comodo used broken OCR and issued certificates to the ... by LukeShu on Friday October 21, 2016 @12:28PM (#12761788)
I recall a website with a self-signed cert, but they had a non-https page that had a their TLS cert fingerprint signed with their GPG key; which effectively moved the trust from the centralized CA system to the PGP web of trust.

I think it would be cool to have a standard URL (/.well-known/certificate or something) that explains why you should trust their self-signed certificate, and have the browser show that as part of the view when you encounter a self-signed cert.

Re:CA Comodo used broken OCR and issued certificates to the ... by 45h34jh53k4j on Friday October 21, 2016 @12:37PM (#12761889)
Then you have leaked material over http or some other cleartext protocol. If you try to add encryption to that you just have turtles or move the key exchange somewhere else.

The current PKI system allows you to make an unsolicited encrypted connections to an internet origin over an untrusted connection with strong server authentication.

Self signed can not provide this. We do not want the web to be like SSH.

Re:CA Comodo used broken OCR and issued certificates to the ... by geofft on Friday October 21, 2016 @12:43PM (#12761962)
How many people do you think actually verified the PGP key? https://xkcd.com/1181/

Also, PGP is a very different security model - in order to effectively use PGP, you need to go disclose your government identity to a handful of other people who are already in the strong set. That's not a great fit for the web.

Re:CA Comodo used broken OCR and issued certificates to the ... by bandrami on Friday October 21, 2016 @12:51PM (#12762070)
Just like you do with ssh: you ask the site administrator.

Now, if you have a CA who gives out certificates to parties who should not have them, and that CA can sign certificates for any domain, how do you know if any connection is a MiTM or benign? Do you actually check the issuer every time you connect to a secure site?

CAs give a false sense of security. We need to move off this model.

Re:CA Comodo used broken OCR and issued certificates to the ... by icebraining on Friday October 21, 2016 @07:15PM (#12765727)
Just like you do with ssh: you ask the site administrator.

How?

CAs give a false sense of security. We need to move off this model.

Maybe, but not by adopting the politician's syllogism. We should only move to a better model. As easy as it may be, it's still slightly harder to get a CA to sign a cert for a domain you don't control than it is to sign them yourself, and that shouldn't be dismissed.

Re:CA Comodo used broken OCR and issued certificates to the ... by jasonjayr on Friday October 21, 2016 @01:26PM (#12762496)
TOFU + a standard or convention for validating keys with Face-To-Face verfication?

If I go to a bank or business, and as part of setting up a relationship they hand me a pamphlet printed with their Public Key Fingerprint, AND the browser shows me that fingerprint image at first use, ..... then that's pretty reliable verification, isn't it?

Re:CA Comodo used broken OCR and issued certificates to the ... by icebraining on Friday October 21, 2016 @07:16PM (#12765734)
Where would you go to check for Amazon's fingerprint?
Re:CA Comodo used broken OCR and issued certificates to the ... by jasonjayr on Friday October 21, 2016 @07:58PM (#12766015)
A standard for face-to-face TOFU checking would be in addition to the PKI infrastructure, and to facilitate a secure way to use self-signed certs.

Obviously we've never had face-to-face relationships with the likes of Paypal, Stripe, etc, and would still rely on our browser and operating system vendors to validate the chain of authority.

Re:CA Comodo used broken OCR and issued certificates to the ... by robryk on Friday October 21, 2016 @12:19PM (#12761679)
Have a self-signed CA certificate with a longish expiration and sign the actual keys the webservers use with that. Apply TOFU to that CA certificate (on a per-domain basis).

There's IIRC no mechanism for that, but for the single-domain CA key it'd make sense to sign the new one with the old one.

Re:CA Comodo used broken OCR and issued certificates to the ... by 45h34jh53k4j on Friday October 21, 2016 @12:40PM (#12761919)
TOFU is bad for the web. Its is much easier to MiTM https vs ssh. Many vendors will sell your enterprise kit to do it to all users.

There will be some jurisdictions where MiTM is always and unavoidable. TOFU can't work here.

These things must be universal, and TOFU can never be universal.

Re:CA Comodo used broken OCR and issued certificates to the ... by nsgi on Friday October 21, 2016 @01:37PM (#12762635)
Self signed certificates are always less valuable than purchased ones. The worst case CA breach is equivalent to the normal case of self-signed certificates: a certificate is misissued and an attacker can carry out an active MITM attack. A CA breach cannot enable passive attacks because they don't know the private keys of certificates used by websites.
Re:CA Comodo used broken OCR and issued certificates to the ... by rnhmjoj on Friday October 21, 2016 @12:08PM (#12761585)
And give no warning for plain HTTP pages.
Re:CA Comodo used broken OCR and issued certificates to the ... by zetafunction on Friday October 21, 2016 @12:42PM (#12761945)
Actually, both Chromium [1] and Firefox [2] are working on showing plain HTTP as insecure.

[1] https://blog.chromium.org/2016/09/moving-towards-more-secure... [2] https://blog.mozilla.org/tanvi/2016/01/28/no-more-passwords-...

Re:CA Comodo used broken OCR and issued certificates to the ... by bandrami on Friday October 21, 2016 @12:52PM (#12762091)
Great, but if they're treating unvalidated certificates as in any way worse than plaintext (they're strictly better), they are still completely wrong.
Re:CA Comodo used broken OCR and issued certificates to the ... by 45h34jh53k4j on Friday October 21, 2016 @01:22PM (#12762459)
I don't think you can say that self-signed is strictly better than plaintext.

Plaintext HTTP gives no illusion that your connection has confidentially, authentication nor integrity.

HTTPS is meant to provide all of these things. With a validated, trusted certificate, you get these things. With a self-signed cert, you have none of these things.

Knowing that I don't have things is better than thinking i have these things and not.

So no, untrusted self-signed can't ever be better.

Note cant reply to reply, but all i can say is

"With a self-signed cert, I know I am talking to exactly one party and that no third party can surveil or monitor that communication. "

(This is not true, as this could easily be my MiTM Proxy that is substituting your self signed public key). Once you introduce 'trusts' you are back to CA land.

Re:CA Comodo used broken OCR and issued certificates to the ... by bandrami on Friday October 21, 2016 @01:28PM (#12762528)
Sigh. This nonsense again.

HTTPS is meant to provide all of these things.

No. This is absolutely false. HTTPS is a transport protocol (that's the second T) and provides point to point security, only. The fact that we have grafted onto this protocol the notion of authenticity as verified by a warden is an historical accident (and frankly the cause of many problems).

With a self-signed cert, you have none of these things.

With a self-signed cert, I know I am talking to exactly one party and that no third party can surveil or monitor that communication. This is a channel over which the second party and I can then negotiate authenticity, which is a much better way to do it than the two-headed monster we've built for ourselves.

Furthermore, for the vast majority of websites I visit, an assurance from a third party that they are who they say they are is of absolutely no value to me. Take HN: I do not particularly trust ycombinator.com more than I would trust a phisher trying to convince me he is ycombinator.com, so a third party's assurance that this is in fact ycombinator.com doesn't give me any useful information.

Re:CA Comodo used broken OCR and issued certificates to the ... by mikeash on Friday October 21, 2016 @02:06PM (#12762957)
Is authenticity provided by third parties really "grafted onto" HTTPS? As far as I can tell, that was part of SSL from day one.
Re:CA Comodo used broken OCR and issued certificates to the ... by bandrami on Friday October 21, 2016 @03:14PM (#12763639)
And it shouldn't have been. These are two separate questions.

Think about it. If you connected to my blog, would it actually give you any useful information if Thawte assured you I am who I say I am? You don't have any reason to trust me more than you would trust someone pretending to be me, because I'm some rando with a blog you got linked to.

Re:CA Comodo used broken OCR and issued certificates to the ... by vertex-four on Saturday October 22, 2016 @12:16PM (#12769254)
What use is TLS if I can't know that when my browser says I'm talking to example.com, I'm actually talking to example.com? I've got a secure connection... to literally anyone who can mitm me. PKI isn't 100% secure, but it raises the barrier significantly. I, as someone who owns a coffee shop or runs a corporate network, can't just go out and get a cert for google.com.
Re:CA Comodo used broken OCR and issued certificates to the ... by emodendroket on Friday October 21, 2016 @04:17PM (#12764284)
No, but that's not the case I care about; I care about whether when I go to my bank's Web site I'm actually talking to a server controlled by my bank.
Re:CA Comodo used broken OCR and issued certificates to the ... by bandrami on Friday October 21, 2016 @04:26PM (#12764383)
So do you trust that Comodo (or any one of the other 180 or so CAs your browser trusts) will not issue a certificate for your bank to the wrong person, after reading this bug report?

I mean, obviously my dream solution where my bank hands me a USB stick with their public key on it when I open an account isn't really feasible, but this bug report makes me wonder what value PKI is really adding.

Re:CA Comodo used broken OCR and issued certificates to the ... by emodendroket on Friday October 21, 2016 @08:21PM (#12766143)
If that happens (and there are a fair number of pieces that had to fall into place for this attack to work) it puts us back to where it would be if we had no CA. So, do I have absolute confidence? No. But I think the risk is significantly reduced.
Re:CA Comodo used broken OCR and issued certificates to the ... by bandrami on Friday October 21, 2016 @09:35PM (#12766501)
Right, which is why I said we should treat Comodo certificates as if they were self-signed.
Re:CA Comodo used broken OCR and issued certificates to the ... by emodendroket on Saturday October 22, 2016 @03:12PM (#12770115)
I don't think you really got what I was trying to say if that's your response.
Re:CA Comodo used broken OCR and issued certificates to the ... by 45h34jh53k4j on Friday October 21, 2016 @01:46PM (#12762730)
subs TLS then; this isnt about the semantics of names. Server Authenticated TLS provides these things.

"With a self-signed cert, I know I am talking to exactly one party and that no third party can surveil or monitor that communication."

You can't state this. The self-signed cert you are seeing could be the one that my MiTM proxy has substituted on your connection! The only thing that saves you is your Trust Store. I feel like you don't quite understand public key substitution and MiTM attacks. This isnt a Phishing problem, its a 'breaking the encryption between client and server' problem.

"Furthermore, for the vast majority of websites I visit, an assurance from a third party that they are who they say they are is of absolutely no value to me. Take HN: I do not particularly trust ycombinator.com more than I would trust a phisher trying to convince me he is ycombinator.com, so a third party's assurance that this is in fact ycombinator.com doesn't give me any useful information."

This is HIGHLY ALARMING! If this is the case then please use my proxy server and do your banking. Im sure its cool, you don't need to check with a third party that i'm not messing with your encrypted connections.

Re:CA Comodo used broken OCR and issued certificates to the ... by bandrami on Friday October 21, 2016 @01:56PM (#12762865)
The self-signed cert you are seeing could be the one that my MiTM proxy has substituted on your connection!

Which makes that MiTM the one and only one party with whom I am communicating. And I know no other party is surveiling or altering this phishing attempt.

Over this secure channel, my phisher and I can negotiate authenticity, which hopefully he will fail.

If this is the case then please use my proxy server and do your banking.

Sigh. My bank is not ycombinator.com. I don't think YC is even a bank. My bank is one of the few sites I mentioned where I do care about their authenticity because I do trust them more than I trust a potential phisher.

Re:CA Comodo used broken OCR and issued certificates to the ... by 45h34jh53k4j on Friday October 21, 2016 @02:18PM (#12763085)
I do not believe you understand MITM attacks.

You are not simply substituting the origin with a phish, you are reading/modifying traffic by a third party without any possible detection from the server.

There are three parties. You, Me (the mitm) and your bank. (assuming your bank uses self signed, which it doesnt). Ive substituted my self-signed cert with the banks in your TLS handshake. I then reencrypt everything you send me to the bank. Bank can't distinguish you and I.

We solve this with PKI and trusts.

Re:CA Comodo used broken OCR and issued certificates to the ... by bandrami on Friday October 21, 2016 @02:33PM (#12763244)
I think you're still misunderstanding MiTM attacks. There is no "third party". I'm not communicating with my intended recipient at all: I'm communicating with precisely one person, the phisher. And this can only be "solved" with PKI if we have CA's who don't do the sort of thing outlined in this bug report. But we do.
Re:CA Comodo used broken OCR and issued certificates to the ... by function_seven on Friday October 21, 2016 @04:25PM (#12764374)
The MitM is in the middle of something, no? You're "A", the site you intend to connect to is "Z", and the MitM is "M".

In this scenario, you're communicating with Z, while M listens in. Anything you send down the pipe can be transparently proxied by M and relayed to Z.

What mechanism can you use to verify the authenticity of the other end that can't be spoofed by M, now that they're inserted into the communication path?

Re:CA Comodo used broken OCR and issued certificates to the ... by bandrami on Friday October 21, 2016 @06:03PM (#12765289)
What mechanism can you use to verify the authenticity of the other end that can't be spoofed by M

No such mechanism exists, as this bug demonstrates.

Re:CA Comodo used broken OCR and issued certificates to the ... by Aaron1011 on Friday October 21, 2016 @03:16PM (#12763677)
> Plaintext HTTP gives no illusion that your connection has confidentially, authentication nor integrity.

Without an explicit warning, it's not going to be at all obvious to the average user - or anyone who forgets to check the address bar/isn't enforcing HTTPS - that the connection lacks those properties.

Re:CA Comodo used broken OCR and issued certificates to the ... by pacey on Friday October 21, 2016 @05:10PM (#12764848)
> This is not true, as this could easily be my MiTM Proxy that is substituting your self signed public key

Yeah, but with the current model it could also be subsituted with a cert for which comodo has fucked up the verification again.

Re:CA Comodo used broken OCR and issued certificates to the ... by rnhmjoj on Friday October 21, 2016 @12:53PM (#12762111)
That's good but it should require a confirmation like it's done for self-signed certs, at least when submitting a form.
Re:CA Comodo used broken OCR and issued certificates to the ... by emodendroket on Friday October 21, 2016 @04:14PM (#12764256)
How do you prevent man-in-the-middle attacks without the CA?