News for hackers. Stuff that matters.
Re:You've Read Your Last Free Article, Such Is the Nature of... by bqmjjx0kac on Saturday June 15, 2024 @04:58PM (#40692639)
The reason the trailing dot works is that it represents the implicit root DNS node. Browsers do the dumb thing and consider it a different domain, but AFAIK there's no good reason not to canonicalize the domain name.

All that to say, no, you sadly can't add another trailing dot.

Re:You've Read Your Last Free Article, Such Is the Nature of... by jonhohle on Saturday June 15, 2024 @05:05PM (#40692694)
I had never thought about having a local search domain so something like google.com.mynetwork. would resolve (the tailing dot prevents search domain lookups). Would a browser allow that internal site to access google.com cookies (since the lookup would be for google.com, no trailing dot). I suppose that would only work for unsecured traffic anyway so maybe not a huge attack vector.

Edit to add: if you have web services that are resolved via DNS, it may be a performance advantage to configure clients with the trailing dot. A lifetime ago we ran into intermittent latency issues when some DNS resolvers would try to search before checking the canonical entry.

Re:You've Read Your Last Free Article, Such Is the Nature of... by cortesoft on Saturday June 15, 2024 @05:54PM (#40692975)
That wouldn't work because Google would not return the proper content, since the host header would not match google.com. HTTPS would not work either, like you said, because the cert would not match the new domain.

If they didn't check host headers, then no, the browser would not send the cookies for google.com, since the browser has no idea about your DNS changes and is only looking at the domain name itself.

Re:You've Read Your Last Free Article, Such Is the Nature of... by WarOnPrivacy on Saturday June 15, 2024 @05:28PM (#40692843)
> Browsers do the dumb thing

I could use more browser dumb things like this.

Like when the browser won't ever forget that you once visited an HSTS server at this domain and now+forever won't let you visit the http server (at the same domain).

Re:You've Read Your Last Free Article, Such Is the Nature of... by sunshowers on Saturday June 15, 2024 @05:46PM (#40692929)
There's a string you can type in blind that bypasses HSTS. Works on Chromium browsers. I don't want to make to too easy to find so I won't say it here but you can look for it.
Re:You've Read Your Last Free Article, Such Is the Nature of... by tiberious726 on Saturday June 15, 2024 @07:19PM (#40693418)
Don't be ridiculous. The string is 'thisisunsafe' just type it when the hsts whining page has focus, no text box.
Re:You've Read Your Last Free Article, Such Is the Nature of... by cortesoft on Saturday June 15, 2024 @06:12PM (#40693077)
You really think HN readers can't find the interstitial bypass keyword? It shows up in the very first Google search for it, I am not sure who you think you are protecting.

I also find it goes against the ethos of HN to try to prevent a user from controlling their own hardware... if I want to MITM myself, I should be able to.

Re:You've Read Your Last Free Article, Such Is the Nature of... by sunshowers on Saturday June 15, 2024 @11:01PM (#40694366)
I was more concerned about it becoming more prominent in Google search results but I was just having a moment, never mind :)
Re:You've Read Your Last Free Article, Such Is the Nature of... by WarOnPrivacy on Saturday June 15, 2024 @06:21PM (#40693132)
> Works on Chromium browsers.

Saw that a few days ago but I don't do Chromium browsers. Cest la vie.

Appreciate the attempt.