News for hackers. Stuff that matters.
Re:What it means to see a 'bad' certificate in TLS Certifica... by cryptonector on Monday October 17, 2022 @02:17AM (#33230299)
There is a better way than CT: DANE, with query name minimization to prevent MITMing of some domains (as opposed to none or all) by a malicious or compromised . or TLD.

DANE means you get a real PKI with real name constraints, unlike WebPKI.

DANE stapling can reduce latency, but doing DANE w/ qname minimization for most of the domainname being resolved has the property that you get to make life really hard for a malicious or compromised . or TLD. You get to cache a lot of results, so using DANE stapling for the stem of the domainname should still reduce latency a fair bit.

With DNS over TLS or HTTPS we're seeing that resolvers are willing to use TCP, which is one answer to the DNS amplification attack concern.

Re:What it means to see a 'bad' certificate in TLS Certifica... by josephg on Monday October 17, 2022 @07:49AM (#33232286)
What’s the status on DANE? Is it supported in any modern web browsers? Is it gaining any traction?
Re:What it means to see a 'bad' certificate in TLS Certifica... by Koenvh on Monday October 17, 2022 @08:00AM (#33232372)
DANE is gaining adoption primarily when it comes to email - browsers are still hesitant.
Re:What it means to see a 'bad' certificate in TLS Certifica... by LeonM on Monday October 17, 2022 @08:36AM (#33232651)
I don't understand why you are being downvoted, since you are right.

For example: Microsoft has recently adopted DANE validation for outbound email, are planning to add TLSA records for their inbound email 'by the end of 2022. [0]

[0] https://techcommunity.microsoft.com/t5/exchange-team-blog/re...

Re:What it means to see a 'bad' certificate in TLS Certifica... by tptacek on Monday October 17, 2022 @11:07AM (#33234525)
Browsers have refused to implement DANE for the last ten years. In the meantime, the major email players came up with MTA-STS, and alternative to DANE that cites lack of DNSSEC adoption as one of its rationales.

If you send email today, it's vanishingly unlikely that any DNSSEC will happen; email is complicated and email infrastructure tends to shut people's brains off (I know it does for me) but you can just look at the tiny slice of domains that are actually DNSSEC signed and see that there's no meaningful adoption.

Re:What it means to see a 'bad' certificate in TLS Certifica... by Avamander on Monday October 17, 2022 @08:09AM (#33232437)
You're just trading one PKI for an another with DANE. One that has way less transparency.
Re:What it means to see a 'bad' certificate in TLS Certifica... by cryptonector on Monday October 17, 2022 @09:06PM (#33241763)
First of all, this is not worse than WebPKI. CT or no CT, you won't catch CAs MITMing you until it's too late, and even with CT you depend utterly on the sites you visit actually auditing CT.

Second of all, with DANE with QName minimization the parent CAs (zones) don't know what you'll be asking of the ones below, so either they MITM you for all your requests or none of them or they have to have other context to decide when to MITM you. The one bit of context they really want but don't get to have -if you minimize queries- is the full domainname you're trying to resolve, so it's hard for them to decide whether to MITM you. And you can catch DNS zones lying because you can a) perform the same lookups in different networks, b) you can download, cache, and check . and TLDs so you can catch those lying (which is 99% of the battle).

But most importantly, you get real, strong name constraints.

Re:What it means to see a 'bad' certificate in TLS Certifica... by Avamander on Tuesday October 18, 2022 @06:17AM (#33245141)
It very much is.

> CT or no CT, you won't catch CAs MITMing you until it's too late, and even with CT you depend utterly on the sites you visit actually auditing CT.

You won't catch a malicious nameserver operator, if they wish to MITM a specific victim, ever. There's no monitoring at all. While utterly depending on the fact they even enforce DNSSEC.

What's worse is that DNSSEC keys tend to live very long, if those are compromised, it will probably be abusable for years.

> a) perform the same lookups in different networks, b) you can download, cache, and check . and TLDs so you can catch those lying (which is 99% of the battle).

But if you're not the victim, it's unlikely you'll ever notice as a site operator. CT in that sense is different and much better as you can't rely on end-users reporting these things.

DNSSEC right now is a much much worse PKI than WebPKI is.

Re:What it means to see a 'bad' certificate in TLS Certifica... by garaetjjte on Monday October 17, 2022 @09:35AM (#33233236)
DANE (and generally anything that depends on DNSSEC) is dead technology at this point, with zero adoption in browsers. Arguably it offers less protection against malicious TLD or root because you don't get any logs. (well, you could require both with PKIX-EE mode, but that's getting really complicated to configure)
Re:What it means to see a 'bad' certificate in TLS Certifica... by tptacek on Monday October 17, 2022 @11:08AM (#33234540)
DANE stapling died in committee at the IETF; there's no solid answer for how to implement it in a way where an attacker with control of a root certificate can't strip it off a TLS session, and if you assume an attacker can't control a WebPKI root certificate, DANE isn't serving any purpose either.

Meanwhile: DANE and CT don't have the same functionality at all. DANE defines away the need for transparency by saying that the PKI will be operated by entities we all intrinsically and completely trust (world governments). CT says "we don't trust the PKI at all, so let's log it". A lack of any kind of DANE transparency log is one small reason among many that DANE isn't taken seriously.