News for hackers. Stuff that matters.
Re:A cartoon intro to DNS over HTTPS (2018) by JoshTriplett on Sunday October 20, 2019 @05:36AM (#21303124)
> will it not reduce ones control over DNS locally

No. Run your own DoH server, point your DoH client to your own DoH server, and your DoH server can then provide any responses you want. (And it in turn can use DoH or do standard recursive resolution.)

End-to-end encryption means that malicious parties can't MITM your traffic or otherwise make you talk to the wrong destination server. That doesn't prevent you from intentionally running your own local servers and pointing clients to them.

If you have a client device on your network that you don't trust and can't change the configuration of, it has far more secure methods for protecting itself from you than just using DoH.

Re:A cartoon intro to DNS over HTTPS (2018) by throw0101a on Sunday October 20, 2019 @09:33AM (#21304020)
> No. Run your own DoH server, point your DoH client to your own DoH server ...

Except when the client ignores what you tell it. Per Paul Vixie:

   google, this is bogus as hell. my dhcp server gives you dns servers to 
   use. please don't make me route and answer 8.8.8.8 just to watch youtube.
   
   > [71] 2019-02-13 16:39:40.548137 [#68 vtnet0 4095] \
   >         [24.104.150.186].56915 [8.8.8.8].53  \
   >         dns QUERY,NOERROR,7357,rd \
   >         1 lh3.googleusercontent.com,IN,A 0 0 0
   > [71] 2019-02-13 16:39:40.548210 [#69 vtnet0 4095] \
   >         [24.104.150.186].56915 [8.8.8.8].53  \
   >         dns QUERY,NOERROR,49247,rd \
   >         1 lh3.googleusercontent.com,IN,AAAA 0 0 0
   
   (no, this device i've paid for, will NOT be allowed to send you any 
   information, other than what i personally approve, which will never 
   include DNS traffic. if you don't like that deal, buy it back from me 
   and i'll find some other video appliance that doesn't twist my arm.)
* https://news.ycombinator.com/item?id=19170671

Of course with DoH you can't just do a UDP redirect. With DoT, which uses tcp/953, you can at least block access.

But with DoH, you have just lost control of your network. (Unless block 443 and force everything to go through a (Squid) proxy?)

Re:A cartoon intro to DNS over HTTPS (2018) by tptacek on Sunday October 20, 2019 @01:28PM (#21305577)
Paul Vixie isn't making any sense here either.

If you can't trust your device, you can't trust it without DoH either. As I said upthread, devices don't even need to use DNS. They can open up encrypted C&C channels, using whatever protocol they'd like, tunneled over whatever they'd like. They can bake rendezvous IP addresses in, they can cryptographically verify endpoints to break MITM proxies, they can even sneak data out in ICMP packets. DoH has literally nothing to do with it.

What's insidious about this argument is that it preys on peoples legitimate concerns about uncontrolled devices on their network. We're all concerned about that! But that doesn't mean we should use plaintext DNS, or Paul Vixie's preferred "encrypted DNS with a killswitch for network operators".

Re:A cartoon intro to DNS over HTTPS (2018) by juliusmusseau on Sunday October 20, 2019 @07:12PM (#21307975)
Fighting against an HTTPS endpoint on 443 returning data in response to a query is kinda futile.

Might as well argue against using windmills to grind wheat.

Re:A cartoon intro to DNS over HTTPS (2018) by vertex-four on Sunday October 20, 2019 @10:17AM (#21304283)
I mean, the actual solution here is... don't buy devices that refuse to do what you tell them. Don't use closed-source, auto-updating software. You can live without a Chromecast and a Amazon Echo and your cloud-based smart lighting system. There's alternatives to all these things anyway, which do what you tell them to.
Re:A cartoon intro to DNS over HTTPS (2018) by throw0101a on Sunday October 20, 2019 @11:27AM (#21304708)
> Don't use closed-source, auto-updating software.

Sometimes you don't choose the software, the software chooses you:

* https://www.zdnet.com/article/first-ever-malware-strain-spot...

* https://www.zdnet.com/article/psixbot-malware-upgraded-with-...

Re:A cartoon intro to DNS over HTTPS (2018) by vertex-four on Sunday October 20, 2019 @12:15PM (#21305036)
Malware can do whatever it wants anyway - DNS-over-whatever can be implemented no matter who supports it. Maybe we should be banning Tor because it might be used by malware?
Re:A cartoon intro to DNS over HTTPS (2018) by throw0101a on Sunday October 20, 2019 @12:26PM (#21305117)
Tor has its own traffic signature and so can be detected by network monitoring software. If it's on the IT network I help run then I'm tracking down the source IP and MAC and finding the network port it's coming from and asking "WTF?".

I'm happy to implement DoT on work's network to help encourage encrypted DNS. My problem is DoH can now be used by all sorts garbage and we can't tell it from legitimate HTTPS--which is by design.

All this for the laudable goal of protecting Internet surfers' privacy. However I'm curious to know how well this will work against the Great Firewall of China, and how many other regimes will now implement Great Firewalls of their own.

Re:A cartoon intro to DNS over HTTPS (2018) by vertex-four on Sunday October 20, 2019 @12:45PM (#21305255)
Tor has bridges, which are specifically designed to thwart the Great Firewall - and I'm guessing your network monitoring software.

Malware can ship with an arbitrary number of DNS-over-HTTPS servers accessible anyway, no matter whether Google supports it. The cat was out of the bag as soon as you allowed encryption on your network in general.

Finally, there are system architectures that are inherently less susceptible to malware, which is what we should really be focusing on. If your document viewer doesn't need to access the Internet, why does it have access to the Internet? Why does your general-web-browsing browser have access to your intranet and worse, your network drives and USB sticks? The reason we're stuck with what we have now is that operating systems research largely died in the 90s, but we're now aware that e.g. microkernel capability systems can be implemented in ways that are both fast and secure.

Re:A cartoon intro to DNS over HTTPS (2018) by lawfulcactus on Sunday October 20, 2019 @01:05PM (#21305408)
Tor also gives you the option to use a variety of pluggable transports, which are purpose-built to circumvent DPI boxes and such. Pretty sure obfs4 (based on [1]) works against the GFW.

[1] https://www.cs.kau.se/philwint/scramblesuit/wpes2013.pdf

Re:A cartoon intro to DNS over HTTPS (2018) by josteink on Sunday October 20, 2019 @09:40AM (#21304067)
> But with DoH, you have just lost control of your network. (Unless block 443 and force everything to go through a (Squid) proxy?)

Expect “enterprise” network equipment using an approach like this to provide a “DOH firewall” in the near future.

Net privacy gained: negative.

Re:A cartoon intro to DNS over HTTPS (2018) by throw0101a on Sunday October 20, 2019 @11:39AM (#21304781)
I've been on networks where everything had to go through a proxy, where browsers were told how to act via WPAD/proxy.pac and you set an HTTPS_PROXY env for wget/cURL to work.
Re:A cartoon intro to DNS over HTTPS (2018) by akerl_ on Sunday October 20, 2019 @01:49PM (#21305722)
The goal isn’t adding privacy on enterprise networks. Enterprise networks should already be accounting for the existence of HTTPS, and either allowing, blocking, or proxying employee/device connections based on their threat model.

The goal for DoH is to improve privacy for individual humans, and it does that.

Re:A cartoon intro to DNS over HTTPS (2018) by arpa on Sunday October 20, 2019 @05:39AM (#21303132)
I think the last line is the major concern for the OP. It's fine and dandy if your browser _lets_ you use different DOH server with it's own self-signed cert. If you're locked down... well, it's game over.
Re:A cartoon intro to DNS over HTTPS (2018) by JoshTriplett on Sunday October 20, 2019 @06:37AM (#21303330)
> with it's own self-signed cert

No reason you can't get a real certificate, to ensure that your device talks to the server it intends to.

> If you're locked down... well, it's game over.

Devices today can already use pinned certificates and other similar measures to ensure that they only talk to the server they want to talk to. DoH doesn't make that any more or less effective, just simpler to get right.

Re:A cartoon intro to DNS over HTTPS (2018) by d00bianista on Sunday October 20, 2019 @06:54AM (#21303381)
A trusted certificate is nice and all but if you have to rely on DNS to find the CNAME-record that translates to an A-record and so forth, it becomes complicated and simpler for malicious parties to MITM you. A self signed certificate is actually better in that sense that nothing trusts it and with the assumption that you can add permanent exceptions and pinning, you'll know immediately if something is wrong.
Re:A cartoon intro to DNS over HTTPS (2018) by xg15 on Sunday October 20, 2019 @09:20AM (#21303941)
> No reason you can't get a real certificate, to ensure that your device talks to the server it intends to.

You'd have to get a certificate for whatever domain the device wants to talk to - a domain you very likely have no control over.

No sane CA will give you a cert for that. The whole point of the PKI is to keep MITMs from pretending to be domains that they actually don't control - which is exactly what we'd be doing here.

Re:A cartoon intro to DNS over HTTPS (2018) by tialaramex on Sunday October 20, 2019 @10:39AM (#21304425)
The intent would be that the device has a setting where you pick which DoH service to use, and if that's a free text input you can put my-doh-server.my-vanity-domain.example

If 90% of users leave it as shipped set to (say) Google, 9% switch to their preferred service and only a handful like you actually type in a DNS name, that freedom to do is preserved. If it doesn't check the certificate from the DoH server when you override the configuration, you are immediately exposed to a MITM so it needs to check. However you'll have no trouble getting a cert for your own FQDN, and that's what the poster you replied to is thinking of.

Re:A cartoon intro to DNS over HTTPS (2018) by xg15 on Sunday October 20, 2019 @02:46PM (#21306164)
Not all devices have a screen or an easy method to input a TRR URL. So even if a vendor has the best intentions, the effort needed to make DoH configurable could be more than what can be justified for a "niche feature".

I believe there are ideas for a network-level autodiscovery of DoH servers, analogous to regular DNS. That would solve the problem, but I can't see how it would get buy-in from the DoH crowd, as it would tie DNS to the network again - and it would still have to be implemented by every single device.

Of course all of this is moot if the vendor actively wants to prevent you from intercepting DNS.

Re:A cartoon intro to DNS over HTTPS (2018) by EvanAnderson on Sunday October 20, 2019 @06:41AM (#21303341)
To a device manufacturer the consumer is a malicious party.
Re:A cartoon intro to DNS over HTTPS (2018) by josteink on Sunday October 20, 2019 @09:38AM (#21304052)
> Run your own DoH server, point your DoH client to your own DoH server, and your DoH server can then provide any responses you want.

What DOH client would that be? Where would I configure it? How do I configure a systemwide DOH setting?

Right now none of those questions can be given a simple answer. DOH is a rogue technology.

Re:A cartoon intro to DNS over HTTPS (2018) by user827272 on Sunday October 20, 2019 @08:18AM (#21303650)
And if that client happens to be the only one avalible to access some service or happens to dominate the market you're doomed.

And don't forget that you can change the resolver today, as you can install uBO, but what about tomorrow?