News for hackers. Stuff that matters.
Re:Chromium's Impact on Root DNS Traffic by peteretep on Friday August 21, 2020 @05:10AM (#24233319)
Wait, so Chrome leaks the first word of my searches to my ISP? That doesn’t sound like something I want to happen
Re:Chromium's Impact on Root DNS Traffic by merlinscholz on Friday August 21, 2020 @07:34AM (#24233970)
That's another reason to use an internal DNS server which queries an upstream DOH server.
Re:Chromium's Impact on Root DNS Traffic by rsync on Friday August 21, 2020 @02:27PM (#24237522)
"That's another reason to use an internal DNS server which queries an upstream DOH server."

Even better, spin up a little VM or VPS somewhere in the cloud, install 'unbound' as a recursive resolver and point it to your nextdns.io account/address.

Let's unpack this ... backwards ...

DNS servers out on the Internet are queried by nextdns, which presumably has no PII from you other than your CC number[1] and zip code.

Nextdns receives nothing but queries from some random VPS/EC2/VM IP. Again, presumably a provider that knows (almost) nothing about you.

Your ISP sees nothing ... just encrypted DNS traffic.

It's win, win, win.

You see no ads, since nextcloud.io acts like a pihole and strips/blocks all of the malicious hostname lookups.

[1] Remember, only AMEX verifies cardholder FIRST LAST. Use your VISA/MC. I think my first/last is Nextdns User or whatever ... YMMV if a merchant is enrolled in that weird "verified by visa" service ...

Re:Chromium's Impact on Root DNS Traffic by vetinari on Friday August 21, 2020 @07:14PM (#24239892)
I still don't understand what's nextdns.io doing in the stack.

Couldn't you just run your recursive resolver as recursive resolver and let it ask respective authoritative servers directly, instead of forwarding to the middleman? You can run your own blocklists on your unbound/kresd/whatever.

Then DNS servers out on the Internet are queried by some random IP from a VPS/EC2/VM IP range, so they are about as wise as when queried by nextdns.io.

Re:Chromium's Impact on Root DNS Traffic by rsync on Friday August 21, 2020 @07:37PM (#24240028)
Yes, of course nextdns is not required - I simply added it because that is my own setup and it adds the pihole-like ad-blocking to the workflow.

They are my favorite IaaS startup of the last 5-10 years - it is a genius idea and I wish I had thought of it.

Re:Chromium's Impact on Root DNS Traffic by bacondude3 on Friday August 21, 2020 @02:46PM (#24237701)
> Remember, only AMEX verifies cardholder FIRST LAST. Use your VISA/MC.

Do you have a source for this?

Re:Chromium's Impact on Root DNS Traffic by rsync on Friday August 21, 2020 @06:10PM (#24239392)
Anecdotally, I use three different Amazon accounts for both personal and business accounts and none of them have a real first/last name on them. In fact, I only use my actual first/last name with online payments when dealing with government agencies or regulated purchases.

But don't take my word for it:

https://ux.stackexchange.com/questions/31006/should-we-ask-f...

"While you're correct that Visa and MasterCard do not validate this information, that's not true of all credit card providers."

... actually, the entire stackex discussion at that link is fairly interesting ...

Re:Chromium's Impact on Root DNS Traffic by bacondude3 on Friday August 21, 2020 @06:59PM (#24239787)
Thanks!
Re:Chromium's Impact on Root DNS Traffic by lstamour on Friday August 21, 2020 @10:59AM (#24235430)
Last I checked, I think “DNS Security” (DoH) was shipped in Chrome, you can pick an alternative in Settings, I think. Such as, in this case, Google. Not sure if that changes the way this nxdomain check behaves, presumably Chrome trusts TLS but not the ISP’s DoH?
Re:Chromium's Impact on Root DNS Traffic by IX-103 on Friday August 21, 2020 @12:02PM (#24235988)
For DoH Chrome does not do that check. Instead one of the requirements to be one their allowed DoH providers is that they don't do the evil redirect NX Domain responses.

But Chrome also falls back to try non-DoH on NX-Domain, so it doesn't really help. I guess they need to do that so internal domains work correctly.

Re:Chromium's Impact on Root DNS Traffic by gruez on Friday August 21, 2020 @10:52AM (#24235375)
I'm always baffled why chrome can't have a separate search/address bar, which avoids this issue entirely.
Re:Chromium's Impact on Root DNS Traffic by gregmac on Friday August 21, 2020 @12:29PM (#24236315)
To me, the single bar functions kind of like a CLI for the browser. I regularly use it to:

