News for hackers. Stuff that matters.
Re:Linus Torvalds Interview for LinuxFR by tbassetto on Wednesday May 04, 2011 @05:36AM (#2513298)
Almost all browsers will show a warning about the certificate… Link without https : http://linuxfr.org/nodes/85904/comments/1230981
Re:Linus Torvalds Interview for LinuxFR by smanek on Wednesday May 04, 2011 @06:10AM (#2513347)
Off-topic, but does anyone know why browsers go crazy about self signed certs?

It's not as good as one signed by an ostensibly trusted CA, but it's strictly better than plain HTTP (no sniffing, harder MITM, etc) - so why not present it to the user the same way that plain HTTP is?

The conspiracy theorist in me wonders if trusted CAs 'lobby' browser vendors to make it so?

Re:Linus Torvalds Interview for LinuxFR by pmjordan on Wednesday May 04, 2011 @06:44AM (#2513410)
Self-signed certificates don't prevent MITM attacks on connecting unless you've transmitted the certificate securely out-of-band and installed it in the client's browser. (which practically never happens with sites on the open internet) They only prevent tampering with the connection once it's established.

The browser should jump up and down when encountering such a certificate as it's exactly how an attempted MITM attack would look.

Re:Linus Torvalds Interview for LinuxFR by smanek on Wednesday May 04, 2011 @06:59AM (#2513439)
Granted, it doesn't provide as much protection as a cert signed by a trusted CA - but it's still far more protection than plain HTTP, right? e.g, Firesheep wouldn't work

I don't know if browsers do this, but in principle they could even notify the user on certificate change, so the MITM would have to be on the first connection to a site.

Re:Linus Torvalds Interview for LinuxFR by vladd on Wednesday May 04, 2011 @08:39AM (#2513599)
Introducing a "third state" for the SSL indicator, usability-wise, is very difficult. A lot of browser users don't understand SSL, and those that do have a binary understanding of the protocol: it can be used to either confirm or refute the identity of a website. It's very difficult to implement a UI for the regular users that says: "this might be a MITM attack since I cannot confirm the identity of the site but at least I can confirm that it's the same with the one that you connected with the first time".
Re:Linus Torvalds Interview for LinuxFR by jrockway on Wednesday May 04, 2011 @12:34PM (#2514349)
Firesheep would work.

The attack is more involved than just openly sniffing packets. You need to poison the DNS cache on the victim's machine, so that facebook.com resolves to you. Or, you need to poison the ARP cache, so the victim machine thinks that you are the router. These are both easy to do, though, and once you've done that, then you are a man that's in the middle, and MITM attacks are easy under those circumstances.

"ettercap" is a program to automate this technique to spy on SSH, HTTPS, etc. Works quite well.

Re:Linus Torvalds Interview for LinuxFR by MatthewPhillips on Wednesday May 04, 2011 @08:39AM (#2513600)
It's a false sense of security, which is why they put the warning. You have no sense of security when visiting a plain http site.
Re:Linus Torvalds Interview for LinuxFR by wazoox on Wednesday May 04, 2011 @06:21AM (#2513361)
It's explained on the Wikipedia entry : http://en.wikipedia.org/wiki/Self-signed_certificate

Basically, self-signed certificates can't be revoked in case of a security breach.

There's an excellent resume of the discussion of the subject at Mozilla : http://www.gerv.net/security/self-signed-certs/

Re:Linus Torvalds Interview for LinuxFR by smanek on Wednesday May 04, 2011 @06:50AM (#2513423)
Any attack I can think of that exploits that fact would work at least as easily on plain HTTP. And there are a large class of attacks that work on plain HTTP but not with a self signed cert.

Can you think of any counter examples? (Note: I'm a security noob - so I'm asking out of sincere curiosity).

Re:Linus Torvalds Interview for LinuxFR by wladimir on Wednesday May 04, 2011 @06:55AM (#2513433)
I don't think there is any doubt that even with a self-signed certificate, HTTPS is more secure than HTTP. At the least, it makes interception/sniffing/modification a bit harder. Security, after all, is about making attacks more difficult and costly.

Still there is good reason that browsers rub it in the users face when a site tries to use a self-signed certificate. The user has to be really really sure that this is expected (it is like the SSH "the remote host key has changed" warnings).

Re:Linus Torvalds Interview for LinuxFR by smanek on Wednesday May 04, 2011 @07:05AM (#2513451)
Maybe I'm missing your answer there ... You just say:

Still there is good reason that browsers rub it in the users face when a site tries to use a self-signed certificate

but I don't see where you say what that good reason is.

If a self-signed cert is more secure than plain HTTP, why make a self-signed cert more painful to use than plain HTTP?

Re:Linus Torvalds Interview for LinuxFR by wladimir on Wednesday May 04, 2011 @07:23AM (#2513474)
Because with HTTP, there is no assumption of security at the side of the user, or at least there shouldn't be. With HTTPS (and the "lock symbol") there is.

The people that really know what they're doing can click through the warnings and still do what they want. But casual users that assume https=safe have the chance to leave.

I'm all for deprecating HTTP the same way they did with TELNET, and warning the user for every HTTP site they go to, but that's a wholly different discussion :)

Re:Linus Torvalds Interview for LinuxFR by goldmab on Wednesday May 04, 2011 @08:43AM (#2513611)
The browser could just not show the "secure" visuals, instead of making us click through another page.
Re:Linus Torvalds Interview for LinuxFR by wladimir on Wednesday May 04, 2011 @09:46AM (#2513783)
Well, the warnings are only shown once. Once you import the self-signed certificate into your keystore, it never bothers you again (unless the certificate changes).

This is the right workflow you should follow with self-signed certificates, it is similar to SSH. You need to accept the certificate once. After manually verifying it is the right one, you're even more secure than trusting on a CA...

Re:Linus Torvalds Interview for LinuxFR by goldmab on Wednesday May 04, 2011 @10:21AM (#2513893)
It's a usability problem. Firefox (at least 3.x) does a full-on freak-out if the cert is untrusted, despite the fact that the site is no more unsafe than an unencrypted website.

Your statements about what should happen are only true if you are requiring encryption for everything that you do. On the web, it's assumed (although most people don't actually know this) that your information is not secure unless you see the green bar or whatever the security visual is on your particular browser.

This brings me back to smanek's point. We have three levels of security: no SSL, untrusted cert, trusted cert. Nothing about the first level is superior to the second level, except for the possibility of a false sense of security. Therefore, a browser should not freak out more in the second situation.

Re:Linus Torvalds Interview for LinuxFR by burgerbrain on Wednesday May 04, 2011 @01:27PM (#2514543)
Ah, but HTTPS with unsigned certs are less secure than plain old HTTP.

Or more accurately, for all intents and purposes they are exactly as secure, but carry an unearned sense of security. Unjustified senses of security are a very very dangerous thing.

Re:Linus Torvalds Interview for LinuxFR by goldmab on Wednesday May 04, 2011 @02:03PM (#2514668)
That's exactly what I said. But if the browser doesn't show any indication that it's secure, the problem doesn't exist. The way some browsers behave, there's a very strong implication that a website with a self-signed cert is more likely to result in your information being stolen than a website with no encryption. And that's not true.
Re:Linus Torvalds Interview for LinuxFR by burgerbrain on Wednesday May 04, 2011 @02:12PM (#2514691)
If the browser (or even the URL that got the user there) even so much as shows the string "https", that is a form of positive feedback. The only responsible way for a browser to act is to give a strong negative feedback, to more than offset any potential positive feedback.
Re:Linus Torvalds Interview for LinuxFR by goldmab on Wednesday May 04, 2011 @02:18PM (#2514714)
Chrome (in some situations, I forget which) puts the "https" in red and strikes it through. The implied message: this is HTTPS, but it's broken or bad.

The important thing here is that a browser can do something like this without interrupting something that the user actually cares about with an annoying message. Annoying messages are bad.

Re:Linus Torvalds Interview for LinuxFR by burgerbrain on Wednesday May 04, 2011 @02:47PM (#2514825)
Annoying messages are good when it is vital that the user be annoyed (read: informed).
Re:Linus Torvalds Interview for LinuxFR by ilcavero on Wednesday May 04, 2011 @07:51AM (#2513522)
I think the problem is with firefox warning annoyance, in chrome you get a good short explanation of what's going on and a button to continue (plus a graphical indication afterward that https is somehow not working), on firefox on the other hand you get a warning with a hidden section where there is a button to open a pop-up window that will then allow you to download/view the certificate and press "confirm security exception".

In summary, firefox exaggerated with their warning, I'm wondering if it is possible to do an addon to fix this.

Re:Linus Torvalds Interview for LinuxFR by codeup on Wednesday May 04, 2011 @07:41AM (#2513502)
The CA system is broken and browser vendors try to deal with it. Deal with it = trade off between security and (in)convenience.