News for hackers. Stuff that matters.
Re:What we give away when we log on to a public Wi-Fi network by sktrdie on Saturday October 18, 2014 @04:55PM (#8476272)
How was the hacker able to get Facebook credentials? Facebook uses HTTPS and so does Live.com. Even if I'm connected to a malicious router, only me and Facebook know about the data we're sending each other.

Am I missing something or should the author of this article provide more evidence on the type of attack?

Re:What we give away when we log on to a public Wi-Fi network by xamolxix on Saturday October 18, 2014 @05:05PM (#8476300)
I suspect it's not plain old sniffing. He might give fake DNS records to point to his own phishing site (facebook clone). It's trivial to re-post the credentials to the real facebook check the password and then actually log them in. curl can be used to do this, as I am sure many others.

Edit: SSL does not have to be used on the clone. Most people will not notice/care.

Re:What we give away when we log on to a public Wi-Fi network by lucb1e on Saturday October 18, 2014 @05:11PM (#8476319)
You can't spoof a certificate with DNS. Even if you spoofed a DNS response and made facebook.com point to 192.168.1.2 then the server at 192.168.1.2 (which could be yours) would still need a valid certificate for facebook.com.

The only way to have done this is by having the user click "continue" or "ignore" or something on an ssl error page. I know from experience that a company full of programmers will happily do that. Only a few percent would go "wait a minute, this is Facebook. That certificate should be valid." Some people here might reply "no way", but HN generally contains the one percent.

Edit: This is almost correct. You can actually prevent being redirected from http to https when typing in "facebook.com" without https:// in front. My bad.

Still though, the attentive user would notice the missing padlock. I check it 3/4 times, and 4/4 times when using a public network. I also refrain from using http sites where I log in (some forums I visit do that). But again, probably less than one percent of the tech people do that.

Re:What we give away when we log on to a public Wi-Fi network by MisterNegative on Saturday October 18, 2014 @05:14PM (#8476337)
If you don't type the https url, you start by visiting the http website. Normally the http version will redirect to https, but a man in the middle can easily prevent this.
Re:What we give away when we log on to a public Wi-Fi network by goblin89 on Saturday October 18, 2014 @05:55PM (#8476461)
> If you don't type the https url, you start by visiting the http website. Normally the http version will redirect to https, but a man in the middle can easily prevent this.

This is not entirely correct. HSTS[0] was designed to protect against such attacks.

It's true, however, that not every browser out there supports it yet, and you must visit the website at least once without MITM for the server to successfully communicate HSTS header. (In Chrome certain domains are included in built-in list[1], though.)

[0] https://developer.mozilla.org/en-US/docs/Web/Security/HTTP_s...

[1] https://src.chromium.org/viewvc/chrome/trunk/src/net/http/tr...

Re:What we give away when we log on to a public Wi-Fi network by iancarroll on Saturday October 18, 2014 @05:25PM (#8476372)
https://hstspreload.appspot.com/ says they don't use HSTS as a preload. They should...
Re:What we give away when we log on to a public Wi-Fi network by Wilya on Saturday October 18, 2014 @05:40PM (#8476414)
Facebook seems to be doing some client sniffing to decide whether to set the headers..

In my browser (FF nightly), I see the HSTS header, with the value: "max-age=15552000; preload"

If I do a request with curl, no header... (which is probably what this app sees).

I don't have a clue why they are doing that, though. Not that curl would do something with the HSTS header anyway, but still...

Re:What we give away when we log on to a public Wi-Fi network by zokier on Saturday October 18, 2014 @05:49PM (#8476444)
Facebook has HSTS preload on www.facebook.com, but not on the redirect from facebook.com->www.facebook.com. I suppose they have their reasons
Re:What we give away when we log on to a public Wi-Fi network by ma2rten on Sunday October 19, 2014 @01:11AM (#8477274)
Google.com also doesn't seem to have it.
Re:What we give away when we log on to a public Wi-Fi network by iancarroll on Monday October 20, 2014 @07:34AM (#8481575)
Google only uses a certificate pin and doesn't force SSL. Sadly.
Re:What we give away when we log on to a public Wi-Fi network by lucb1e on Saturday October 18, 2014 @05:16PM (#8476343)
Yes! I just thought of this and was going to edit it in, but you are quicker. Many websites still don't use HSTS, and in any case this article is from a few months ago (I remember reading it) and HSTS is pretty new.
Re:What we give away when we log on to a public Wi-Fi network by uberneo on Sunday October 19, 2014 @07:35PM (#8480009)
SSL Strip does works here
Re:What we give away when we log on to a public Wi-Fi network by mattmanser on Sunday October 19, 2014 @06:08AM (#8477828)
Perhaps you haven't seen the certificate errors for quite a while, but they are now quite forceful about you not clicking OK. The Ok is hidden.
Re:What we give away when we log on to a public Wi-Fi network by weaksauce on Saturday October 18, 2014 @05:11PM (#8476320)
also, most people are not savvy enough to check the ssl credentials or to even see that they are not on a ssl enabled site. even if the phishing attack was slow, people have lower expectations for speed in a coffee shop.
Re:What we give away when we log on to a public Wi-Fi network by leepowers on Saturday October 18, 2014 @06:37PM (#8476582)
If an attacker controls the access point he could do the following:

* Redirect all HTTPS traffic to an HTTP spoof site. Many users probably wouldn't notice.

* If the attacker has access to a short, 2-3 character domain, they could redirect to a wildcard HTTPS connection like, https://facebook.aa.com/ - again, many users wouldn't notice. They'd see "facebook" and the lock icon and assume they're ok.

* In either case the attacker could simply proxy all HTTP requests from victim to Facebook (or any other site). So the user's browsing experience remains the same but all passwords, cookies and personal info are logged. Scary stuff!

Re:What we give away when we log on to a public Wi-Fi network by MichaelGG on Saturday October 18, 2014 @09:58PM (#8476993)
Probably don't even need a short domain. Facebook.login.secureauthredirectsystem.moregibberish.com probably would seem sorta legit. After all, Microsoft's auth systems do crazy stuff like that. So does the moronic Verified by Visa system - it's something like "ww2.secpayment.com" and looks totally sketchy but it's legit.
Re:What we give away when we log on to a public Wi-Fi network by voltagex_ on Sunday October 19, 2014 @07:03PM (#8479944)
So does MasterCard (for "3D Secure" 2 factor auth) - I had to do a whois/traceroute on the domain before I trusted it the first time.
Re:What we give away when we log on to a public Wi-Fi network by huntaub on Saturday October 18, 2014 @10:33PM (#8477046)
Can you clarify the first point more? I would assume that if the user is able to connect to "facebook.com", then the connection would immediately go to HTTPS and the router could not "forcefully redirect" or do anything to the connection.

Alternatively, I could imagine a situation where the router hijacks the _DNS_ request for Facebook to a malicious site. Is that what you were referring to?

Re:What we give away when we log on to a public Wi-Fi network by smtddr on Saturday October 18, 2014 @10:42PM (#8477055)
Don't know if this works still today... but I've definitely used it before: http://www.thoughtcrime.org/software/sslstrip/
Re:What we give away when we log on to a public Wi-Fi network by domenicd on Sunday October 19, 2014 @12:16AM (#8477200)
I think that attack is exactly what HSTS (https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security) is meant to solve.
Re:What we give away when we log on to a public Wi-Fi network by cbsmith on Sunday October 19, 2014 @12:22AM (#8477209)
HSTS and bookmarks... along with settings increasingly built in to a lot of browsers should make it all but impossible to MITM facebook.com.

There is a bit of a weak link with DNSSec, but in truth there are WAY easier ways to get someone's Facebook ID once you can spoof traffic to them.

Re:What we give away when we log on to a public Wi-Fi network by Sami_Lehtinen on Sunday October 19, 2014 @12:31AM (#8477221)
You can't redirect https traffic to http, without having valid certificate. But of course with all these CA problems, it could be possible to arrange one. It's then another story, if users use http -> https recirection in first place. Due to leaving the https prefix out from the url when connecting the site very first time. That's immediate security fail, but it's up to users to get this straight. HSTS won't help because due to privacy mode, all data between browser sessions will be purged, including HSTS data. Any failure to purge any data between sessions, could break privacy, because then it's known that you have already visited that site. But these questions are quite complex. Which is best configuration for each situation needs to be very carefully considered. I personally like DANE, if I would be running any serious service, I would configure it. Some of my friends have already done that.
Re:What we give away when we log on to a public Wi-Fi network by Maxnuf on Sunday October 19, 2014 @07:49AM (#8477990)
In the original Dutch article (https://decorrespondent.nl/845/Dit-geef-je-allemaal-prijs-al...) the author explained in the comments that they used SSLstrip for facebook and live.com So, the connection was over HTTP and not HTTPS. They added a padlock favicon.ico image to give the impression the site was secure
Re:What we give away when we log on to a public Wi-Fi network by k_bx on Sunday October 19, 2014 @08:14AM (#8478040)
Ah. I wonder how hard would it be to extend protocol to let Facebook, for example, state that they will never go https again, so that browser would scream.
Re:What we give away when we log on to a public Wi-Fi network by Quentangle on Sunday October 19, 2014 @08:38AM (#8478078)
Re:What we give away when we log on to a public Wi-Fi network by k_bx on Sunday October 19, 2014 @11:53AM (#8478563)
That is cool, thank you!
Re:What we give away when we log on to a public Wi-Fi network by DasIch on Sunday October 19, 2014 @08:44AM (#8478094)
Isn't this exactly what HSTS is for?
Re:What we give away when we log on to a public Wi-Fi network by zokier on Saturday October 18, 2014 @05:00PM (#8476282)
sslstrip might explain that, but don't most major sites use HSTS these days?
Re:What we give away when we log on to a public Wi-Fi network by thomble on Sunday October 19, 2014 @02:11PM (#8479001)