* Type/paste a URL

* Type/paste a search

* Search my browser history (usually to jump to a previous URL)

* Use search engine keywords to do direct searches on some applications I use regularly (eg, "jira P-123" does a search in JIRA directly, which happens to jump to that ticket directly)

Browsers that separate those two drive me a bit crazy, because of the extra thinking required before typing.

(I don't really like this whole "using the first search term as DNS lookup" but that's separate from the UX of single vs separate inputs.)

Re:Chromium's Impact on Root DNS Traffic by pmontra on Friday August 21, 2020 @01:54PM (#24237231)
There is no extra thinking, at least for me: search on the right, URLs and history on the left. I mean: it's automatic, my fingers know what to do. I guess search engine keywords would go to the right too but I don't use that feature.
Re:Chromium's Impact on Root DNS Traffic by danudey on Friday August 21, 2020 @10:05PM (#24240954)
Firefox's UI is kind of all over the place, but I love that I can paste or type a search term, and then arrow-key my way down to a set of search options at the bottom.
Re:Chromium's Impact on Root DNS Traffic by majewsky on Friday August 21, 2020 @11:25AM (#24235658)
They design for an audience that, on average, cannot distinguish betweeen the address bar of the browser and the search bar on the Google homepage.
Re:Chromium's Impact on Root DNS Traffic by cbsks on Friday August 21, 2020 @12:41PM (#24236463)
This isn't always a good thing.

My grandmother doesn't know the difference between an "address bar" or "search bar". Recently she got an email from her insurance company telling her to go to their website www.whateverinsurance.com and click "sign in" and then click "my account" and update her credit card info. The email had the url but it wasn't a link for some stupid reason. She goes to her browser and types in "www .whateverinsurance..com" because her eyesight isn't very good anymore and presses enter. Then instead of giving her an error saying the website doesn't exist and she should re-try entering it, it goes to a Google search page! She clicks "sign in" but her password doesn't work because she's on Google instead of her insurance website. So I get a call and have to figure out why her "insurance isn't working".

When I finally get her to her insurance website, she mistypes her password and presses "log in", and nothing happens. Windows is configured with 175% magnification, which means that the "invalid password" div that appears isn't visible on her screen unless she scrolls to the top of the page!

She originally tried calling her insurance company and updating her credit card number by phone, but she couldn't enter her credit card number fast enough and it timed out and told her to go to the website instead. WHY DON'T THEY TEST THIS STUFF???!?

Sorry, I went on a tangent there. I get irrationally upset by this kind of stuff.

Re:Chromium's Impact on Root DNS Traffic by triangleman on Friday August 21, 2020 @01:24PM (#24236931)
Computers are bad and we should feel bad.
Re:Chromium's Impact on Root DNS Traffic by Spivak on Friday August 21, 2020 @11:40AM (#24235777)
I mean after a certain point you just have to accept the kinds of things that your users will type in whatever text boxes you show them and make it work. If you know what the user is trying to do then it's not good UX to throw an error or tell them "I know you're trying to search, but I won't until you retype it into this other box".

Google Maps is a good example of this. Like the original text box you were shown was searching for an address but enough people typed business search terms that eventually they just implemented that feature.

The Ansible vault is a bad example of this. They have a little command `ansible-vault` that lets you manage encrypted files and strings. If you run `ansible-vault edit ./nonexistent_file` it tells you that you meant `ansible-vault create` and vice versa but doesn't just do it despite the user intent being clear. This ultimately lead me to just patching it to do the right thing.

Re:Chromium's Impact on Root DNS Traffic by awj on Friday August 21, 2020 @12:56PM (#24236650)
> The Ansible vault is a bad example of this. They have a little command `ansible-vault` that lets you manage encrypted files and strings. If you run `ansible-vault edit ./nonexistent_file` it tells you that you meant `ansible-vault create` and vice versa but doesn't just do it despite the user intent being clear. This ultimately lead me to just patching it to do the right thing.

IMO it's a bit much to decide what "the right thing" is there. Blindly assuming that someone attempting to edit credentials didn't mistype a file name isn't exactly safe and sounds like a great way to cause problems based on believing you updated something you did not in fact update.

