News for hackers. Stuff that matters.
Re:Bringing HSTS to www.google.com by chinathrow on Friday July 29, 2016 @04:37PM (#12189803)
Doesn't that mean that wifi captive portals using www.google.com won't be able to take over the connection and re-direct to the captive portal?
Re:Bringing HSTS to www.google.com by greggman on Saturday July 30, 2016 @01:06AM (#12191721)
I'm actually curious how anyone not a geek gets on Wifi at many coffee shops etc. Many captive portals don't seem to do anything and chrome just says "can't connect" or "cert bad". I used to go to test.com, now I go to foo.com. But I'm geek. What do all the non-geeks do?
Re:Bringing HSTS to www.google.com by ckuehl on Saturday July 30, 2016 @01:13AM (#12191734)
Most operating systems have started detecting captive portals and presenting a notification. All of the modern consumer ones (OS X, Windows, Android, iOS) appear to have this detection. (I don't use it so not sure how well it works, though.)
Re:Bringing HSTS to www.google.com by mseebach on Saturday July 30, 2016 @05:37AM (#12192307)
I used to stay a lot at a hotel that would "helpfully" exempt a good number of domains from the captive browser, including whatever macs and androids use to detect connectivity...

There should really be a standard for dealing with this, like a flag on DHCP saying "O HAI you need to login here", and providing a REST endpoint that will tell the OS the status of the connection at any given time.

Re:Bringing HSTS to www.google.com by praseodym on Saturday July 30, 2016 @07:08AM (#12192495)
As if such a standard would help for these WiFi providers that explicitly take steps to avoid captive portal detection?
Re:Bringing HSTS to www.google.com by nsgi on Saturday July 30, 2016 @03:14PM (#12194269)
Surely it's not in their interest to avoid captive portal detection, anyway? After all, it helps them advertise their product!
Re:Bringing HSTS to www.google.com by icebraining on Saturday July 30, 2016 @04:16AM (#12192129)
Bugs will happen, but it's a very simply operation, they simply load an HTTP URL that has an expected response (Google's is just a 204 No Content) and check if it matches.
Re:Bringing HSTS to www.google.com by cmdrfred on Saturday July 30, 2016 @01:34AM (#12191780)
Chromebook does as well. Works great.
Re:Bringing HSTS to www.google.com by jjp on Saturday July 30, 2016 @03:16AM (#12191995)
1. Complain that the internet isn't working. 2. Talk to friendly geek who explains going to non Secure site forces pop-up 3. Forget that this work around applied in all cafe and not just the one were problem solved. Goto 1.
Re:Bringing HSTS to www.google.com by jc4p on Friday July 29, 2016 @04:45PM (#12189845)
This was my immediate first thought too. A lot of subway stations got WiFi in NYC and for the one directly underneath my office I always had to load Google first to get the login portal to load. Any other websites I visit (including this one) just displayed a HSTS error instead.
Re:Bringing HSTS to www.google.com by niftich on Friday July 29, 2016 @04:56PM (#12189932)
You can use http://example.com operated by the IANA, which is accessible though http and https.

Since an auto-upgrade to https would break a considerable number of examples, and there's no compelling business need on their part to promote https-only, it's much more likely to stay available through http than just about any other website run by commercial interests.

Re:Bringing HSTS to www.google.com by Nullabillity on Friday July 29, 2016 @09:31PM (#12191220)
example.com just seems to point to localhost for me. Weird...
Re:Bringing HSTS to www.google.com by toast0 on Friday July 29, 2016 @09:47PM (#12191249)
Possibly you have a config somewhere that has example.com in it... Could try example.org instead?
Re:Bringing HSTS to www.google.com by Nullabillity on Saturday July 30, 2016 @05:49AM (#12192326)
Same thing there. Oddly enough, `dig @8.8.8.8 example.com` seems to work. No mention of it in /etc/hosts. Guess my ISP must be up to some shenanigans. :/
Re:Bringing HSTS to www.google.com by cocotino on Saturday July 30, 2016 @06:59AM (#12192481)
With mine I get:

    Host example.com not found: 5(REFUSED)
Re:Bringing HSTS to www.google.com by AntiRush on Friday July 29, 2016 @05:12PM (#12190032)
http://http.rip will always be http only; it's the domain I use for this purpose.
Re:Bringing HSTS to www.google.com by jevinskie on Friday July 29, 2016 @08:19PM (#12191002)
Very nice, I didn't know there was a dedicated site for "I need just HTTP" purposes. Thanks for the tidbit!
Re:Bringing HSTS to www.google.com by chinathrow on Tuesday August 02, 2016 @06:59AM (#12209011)
Actually, there is https on the site, at least with a self-signed cert.

https://http.rip/

Re:Bringing HSTS to www.google.com by atdt on Friday July 29, 2016 @07:14PM (#12190768)
You can use the addresses that Google and Apple products use to detect captive portals.

Google uses http://connectivitycheck.gstatic.com/generate_204. Apple uses http://captive.apple.com/hotspot-detect.html and http://www.apple.com/library/test/success.html.

Re:Bringing HSTS to www.google.com by chinathrow on Saturday July 30, 2016 @03:51AM (#12192070)
I was pretty sure that my Android Version uses google.com for the 204 generation. Without further updates, that would break.
Re:Bringing HSTS to www.google.com by icebraining on Saturday July 30, 2016 @04:21AM (#12192142)
Probably not; google.com will still reply on HTTP, it's just that if you have a browser that visits the HTTPS page, it'll record a rule to never visit the HTTP version. I doubt the code doing captive portal detection supports HSTS at all, so most likely it'll still work just fine.
Re:Bringing HSTS to www.google.com by chinathrow on Saturday July 30, 2016 @06:49AM (#12192457)
But that would be exactly the use case here; browse google manually and then hsts kicks in from then on. Later, I get a captive portal wifi and it uses http://www.google.com/generate_204 and whoops, no request sent and no way for the wifi to redirect me to their login portal.

Both happens in chrome hence the same browser context.

Re:Bringing HSTS to www.google.com by icebraining on Saturday July 30, 2016 @08:06AM (#12192630)
Ah, right; I was thinking about the detection mechanism (which probably doesn't use Chrome), not the redirection.
Re:Bringing HSTS to www.google.com by chinathrow on Saturday July 30, 2016 @12:38PM (#12193647)
Right, the detection mechanism is part of the OS, not the browser.

https://developer.android.com/reference/android/net/Connecti...

Re:Bringing HSTS to www.google.com by giovannibajo1 on Friday July 29, 2016 @06:30PM (#12190532)
We must thanks the wifi alliance for not having solved this problem in 15 years while they were busy releasing broken crypto implementations.
Re:Bringing HSTS to www.google.com by TD-Linux on Friday July 29, 2016 @06:59PM (#12190691)
Instead, it looks like the IETF will be the one solving it. https://datatracker.ietf.org/wg/capport/documents/
Re:Bringing HSTS to www.google.com by giovannibajo1 on Saturday July 30, 2016 @06:29AM (#12192417)
Yeah. The wifi alliance track record is so bad that it's a real pity they run one of the most important protocols we have today. They are decades late on most required innovations, and when they try to design something, it's just so severely broken that requires many iterations to get to a decent status. Miracast is another example of being late and failing at producing something decent.
Re:Bringing HSTS to www.google.com by roywiggins on Friday July 29, 2016 @04:55PM (#12189920)
I use xkcd.com for this. Short safe domain, no HSTS.
Re:Bringing HSTS to www.google.com by inopinatus on Friday July 29, 2016 @05:26PM (#12190144)
I use an old and otherwise unused vanity domain hosted on a private server for this.
Re:Bringing HSTS to www.google.com by batbomb on Friday July 29, 2016 @04:52PM (#12189897)
I usually type in a random url, like askdjajrj.com
Re:Bringing HSTS to www.google.com by scrollaway on Friday July 29, 2016 @09:01PM (#12191131)
I use cnn.com. I know they support neither ipv6 nor https, and they don't trigger firewalls.
Re:Bringing HSTS to www.google.com by cpeterso on Friday July 29, 2016 @10:59PM (#12191432)
I use cnn.com too because the name is short and easy to type on my phone. Hopefully they won't switch to HTTPS any time soon. :)
Re:Bringing HSTS to www.google.com by d33 on Friday July 29, 2016 @05:05PM (#12189983)
Only works if you don't use your own DNS.
Re:Bringing HSTS to www.google.com by mappu on Friday July 29, 2016 @07:05PM (#12190719)
...which only works if UDP traffic on port 53 isn't blanket-rerouted.
Re:Bringing HSTS to www.google.com by monorailz on Friday July 29, 2016 @05:43PM (#12190252)
I use the biggest newspaper website in the country I am from since they don't have any TLS at all yet.