News for hackers. Stuff that matters.
Re:CoffeeShopWifi.com – An HTTP website for connecting to gu... by ykat7 on Thursday July 08, 2021 @12:27PM (#27774240)
I like the straightforward explanation this site provides. That said, I tend to use http://example.com to trigger captive portals because it's an IANA reserved domain [1] that other people can't register.

This gives me confidence to browse to it without fear that the domain could lapse in the future and get taken over (e.g. in a watering hole attack).

[1]: https://www.iana.org/domains/reserved

Re:CoffeeShopWifi.com – An HTTP website for connecting to gu... by colejohnson66 on Thursday July 08, 2021 @12:48PM (#27774569)
iOS (and macOS?) use http://captive.apple.com/
Re:CoffeeShopWifi.com – An HTTP website for connecting to gu... by pftburger on Thursday July 08, 2021 @12:51PM (#27774625)
Yea I use this manually some times as well.

Great for low bandwidth tests Just displays clean “success”

Re:CoffeeShopWifi.com – An HTTP website for connecting to gu... by moftz on Thursday July 08, 2021 @01:24PM (#27775152)
Mozilla also has one that Firefox will use when detecting captive portals: http://detectportal.firefox.com/success.txt
Re:CoffeeShopWifi.com – An HTTP website for connecting to gu... by elcritch on Thursday July 08, 2021 @04:51PM (#27777438)
I like neverssl.com, it's a nice basic text page.
Re:CoffeeShopWifi.com – An HTTP website for connecting to gu... by hartator on Thursday July 08, 2021 @12:59PM (#27774745)
Clean "Success" sssSsss
Re:CoffeeShopWifi.com – An HTTP website for connecting to gu... by imwillofficial on Thursday July 08, 2021 @01:35PM (#27775294)
I read this in the voice of Cobra Commander
Re:CoffeeShopWifi.com – An HTTP website for connecting to gu... by forty on Thursday July 08, 2021 @06:28PM (#27778392)
That means apple.com cannot be HSTS preloaded, which is too bad for security.
Re:CoffeeShopWifi.com – An HTTP website for connecting to gu... by mwambua on Thursday July 08, 2021 @01:03PM (#27774809)
I've used this on Linux as well.
Re:CoffeeShopWifi.com – An HTTP website for connecting to gu... by srhngpr on Thursday July 08, 2021 @12:47PM (#27774566)
Agreed - I always use example.com as well.

Also worth noting that example.net, while not listed on the IANA page, is also reserved.

Re:CoffeeShopWifi.com – An HTTP website for connecting to gu... by derimagia on Thursday July 08, 2021 @01:40PM (#27775366)
It's listed in rfc6761 which it references there.

https://datatracker.ietf.org/doc/html/rfc6761#section-6.5

> The domains "example.", "example.com.", "example.net.", "example.org." [...]

Re:CoffeeShopWifi.com – An HTTP website for connecting to gu... by 0xbadcafebee on Thursday July 08, 2021 @01:09PM (#27774916)
I also use example.com, and unfortunately https://example.com/ also works, so if you just type "example.com" in to your browser, you are likely to hit the https:// URL first and get an error. And you have to type the entire "http://example.com" out, or your browser's auto-complete will go for "https://example" first. And even when it's http://, a captive portal may redirect you to an internal https:// site without a valid cert. And sometimes it caches so you need to remember to Shift+Reload.

The most infuriating thing about technology is how it reminds me how incompetent we are as a species. Here we are, the global collective of Information Technology workers, captains of industry, cutting-edge entrepreneurs, and white beard pros, and we cannot make a god damn computer just connect to a coffee shop's network without jumping through a bunch of annoying hoops, like the whole system was constructed by an intern on summer break. (No offense to interns)

Re:CoffeeShopWifi.com – An HTTP website for connecting to gu... by groby_b on Thursday July 08, 2021 @02:26PM (#27775950)
Simple answer: We can make it connect just fine, but we either need to give up on value extraction (i.e. "pay a fee to connect"), or on security.

Captive WiFi fundamentally relies on intercepting all Internet traffic to send you to the captive page. That's only possible with fake certificates, because you want to provide a response on behalf of the website the user wanted to go to. This wasn't originally part of "how the Internet works", because "pay as you go" just wasn't considered during the design.

But... we've solved that problem. rfc8910 does specify how you can use DHCP to work around that. Except, it doesn't work for legacy clients. So those will still be supported in existing setups anyways.

And since everybody's supporting legacy setups, the incentive for any single provider to even implement the new method is about zero.

The whole mess is a result of replacing the engine while flying the airplane, in an environment optimized for rent seeking behaviors. We can do the right thing, but we choose (collectively) not to spend the money.

Re:CoffeeShopWifi.com – An HTTP website for connecting to gu... by smegger001 on Thursday July 08, 2021 @08:54PM (#27779436)
I have always used http://http.rip
Re:CoffeeShopWifi.com – An HTTP website for connecting to gu... by sigjuice on Thursday July 08, 2021 @03:00PM (#27776318)
I'm not sure how example.com is better than any other domain in a coffee shop setting. Any DNS lookup can be made to resolve to any arbitrary IP address, so it would not matter if a domain is lapsed or even real.
Re:CoffeeShopWifi.com – An HTTP website for connecting to gu... by notwedtm on Thursday July 08, 2021 @05:26PM (#27777801)
It's a lot easier to simply register a domain like coffeeshopwifi.com if/when the owner abandons it and wait for the requests to pour in, than it would be to find the specific coffeeshop that your target frequents and then compromise their DNS servers.
Re:CoffeeShopWifi.com – An HTTP website for connecting to gu... by sigjuice on Thursday July 08, 2021 @06:22PM (#27778327)
It is not about compromising DNS servers at coffee shops.

If I go to a coffee shop, do any packets even have to go to coffeeshopwifi.com or example.com at all?

1. DHCP happens.

2. I type http://example.com, but I get 'Please click AGREE etc. for WiFi'. So far, this should all be internal to the local network.

3. I click on AGREE, but my browser actually goes to philzcoffee.com