News for hackers. Stuff that matters.
Re:Why No HTTPS? by repsilat on Tuesday July 24, 2018 @05:49AM (#17599463)
When I'm on free airport wifi they'll often limit the session to half an hour and then start MITMing your traffic to try to bounce you back out to the sign-in page to agree to the terms and conditions again. When that happens, the redirect won't work if you're trying to browse to an HTTPS URL. Worse, for many sites you can't tell your browser to "just go along with the MITM" because of HSTS.

So in airports I rack my brain for a website that might serve content over HTTP, not HTTPS. Alas, they're getting harder to find, and it's getting harder to keep those airport wifi sessions going. I half considered registering "alwaysinsecure.com" or "alwayshttp.com" so I could reliably find one... Now I'll probably just use qq.com, it's short and easy to remember.

EDIT: Thanks all :-)

Re:Why No HTTPS? by glenjamin on Tuesday July 24, 2018 @05:52AM (#17599480)
http://neverssl.com/ is what you're looking for here.
Re:Why No HTTPS? by sebazzz on Tuesday July 24, 2018 @08:28AM (#17600369)
I just use example.com
Re:Why No HTTPS? by bogomipz on Tuesday July 24, 2018 @11:27AM (#17601877)
Interesting. What the prescription here - to simply use http://neverssl.com in order to see if you need to re-authenticate to the captive portal? Is that correct?
Re:Why No HTTPS? by pohl on Tuesday July 24, 2018 @12:53PM (#17602816)
That's my interpretation of what http://neverssl.com says. (Did you click-through to read it?)
Re:Why No HTTPS? by octosphere on Tuesday July 24, 2018 @01:35PM (#17603247)
And http://info.cern.ch/hypertext/WWW/TheProject.html still retains it non-encryptedness
Re:Why No HTTPS? by jpetrucc on Wednesday July 25, 2018 @06:33PM (#17613539)
http://http.rip is what I use
Re:Why No HTTPS? by Scott_Helme_ on Tuesday July 24, 2018 @06:59AM (#17599823)
This really highlights the problem that we need a proper technical solution for and not hacky traffic interception/redirects!

I also created http://httpforever.com/ for this purpose until such a time that the problem is solved properly.

Re:Why No HTTPS? by supertrope on Tuesday July 24, 2018 @01:16PM (#17603065)
It's not a technical or even standards setting problem. IIRC there's already a RFC for DHCP announced login webpage. It's business and legal - layer 8 and 9 problems.

Operating system maintainers have added captive portal detection to improve user experience. Hotspot owners often sabotage captive portal detection by whitelisting Apple and Google's CPD URLs! AAPL & GOOG have to change these URLs periodically and 802.11 vendors add the new ones in a cat and mouse game. So the customer's phone and thus customer think they're connected but they end up hitting a CP. Why? Because the CPD browser will close immediately upon receiving unencumbered Internet access. While many just want the legal liability limiting I Agree button to be tapped, many others owners want customers to see their store promotion/ad flyer page for longer than a second, place a tracking cookie, and do other value adds.

The interests of Wi-Fi network operators and users are not aligned. Right now only equipment manufacturers directly profit off Wi-Fi service. Hotspot owners can only indirectly earn money through attracting more hotel guests, cafe customers, etc. Some now harvest customer MAC address and in-store walking behavior. Ideally hotspot owners could receive a revenue share for offloading traffic from LTE, which would give them an incentive to be more loyal to users and maintain quality of experience.

https://news.ycombinator.com/item?id=13369038

Re:Why No HTTPS? by saulrh on Tuesday July 24, 2018 @05:56AM (#17599504)
I use example.org for that. I wouldn't be surprised if it has to stay available on http for hysterical raisins, such as everyone using it in their tests and outage detectors.
Re:Why No HTTPS? by dvfjsdhgfv on Tuesday July 24, 2018 @06:44AM (#17599749)
> hysterical raisins

Thanks for making me smile!

Re:Why No HTTPS? by aorth on Tuesday July 24, 2018 @05:57AM (#17599508)
Re:Why No HTTPS? by wdroz on Tuesday July 24, 2018 @11:14AM (#17601730)
That's why I always use my DNS tunnel. You can bypass such system on almost all public wifi.
Re:Why No HTTPS? by oliwarner on Tuesday July 24, 2018 @11:40AM (#17602010)
Almost all? You've had access to some pretty crappy captive portals.

In my experience most portals' firewalls block all traffic (at IP level) except ports 80 and 443, which are transparently redirected to their auth server. Tunnelling isn't an option because you just can't contact anything else.

And it's not like I'm describing something that's hard to do. You've been able to script this stuff in iptables forever.

Re:Why No HTTPS? by xnyanta on Tuesday July 24, 2018 @11:51AM (#17602136)
DNS happens over port 53
Re:Why No HTTPS? by oliwarner on Tuesday July 24, 2018 @12:16PM (#17602419)
Yes. I'm saying in my experience everything but 80/443 are blocked. Completely. 80/443 get redirected.

Edited parent for clarity.

Re:Why No HTTPS? by iforgotpassword on Tuesday July 24, 2018 @01:43PM (#17603329)
Then how can they redirect you to anything in the first place? I type www.google.com in my browser and then what exactly happens next on the IP level? Think about it...
Re:Why No HTTPS? by oliwarner on Tuesday July 24, 2018 @02:17PM (#17603630)
Sure, yup, oversimplifying to make the point. They are also transparently redirecting DNS to their own server.

My point is you can't "tunnel" out. Not for DNS, VPN or whatever. It's all blocked. The only services they let you access are their own to get you to authenticate. Even if you walked in with a complete hosts file (so didn't need to query any DNS server), you'd still not be allowed to connect, at firewall level until you authenticated.

Re:Why No HTTPS? by iforgotpassword on Tuesday July 24, 2018 @03:54PM (#17604369)
> They are also transparently redirecting DNS to their own server.

Yes that's expected. So what does their DNS server do when I ask it for the IP address of google.com?

Re:Why No HTTPS? by oliwarner on Wednesday July 25, 2018 @04:38AM (#17607757)
It could reply with anything, even a valid, correct response. The connection you make to that result is still going to be redirected to the portal.
Re:Why No HTTPS? by fps_doug on Wednesday July 25, 2018 @08:21AM (#17608675)
> It could reply with anything, even a valid, correct response.

Which you actually need to do, to prevent locking the user out from the website they tried to access in the first place after authenticating, thanks to DNS pinning.

> The connection you make to that result is still going to be redirected to the portal.

Correct, but who cares? This is about DNS tunneling, there will be no connection anywhere, the DNS queries and their replies ARE the connection, so to say. How about reading up on what a DNS tunnel actually is? Considering your posts in this thread you have no clue how it works or at least have huge misconceptions about it.

Re:Why No HTTPS? by taejo on Wednesday July 25, 2018 @03:33AM (#17607493)
Give you the IP address of their captive portal.
Re:Why No HTTPS? by wdroz on Tuesday July 24, 2018 @02:52PM (#17603885)
Two ways for doing DNS tunneling: 1. direct way, you pass to your server through port 53. 2. indirect way, you pass through a "official" domain that you own and make the DNS of where you are communicate with your server.

For 1. it's not open very often, indeed. But for 2. I see it open all the time, even in banks...

Re:Why No HTTPS? by oliwarner on Tuesday July 24, 2018 @03:53PM (#17604356)
What are you tunnelling to? In a proper captive portal, it's blocked.

I'm not talking about just blocking DNS. Or just blocking know DNS services. A good captive portal just denies everything save the web/dns traffic redirected to an internal server running on the portal. That is until you log in and get explicit allow rights.

If your portal isn't doing this, if you can escape and actually connect to external IPs, it's not captive.

Re:Why No HTTPS? by pixl97 on Tuesday July 24, 2018 @02:14PM (#17603607)
DNS isn't secure, all they have to do is capture and answer all queries on unauthenticated IPs. No route to the internet needed.
Re:Why No HTTPS? by iforgotpassword on Tuesday July 24, 2018 @03:53PM (#17604359)
They can't do that. If they reply with a bogus IP then after you authenticate to the CP, you cannot access the website you tried to access in the first place (eg google) because now your browser has cached the wrong IP address that it got earlier.

So they need to lookup the actual IP address on your behalf and then in turn redirect traffic to that IP to their CP. boom, you just managed to communicate to the outside world.

Re:Why No HTTPS? by willstrafach on Tuesday July 24, 2018 @05:33PM (#17605139)
They could just set a low TTL
Re:Why No HTTPS? by iforgotpassword on Wednesday July 25, 2018 @12:43AM (#17606949)
No they couldn't, unless they expect everyone to use a browser that is vulnerable to DNS rebind attacks, which probably means some browser from the 90s.
Re:Why No HTTPS? by r1ch on Wednesday July 25, 2018 @07:10AM (#17608359)
Every browser is vulnerable to DNS rebind attacks, since the burden of "fixing" it has been pushed onto the applications that are getting traffic forwarded by the browser.

Also services like Cloudflare wouldn't work if low TTLs didn't work. CF rotate IPs often as part of their DDoS protection.

Re:Why No HTTPS? by fps_doug on Wednesday July 25, 2018 @08:35AM (#17608743)
They still do. Not like when DNS rebind was all the rage, where Firefox decided to cache DNS replies forever, but they still bump the TTL to a minimum of several minutes, which is enough to confuse people in the CP scenario. I wouldn't be surprised if some OS resolvers did the same, possibly just for performance reasons even. And that's all fine and dandy since those couple minutes don't break the Cloudflare scenario.

I mean, if it weren't the case, why would CPs work in that way then anyways? It wouldn't be an issue to have a DNS server in the mix that resolves everything to you CP address with a TTL of one second, and then additionally to your port 80 TCP redirect just add another one for 53 UDP. It's not being done by any CP solution I have ever encountered.

Re:Why No HTTPS? by mintplant on Tuesday July 24, 2018 @10:56AM (#17601570)
Recent versions of Firefox should detect this and present a prompt to go to the portal login page.
Re:Why No HTTPS? by mike-cardwell on Tuesday July 24, 2018 @06:01AM (#17599524)
http://1.2.3.4 or any other random IP generally works for me. It doesn't necessarily have to exist.
Re:Why No HTTPS? by torgoguys on Tuesday July 24, 2018 @11:03AM (#17601639)
www.com is a short, easy to remember, parked domain I tend to use. It has some text ads, but is probably reasonably light on bandwidth.

neverssl.com, mentioned below, is one I seem to for some reason always struggle to remember it's name when I need it. I end up typing things like nossl.com or neverhttps.com and such...

Re:Why No HTTPS? by nkristoffersen on Tuesday July 24, 2018 @12:11PM (#17602370)
example.com is great for testing http. And it’s owned by IANA and not some rando. No ads either and easy to remember.
Re:Why No HTTPS? by mustak_im on Wednesday July 25, 2018 @07:59AM (#17608576)
For a long time I used my bank's homepage to get me redirected to the login page. Until the (reluctantly) forced HTTPS. Since then I'm using http://neverssl.com :)
Re:Why No HTTPS? by sgshsf on Tuesday July 24, 2018 @06:54AM (#17599796)
Re:Why No HTTPS? by octosphere on Tuesday July 24, 2018 @01:34PM (#17603234)
Re:Why No HTTPS? by pascoej on Tuesday July 24, 2018 @05:51AM (#17599477)
captive.apple.com
Re:Why No HTTPS? by tinus_hn on Tuesday July 24, 2018 @06:32AM (#17599698)
Example.com is defined to not have ssl.
Re:Why No HTTPS? by crunchatized on Tuesday July 24, 2018 @11:37AM (#17601973)
? https://www.example.com/ It's had HTTPS since at least 2014. [0]

[0] https://crt.sh/?id=5857507

Re:Why No HTTPS? by tinus_hn on Wednesday July 25, 2018 @07:52AM (#17608540)
That is a surprise to me, but you are right. I’m not quite sure what’s the use but there it is.
Re:Why No HTTPS? by gpvos on Tuesday July 24, 2018 @11:33AM (#17601920)
Defined by what or whom?

(I'm still sad that example.com responds to anything at all. It was originally defined as a completely unused, thus unresponsive, domain.)

Re:Why No HTTPS? by nkristoffersen on Tuesday July 24, 2018 @12:12PM (#17602381)
Read example.com it answers all your questions :-)
Re:Why No HTTPS? by crunchatized on Tuesday July 24, 2018 @01:02PM (#17602918)
It doesn't say that IANA defined it to not have HTTPS anywhere at all.
Re:Why No HTTPS? by dijit on Tuesday July 24, 2018 @11:30AM (#17601901)
captive.apple.com

I love this site.

Re:Why No HTTPS? by snek on Tuesday July 24, 2018 @10:46AM (#17601482)
you also always have to disable your custom DNS settings, and sometimes that means disable your DNS over TLS or go without internet :(
Re:Why No HTTPS? by syncsynchalt on Tuesday July 24, 2018 @11:32AM (#17601917)
hp.com is still not strict and is quick to type. No guarantee that they won't turn on HSTS tomorrow though.
Re:Why No HTTPS? by ribasushi on Tuesday July 24, 2018 @05:51AM (#17599476)
neverssl.com ( not a suggestion, it does exist )
Re:Why No HTTPS? by merb on Tuesday July 24, 2018 @05:54AM (#17599491)
doesn't most OS's now have a captive portal which always check a url if it is accessible, if not they open a sane looking portal?