155 points · by tptacek · 2y ago · 176 comments
Most people already use a centralized resolver like Google or Cloudflare anyway, and you can be sure those will be patched. People who use their ISP’s resolver might be disappointed if their ISP is slow to patch things, but what else is new?
Bear in mind that if you're using a regular port 53 resolver like Google's, you might be using your ISP's resolver anyway -- a lot of ISP's hijack port 53 and redirect it to their own server(s) to reduce load. That's why DNS over TLS / HTTPS is typically recommended over unencrypted DNS.
To disable it you have to call them and ask.
This is HN. I run unbound on a Pi (mentioning the Pi I don't know if those running PiHole are running a vulnerable resolver or not). My Pi shall need patching when I get back from vacation!
https://support.mozilla.org/en-US/kb/firefox-dns-over-https#...
Chrome followed:
https://duo.com/decipher/google-makes-dns-over-https-default...
While I'm sure (even stronger: I know) that at some point DNSSEC was a good idea, it's just a liability-slash-infrastructure-tax these days (a footgun at best, an additional DoS vector in most cases), and it's time for it to go.
99% of DNSSEC deployments come down to "I trust the entity I have outsourced my DNS management to with my private key management as well", which makes no sense whatsoever, and the reasoning behind the remaining 1% doesn't inspire much confidence either.
DoH satisfies the DNS privacy/security requirements of most Internet users just fine, and with or without DNSSEC, the management of the underlying infrastructure remains the same as it was before, i.e. "trust us"...
The only thing it deems a potential privacy issue is possibility of enumeration of subdomains, which is security by obscurity for the domain owner, from a time before certificate transparency logs ruined that anyway.
Isn't it possible under WebPKI rules to get an intermediate cert for all of your subdomains so that only the intermediate cert needs to get logged in certificate transparency? Or at the very least, you could use a wildcard underneath the domain you own...
But yes, a wildcard accomplishes the same thing, and I think that’s the route (almost?) everyone goes if a service’s subdomains really need to be kept out of a transparency log.
Both DNSSEC and DoT/DoH prevent hijack between the customer and the resolver
However, only DNSSEC prevents hijacks between the resolver and the authoritative servers
DNSSEC is the only way to trust a zone's content
Or maybe DoT/DoH shall be the only way to resolve things, and the DNS over UDP/TCP shall be deleted from the surface of the earth ?
From the perspective of something like a browser, the mapping from the domain name to the IP address (i.e., the A or AAAA records) need not be secured via DNS because the connection to the server is secured via TLS and the WebPKI. So DNSSEC isn't helping here, especially because the clients don't check DNSSEC, so it doesn't protect them from attack on the local network, which is one of the main loci. If the DNS server provides the wrong IP, this is mostly a DoS attack.
I am aware that the situation is somewhat different in email but I'm not sure how different really. Note that it is the case that DNSSEC could help secure ACME validation queries, but as tpacek observes, CT has greatly reduced the risk of misissuance.
Of course there are other mappings in the DNS, but as a general matter those are being designed under the assumption that the DNS is untrustworthy, due to the low level of DNSSEC deployment. For instance, if you look at the HTTPS RR, it's fine to put a key for Encrypted Client Hello in it because the resolver already knows the desired domain name, so lying about the key doesn't really help. However, we can't safely publish the server's public key to be used for TLS 1.3 early data ("Zero RTT priming") because that would require trusting the DNS. So, any features which require the DNS to be secure have the usual chicken-and-egg deployment problems (this is also to a great extent what happened with DANE).
Taking the opportunity to reference myself, the following longer writeups might be useful on this topic:
https://educatedguesswork.org/posts/dns-security-dnssec/ https://educatedguesswork.org/posts/dns-security-dane/
It does no such thing. An attacker on the resolver or between the resolver and authoritative is able to strip DNSSEC.
DNSCrypt was the solution to all the problems we had, but at the time DNS software vendors and operators also had a financial interest in passive monitoring so DNSSEC being clear on the wire won.
A recursive will drop unsigned responses from root servers. So that if a zone should be signed, then all unsigned answers are boggus and dropped.
On unbound, for instance:
harden-dnssec-stripped: <yes or no>
Require DNSSEC data for trust-anchored zones, if such data is
absent, the zone becomes bogus. If turned off, and no DNSSEC
data is received (or the DNSKEY data fails to validate), then
the zone is made insecure, this behaves like there is no trust
anchor. You could turn this off if you are sometimes behind an
intrusive firewall (of some sort) that removes DNSSEC data from
packets, or a zone changes from signed to unsigned to badly
signed often. If turned off you run the risk of a downgrade at-
tack that disables security for a zone. Default is yes.Not as it's deployed today. Since over 80% (conservative guesstimate) of the zones that most people care about are not signed, it's pretty much useless.
The 'evil ISP or IT MITMs my DNS traffic' scenario is much more effectively addressed with DoH (since it only requires clients and some resolvers to coordinate, not the entire Internet, and it looks like regular HTTPS, which implementers already understand how to deal with, as a bonus).
And the 'evil government redirects some or all zones' play is still very much possible even with DNSSEC, since, guess who ultimately controls the keys.
Even if you think that making the latter scenario more difficult to implement is worth it, getting more people to sign their zones is a losing battle, since they're very much likely to self-DoS themselves in the process, significantly reducing their enthusiasm...
Unlike IPv6, everybody who deploy dnssec gets the full benefits, regardless of what others are doing : you just need to get a fully-DNSSEC-supported chain from the roots to your zone.
Depends on where you live. Last time I checked, about 70% of the top 25k .nl domains were signed. .ch and .se also have a lot of DNSSEC domains.
That doesn't seem right. Ever since enabling DNSSEC validation on my system, YouTube and every other Google product except basic searching is broken for me. The percentage of internet users who enforce DNSSEC must be much much smaller.
So I can absolutely see where this would easily be the case, if not more.
You can view a map of DNSSEC validation rates here: https://stats.labs.apnic.net/dnssec
Enabling DNSSEC wouldn't change resolution of those properties unless you somehow set your system to treat insecure delegations as bogus. Is that what you've done?
Of course there's not much point to that evaluation if you're only looking up IP addresses and then relying on WebPKI to see that the other end is what you expected it to be.
EDIT:
I'm not allowed to reply for some reason, so in answer to tptacek:
> Right, which leaves open the question of what the point is.
No, I don't think it does. I think my summary reasonably conveys the functionality DNSSEC offers and how it is practically useful. (This is not a flippant response, the spade is a spade.)
Google doesn't use DNSSEC, unfortunately, so this shouldn't be a problem. If your resolver breaks on this, I think that may be the result of a bug or misconfiguration, because there's no DNSSEC to validate here.
That number does still seem high though.
Consulting and working for MSPs over the last 10 years I've probably been exposed to a couple hundred environments and I've never once seen DNSSEC validation used.
Rather than "Ooh, DNSSEC is bad" the correct take is that we need to wean ourselves off ISC BIND. Maybe ISRG can pay somebody to make a less awful DNS server implementation in Rust.
https://github.com/NLnetLabs/unbound/releases/tag/release-1....
https://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/20...
As are any other DNSSEC validators that followed the specifications.
Bind9 has its problems but this is not its fault this time.
This is one of those HALT problems that everyone likes to dismiss :)
I think it just makes me feel old. Like, Bill Clinton's presidency wasn't that long ago. (was it?)
The fact that it's that old should mean it's extremely robust.
This seems a bit hyperbolic, the txid[0] randomization bug found by Kaminsky was objectively worse as it would allow you to poison the cache and in the days before encryption was considered standard.
https://www.computerworld.com/article/2534823/dns-researcher...
Why was DNSSEC revived from the RFC graveyard^1 and implemented by authors of BIND and Unbound. Cache poisoning. Why does cache poisoning exist. Because people use third party shared caches. Why do people use third party shared caches. That one I will leave for the reader.
There are other, varied options. I use stored DNS data from a variety of sources that I can cross-check against each other. I use iterative resolution instead of recursive. I am happy to discover when websites occasionally change their IP addresses. I want to know. But most websites I visit keep the same addresses for years.
Almost all DNS lookups I do are _not_ on a "phone". The number of IP addresses I need for the "phone" is relatively small.
1. According to djb, DNSSEC was first conceived in 1993. And the charlatans behind it started taking money from the USG sometime in or after 1994.
https://cr.yp.to/talks/2009.10.30/slides.pdf
That is a long time to be awaiting release in some version of BIND. Gee, I wonder why. With this "KeyTrap" demonstration, one might guess that DNSSEC sat around for 15 years because it was never ready for prime time. One might even conclude it still isn't.
https://www.athene-center.de/fileadmin/content/PDF/Technical...
From where I sit, I work at a registry and DNS server host (among other things) where about 40% of all our domains have DNSSEC (and that number is constantly climbing). Every conference I go to, and in every webinar, people seemingly always talk about DNSSEC and how usage is increasing.
From my perspective, your continuous claim that “nobody uses” DNSSEC is simply false. DNSSEC works, usage of DNSSEC is steadily increasing, and new protocols (like DANE) are starting to make use of DNSSEC for its features. Conversely, I only relatively rarely hear anything about MTA-STS.
(Originally written as a two year old comment of mine: <https://news.ycombinator.com/item?id=27837530>, but the details given have not changed substantially.)
2024:
> where about 40% of all our domains have DNSSEC (and that number is constantly climbing)
> Originally written as a two year old comment of mine: <https://news.ycombinator.com/item?id=27837530>
2021:
> where about 40% of all our domains have DNSSEC (and that number is constantly climbing)
Guessing it isn't increasing very fast then? That's 2.5 years and there's no update on that 40% figure?
Maybe the registry side views things a lot differently than the end user side.
DANE? New? It's at least ten years old.
Rolling this over in an automated fashion is desirable, as if this just happens to slip your mind, too bad, NXDOMAIN
This is obviously a non-starter for most people; otherwise this would just be automagic like letsencrypt is now.
CDS and CDNSKEY records basically solve this problem, but last I checked only a tiny minority of registrars implement them. Even then, some of them require things like 3-day windows in which the CDS/CDNSKEY must not change before they obey. It's basically a recipe for raising your blood pressure 10mmHg.
So, everyone ignores it for this very good reason. As long as it's essentially installing a landmine in your office chair nobody will touch it.
For most users there's really no reason for a ZSK/KSK split or rolling keys, much the same as there's no need for rolling SSH keys for most users.
The current Web's CAs system has obvious flaws, and periodic clown shows, but it gets just enough workarounds to maintain the status quo. DNSSEC would like to replace Web's CAs with its own (DANE), but that isn't a fundamental departure from trusting CAs, only a different arrangement of authorities.
The Web PKI relies heavily on DNS, and thus without DNSSEC it's vulnerable to spoofing. Of course people like Thomas have worked very hard to get people not to enable DNSSEC, and so a great many domains can be spoofed. Are they? Maybe†. It's hard to tell, after all there would be no sign of a problem, everything looks fine, there's no validation step because you said you didn't want one...
† At a previous employer in 2019 I looked into this. Military intelligence definitely perform attacks on foreign country Internet infrastructure, but at that time they mostly seemed to rely on the fact that users don't use TLS and/or dismiss dialogs saying the certificates didn't match. The UX got better since, so I'd expect today they routinely ask a CA to issue for these unvalidatable domains once they control the packet flow.
CAs are deterred from misissuing by CA/B forum and CT logs. This is actually stronger than DNSSEC where browsers have no power to catch and punish malicious/incompetent CAs.
Web PKI is vulnerable to DNS spoofing when issuing domain-validated certificates, and this is kinda crapshoot. It is getting "patched" with things like querying from multiple vantage points, push for RPKI to make BGP attacks harder, and certificate transparency to catch spoofing after the fact. This is a weakness, but somehow TLS hasn't collapsed yet because of that.
There exist other application-layer protocols than HTTP.
If it's an error in the specification, how can patches already be available without breaking the specs?
Can anyone shed light on this? I'm asking for I'm running unbound which is affected (because it's following the spec IIUC) and yet a patch for unbound is already out.
Say, if you design some recursive template in C++ that resolves after a million steps, that might technically be a valid program according to the spec but no compiler will actually accept it (I think the C++ spec actually allows recursion limits, but that's beside the point).
This vulnerability is a bit like not having that limit. So, maybe an RFC to explicitly call out the need for some limit on DNSSEC processing time will be issued, but in practice no one except for attackers should ever come anywhere near the newly imposed non-standard ones.
For example,
dq a ianix.com 192.5.6.30
1 ianix.com - regular DNS:
197 bytes, 1+0+2+2 records, response, noerror
query: 1 ianix.com
authority: ianix.com 172800 NS uz5dns2sdrnxskf5lqt46v34cdlfqb9q2lvvmpr95g3l1qh0148sf6.ianix.com
authority: ianix.com 172800 NS uz5dns1bx64zu3pgn9nm4zfvmh2vy4hpjy7nkjz6qjcu325bg9hzcx.ianix.com
additional: uz5dns2sdrnxskf5lqt46v34cdlfqb9q2lvvmpr95g3l1qh0148sf6.ianix.com 172800 A 104.207.143.9
additional: uz5dns1bx64zu3pgn9nm4zfvmh2vy4hpjy7nkjz6qjcu325bg9hzcx.ianix.com 172800 A 104.248.15.206
dq -s -k dns2sdrnxskf5lqt46v34cdlfqb9q2lvvmpr95g3l1qh0148sf6 ianix.com 104.207.143.9
1 ianix.com - streamlined DNSCurve:
229 bytes, 1+2+2+2 records, response, authoritative, noerror
query: 1 ianix.com
answer: ianix.com 3600 A 104.248.15.206
answer: ianix.com 3600 A 104.207.143.9
authority: ianix.com 259200 NS uz5dns1bx64zu3pgn9nm4zfvmh2vy4hpjy7nkjz6qjcu325bg9hzcx.ianix.com
authority: ianix.com 259200 NS uz5dns2sdrnxskf5lqt46v34cdlfqb9q2lvvmpr95g3l1qh0148sf6.ianix.com
additional: uz5dns1bx64zu3pgn9nm4zfvmh2vy4hpjy7nkjz6qjcu325bg9hzcx.ianix.com 259200 A 104.248.15.206
additional: uz5dns2sdrnxskf5lqt46v34cdlfqb9q2lvvmpr95g3l1qh0148sf6.ianix.com 259200 A 104.207.143.9
The query to 192.5.6.30 is not encrypted because the .com nameservers do not provide a DNSCurve public key prefixed by "uz5" in the subdomain.The query to 104.248.15.206 is encrypted using DNSCurve. Each packet is encrypted separately. Packets are exchanged via UDP just like regular DNS. DNSCurve predates QUIC.
There is also a free secondary DNS service that will let anyone offer DNSCurve without having to set up CurveDNS forwarders. Assuming they are still in business. I have not tested it. This should put to rest any doubts that DNSCurve actually works. But I know it won't.