Re:Chromium's Impact on Root DNS Traffic by danudey on Friday August 21, 2020 @10:07PM (#24240966)
That was my first thought as well. This is going to lead to people typo'ing, opening a blank file, being confused that their credentials are gone, and then adding in the updated credentials in the wrong place.
Re:Chromium's Impact on Root DNS Traffic by jakub_g on Friday August 21, 2020 @01:50PM (#24237194)
FYI:

CTRL-L: focus URL bar, typed text will be navigated to or searched for

CTRL-K: focus URL bar, typed text will be searched for

(same in Firefox, with the distinction that Firefox has two UI elements instead of one)

Re:Chromium's Impact on Root DNS Traffic by nnt38 on Saturday August 22, 2020 @08:28AM (#24243662)
FYI

ALT + D: focus URL bar, typed text will be navigated to or searched for

CTRL + E: focus URL bar, typed text will be searched for

(I find those better since they can be used with my left hand only)

Re:Chromium's Impact on Root DNS Traffic by Lammy on Sunday August 23, 2020 @12:17PM (#24252920)
Because it's designed to make as many Google queries as possible instead of being geared for URL entry.
Re:Chromium's Impact on Root DNS Traffic by brown9-2 on Friday August 21, 2020 @07:41AM (#24234009)
You can prefix your searches in the omnibox with “?” and they won’t be treated as possible short local network names
Re:Chromium's Impact on Root DNS Traffic by xg15 on Friday August 21, 2020 @05:56PM (#24239291)
Also, if you prefix a hostname with "http://" or "https://", it won't be treated as a search.
Re:Chromium's Impact on Root DNS Traffic by mehrdadn on Friday August 21, 2020 @07:42AM (#24234021)
Ctrl+K for Windows users looking for a shortcut key.
Re:Chromium's Impact on Root DNS Traffic by forgotpwd16 on Friday August 21, 2020 @10:39AM (#24235254)
It also works on Firefox (and on Linux); if you use split address/search bar it focuses to the search bar instead as it used to be.
Re:Chromium's Impact on Root DNS Traffic by tankenmate on Friday August 21, 2020 @11:23AM (#24235645)
Indeed, I normally turn off "keyword.enabled" and "browser.urlbar.oneOffSearches" in about:config.
Re:Chromium's Impact on Root DNS Traffic by joveian on Friday August 21, 2020 @01:41PM (#24237105)
Yes, you need keyword.enabled set to false otherwise Firefox will still search even though you have a different search box :(.

In Firefox, it is also possible to set keyword.enabled to false and still search explicitly in the url bar via the keyword search mechanism (they overloaded the terminology a bit :/, the one if you right click on a search box and select "add a keyword for this search"). I've been thinking of trying to just use DDG style ! keywords via the url bar (and s for a default search to make it easier to type, maybe single letters would be easiest in general) rather than a search box. OTOH, the keyword search (the second type :/) seems neglected and I wouldn't be surprised to see it disappear at some point.

Re:Chromium's Impact on Root DNS Traffic by tylercrompton on Friday August 21, 2020 @08:30AM (#24234319)
That works on multiple platforms! I'm able to do that on Arch.
Re:Chromium's Impact on Root DNS Traffic by viraptor on Friday August 21, 2020 @10:13AM (#24235034)
In the good old times, ctrl-l went to the location bar and ctrl-k went to the search bar. After they merged, ctrl-k just prepends the question mark. But... as an old shortcut, pretty much everything supports it.
Re:Chromium's Impact on Root DNS Traffic by onionisafruit on Friday August 21, 2020 @10:15AM (#24235049)
Isn’t “?” and ctrl-k the same number of keystrokes?
Re:Chromium's Impact on Root DNS Traffic by mehrdadn on Friday August 21, 2020 @10:18AM (#24235075)
Only if you don't count your mouse clicking the omnibar as a keystroke.
Re:Chromium's Impact on Root DNS Traffic by onionisafruit on Sunday August 23, 2020 @01:34PM (#24253607)
That’s a good point. I didn’t consider that, and now I’ll use this shortcut. If I had been at my computer I would have realized that immediately.
Re:Chromium's Impact on Root DNS Traffic by londons_explore on Friday August 21, 2020 @06:37AM (#24233722)
Chrome leaks 1 word searches in the address bar, yes.
Re:Chromium's Impact on Root DNS Traffic by boring_twenties on Friday August 21, 2020 @07:58AM (#24234127)
Your local nameserver should be configured to not forward unqualified names upstream.
Re:Chromium's Impact on Root DNS Traffic by taneq on Friday August 21, 2020 @10:33AM (#24235200)
Any time you say something 'should' be something, it's an indication that sometimes it's not.
Re:Chromium's Impact on Root DNS Traffic by JdeBP on Wednesday August 26, 2020 @03:41AM (#24280103)
There is no such thing as unqualified names at this level. All domain names are fully qualified, and comprise one or more labels.
Re:Chromium's Impact on Root DNS Traffic by boring_twenties on Wednesday August 26, 2020 @10:40PM (#24289654)
I'm referring not to a recursive nameserver, but to a caching one that simply forwards queries to an upstream resolver. Like the one in every consumer router. Usually that's dnsmasq, with this option:

       -D, --domain-needed
              Tells dnsmasq to never forward A or AAAA queries for plain names,  without  dots
              or  domain  parts,  to  upstream  nameservers.  If  the  name  is not known from
              /etc/hosts or DHCP then a "not found" answer is returned.
Re:Chromium's Impact on Root DNS Traffic by JdeBP on Thursday August 27, 2020 @03:10AM (#24290862)
That is not an unqualified domain name, and notice that it does not say that it is.

* http://jdebp.uk./FGA/dns-name-qualification.html

And the words that you are looking for are "resolving" and "forwarding". A proxy DNS server either does query resolution itself or forwards to another proxy DNS server that does. Both sorts can cache, so whether something is a caching server is not the distinction. dnsmasq is choosing whether to forward the query or to do query resolution itself (using a local data source) according to the number of labels in the domain name. As I said, at this level the idea of domain name qualification does not apply.

You are also mis-using "resolver", incidentally. The actual meaning of "resolver" per RFC 1034 is not what people sometimes think it to be. Avoid using "resolver". The mis-use creates confusion.

See https://news.ycombinator.com/item?id=15232208 .

Re:Chromium's Impact on Root DNS Traffic by stjohnswarts on Friday August 21, 2020 @01:15PM (#24236845)
How many people know how to configure their local name server outside of the HN crowd?
Re:Chromium's Impact on Root DNS Traffic by boring_twenties on Friday August 21, 2020 @02:37PM (#24237615)
This is the default configuration in all consumer routers I've seen. Granted, that's not very many.
Re:Chromium's Impact on Root DNS Traffic by kevincox on Friday August 21, 2020 @11:14AM (#24235551)
So how does it resolve com then? Or the (small number) of sites that are on the TLD.
Re:Chromium's Impact on Root DNS Traffic by boring_twenties on Friday August 21, 2020 @02:35PM (#24237601)
It doesn't. It's not a recursive resolver. It forwards qualified names (those including a dot) to the upstream nameserver (the ISP's).
Re:Chromium's Impact on Root DNS Traffic by jacobsenscott on Friday August 21, 2020 @02:24PM (#24237492)
My local nameserver is run by comcast!
Re:Chromium's Impact on Root DNS Traffic by boring_twenties on Friday August 21, 2020 @02:33PM (#24237580)
Really? Your router does not have a caching nameserver built in?
Re:Chromium's Impact on Root DNS Traffic by kube-system on Friday August 21, 2020 @02:56PM (#24237790)
Re:Chromium's Impact on Root DNS Traffic by blindm on Friday August 21, 2020 @11:36AM (#24235745)
How do you mean? So if I type ihavecancer, it tries to resolve to ihavecancer.com or something?
Re:Chromium's Impact on Root DNS Traffic by 0xffff2 on Friday August 21, 2020 @12:03PM (#24236004)
It tries to resolve `ihavecancer` as a TLD, because it may be a local TLD on your intranet.
Re:Chromium's Impact on Root DNS Traffic by HuangYuSan on Friday August 21, 2020 @11:07AM (#24235508)
WAIT
Re:Chromium's Impact on Root DNS Traffic by josteink on Friday August 21, 2020 @08:35AM (#24234350)
> Wait, so Chrome leaks

That’s obviously so, because that’s it’s entire raison d’entre.

Re:Chromium's Impact on Root DNS Traffic by a1369209993 on Friday August 21, 2020 @11:25AM (#24235668)
Its raison d'entre is to leak stuff to Google. While that's a problem, and probably a worse one, it's not the same problem as leaking stuff to a ISP.
Re:Chromium's Impact on Root DNS Traffic by AndyMcConachie on Friday August 21, 2020 @08:36AM (#24234353)
Not exactly. Chrome doesn't know if you're trying to enter a domain name, hence URL, or are trying to enter a search term. The Omnibar supports both. So Chrome tries to resolve the string you entered and if it gets back an NXDOMAIN it can assume that it's a search term.

The problem is that some ISPs have configured their DNS resolvers to lie and not return NXDOMAIN. Instead redirecting you to some website for marketing purposes. The Chromium workaround is to try and detect if it is using a lying DNS resolver by issuing queries that it knows SHOULD return an NXDOMAIN.

If this concerns you run your own resolver, enable DNSSEC validation, and enable aggressive NSEC caching(RFC 8198).

Re:Chromium's Impact on Root DNS Traffic by bo1024 on Friday August 21, 2020 @08:42AM (#24234385)
This post contains a bunch of information about the question, but it doesn't seem to actually address the question.

The question is: does Chromium send the first word I type to my ISP?

The answer appears to be: yes.

Re:Chromium's Impact on Root DNS Traffic by throwaway18231 on Friday August 21, 2020 @08:48AM (#24234427)
I justed tested this myself via logging the DNS queries, and yes, this is true.
Re:Chromium's Impact on Root DNS Traffic by rfoo on Friday August 21, 2020 @09:24AM (#24234670)
> the first word

No.

The answer appears to be yes if you said "the only word", though.

Re:Chromium's Impact on Root DNS Traffic by JeremyBanks on Friday August 21, 2020 @10:17AM (#24235059)
...which the first word would be, as you typed it?
Re:Chromium's Impact on Root DNS Traffic by bagacrap on Friday August 21, 2020 @10:51AM (#24235365)
I think this only happens after you press enter, not as part of the omnibox real time results. After all the infobar mentioned in the article definitely only appears after you commit the search query.
Re:Chromium's Impact on Root DNS Traffic by notatoad on Friday August 21, 2020 @10:27AM (#24235145)
depends how fast you type - there's a delay on the query so it's not re-querying for every keystroke. but probably yes.
Re:Chromium's Impact on Root DNS Traffic by gnu8 on Friday August 21, 2020 @11:25AM (#24235663)
So because Google thinks I am too stupid to handle a separate URL box and search box, and they are so much smarter than me that they can write a simple if-else to discern what I want with a few bullshit DNS queries, I’m stuck with a browser that leaks information and fails to do what I want several times a day until I learn to work around this behavior. And the proposed solution is for me, dumb dumb user that I am, to run my own resolver with DNSSEC validation and NSEC caching?

I am getting close to moving to a hut in the woods and forgetting all about the internet.

Re:Chromium's Impact on Root DNS Traffic by jlg23 on Friday August 21, 2020 @02:13PM (#24237395)
I moved to the desert in a developing country. But fibre optics to the house took 4 days and is $55/month. There is no escape.
Re:Chromium's Impact on Root DNS Traffic by tptacek on Friday August 21, 2020 @04:00PM (#24238339)
DNSSEC can only distinguish valid from invalid NXDOMAINs on signed zones. A tiny, tiny minority of zones in .COM, .NET, .ORG, and .IO are signed. Installing your own local DNSSEC resolver to "fix" the Chrome URL bar would be a tremendous misallocation of effort.

If your ISP forges NXDOMAIN responses, the correct response is to DOH to a provider that doesn't do that. That's a simple networking config change, for which there is UI in every mainstream operating system. The DNSSEC part of this conversation is just silly.

Re:Chromium's Impact on Root DNS Traffic by AndyMcConachie on Friday August 21, 2020 @07:06PM (#24239838)
Do whatever you want as your proposed mitigation, but we are talking about the root zone here, which is signed.
Re:Chromium's Impact on Root DNS Traffic by tptacek on Saturday August 22, 2020 @01:01AM (#24241682)
My proposed mitigation is being deployed in every modern browser, and completely eliminates the ISP-spoofed NXDOMAIN problem. Yours asks users to install their own DNS server, and still doesn't eliminate the problem. I'm comfortable saying that my advice is correct, and the advice to use DNSSEC to solve this problem is malpractice.
Re:Chromium's Impact on Root DNS Traffic by mzs on Friday August 21, 2020 @01:53PM (#24237221)
That infuriates me. It totally can know. Did it start with http:// https:// ftp:// ...? I really dislike how browsers decided everything is a search.
Re:Chromium's Impact on Root DNS Traffic by shock on Friday August 21, 2020 @06:15PM (#24239437)
> I really dislike how browsers decided everything is a search.

Not browsers, just chrome. The rest followed.