by rswail · 2y ago · 0 comments
Is there no alternatives to DNSSEC that would have allowed the equivalent of DANE to be provided somehow?
What it doesn't do, DNSSEC tried to fix (chain of trust, negative acknowledgements, etc) but for some reason, it was considered "too hard", in the same way that IPv6 was/is.
It also didn't solve the security of the protocol because the queries remained unencrypted, even if the data returned was guaranteed to be accurate.
However, the result is things like DNS-over-https which essentially requires edge users to trust closer-to-the-center resolvers to maintain the security of their queries.
So we need a trusted, encrypted protocol to query a trusted, secured, distributed naming service.
Using https to a well-known source that relies on DNS for location adds very little to the security against poisoning a DNS cache.
So "storing public keys" isn't the easy part of the problem. The PKI should be in-built with the naming service because the names are what the PKI is protecting, as well as communications between them.
Which is back to where we started, that DNSSEC was the right idea with the wrong solution, so we're stuck with a hack.
Regarding where the PKI "should" be, it's good to want things!
I think this analysis doesn't factor in the MTA-STS cache. While an attacker could block the MTA-STS records with a DNS cache poisoning attack, they'd need to perform the attack persistently to prevent the policy from being cached. This greatly reduces the window of vulnerability and complicates the attack.
The problem is that the DNS contains an MX record that says where to deliver email for a domain. So when a sending server wants to send, it looks that up. Then it looks up the received name as an A/AAAA record to find the IP address to connect to.
So we're already relying on DNS, which can be poisoned.
The "fix" for DNS poisoning is not DNS-over-TLS/HTTPS because that basic problem isn't solved.
If we secure DNS against tampering/poisoning, then the same infrastructure can deliver public keys and other information safely as well.
I also asked why this is better than just standardizing on a port and using SMTP over TLS with existing certificate infrastructure, but they did not answer that question.
Using TLS provided by the mail server may have been possible, similar to how the HSTS header is sent over the HTTPS connection. But unfortunately the MTA-STS policy if for the receiving domain (@example.com) and the receiving mail server may be run on a completely different domain. We need a signal that cryptographicly relates to the receiving domain.
Or are you saying you're not doing STARTLS at all and servers delivering mail to you have to do an SSL handshake before getting to speak SMTP to you? I'm quite surprised if that's compatible with the wider SMTP world.
We could have added a field so that when a server announces that they support STARTTLS, they can say that this fact should be cached for X days.
250-AUTH LOGIN PLAIN
250-STARTTLS
250-STARTTLS-CACHE-90-DAYSOne challenge for your suggestion is that the mail server is often run by a different organization, on a different domain from the receiving address. The HTTPS web server, on the other hand, has a TLS certificate for the mta-sts subdomain of the receiving address. This gives confidence that the MTA-STS policy is set by the receiving domain, not the receiving mail server.