News for hackers. Stuff that matters.
Re:Web browsers drop mysterious company with ties to U.S. mi... by codedokode on Thursday December 01, 2022 @01:53AM (#33813172)
Don't you think that it would be better if certificate authorities were limited to certain TLDs? For example, a company from country A limited to A's national TLD? This way even if they are ordered to produce a fake certificate, they can only decrypt traffic for country A's sites.

Also browsers should display a warning when a certificate issuer for a website changes.

Re:Web browsers drop mysterious company with ties to U.S. mi... by zinekeller on Thursday December 01, 2022 @02:33AM (#33813416)
> Don't you think that it would be better if certificate authorities were limited to certain TLDs? For example, a company from country A limited to A's national TLD? This way even if they are ordered to produce a fake certificate, they can only decrypt traffic for country A's sites.

I think it would harm users relying on certain sites. This already happened with CNNIC and .cn, so I don't think that mandatory restrictions would make it better (and besides, the only CAs requesting to restrict issuance is government CAs).

Re:Web browsers drop mysterious company with ties to U.S. mi... by netheril96 on Thursday December 01, 2022 @04:54AM (#33814300)
> I think it would harm users relying on certain sites. This already happened with CNNIC and .cn

Care to elaborate? I don't really understand how it harms users.

Re:Web browsers drop mysterious company with ties to U.S. mi... by ProtoAES256 on Thursday December 01, 2022 @05:55AM (#33814719)
CNNIC was caught signing fake Google certs.
Re:Web browsers drop mysterious company with ties to U.S. mi... by zinekeller on Thursday December 01, 2022 @05:57AM (#33814735)
In 2015, CNNIC have impersonated Google's domains (which while Google have a minimal presence in China is still a faux pas).

Also to clarify: restricting it to specific TLDs where the CA physically operated would amplify local laws, while restricting it to TLDs that are outside the CA's physical presence would basically mess up enforcement and would spur governments to curate a mandatory sanctioned list (heard of EU QWAC?) It's a lose-lose case either way.

Re:Web browsers drop mysterious company with ties to U.S. mi... by netheril96 on Thursday December 01, 2022 @11:42AM (#33818762)
I’m aware of the incident, but I don’t understand your reasoning. Had CNNIC been restricted to issue certificates only for .cn domains, the incident would have never been possible. That should be a supporting evidence for CA name constraints.

I don’t understand the “amplifying local law” part. How is restricting the power amplifying?

Re:Web browsers drop mysterious company with ties to U.S. mi... by XorNot on Thursday December 01, 2022 @02:15AM (#33813290)
What I don't get is how this wasn't thought up to be put into the SSL/TLS standard when it was built. How did we wind up with infinitely powered root certification authorities?
Re:Web browsers drop mysterious company with ties to U.S. mi... by dikei on Thursday December 01, 2022 @02:51AM (#33813518)
The current PKI is geared toward ease-of-use and adoption.

It can also be turned completely around: only trust a single root certificate. This design is often used in client authentication: each client need to get its certificate signed by the one single CA that's trusted by the server.

Re:Web browsers drop mysterious company with ties to U.S. mi... by XorNot on Thursday December 01, 2022 @03:48AM (#33813868)
Right but implementation wise we've never implemented as a default anything else. Domain prefix pinning is available as an extension, but that's all it is - very few TLS stacks support it and that's unlikely to ever change.
Re:Web browsers drop mysterious company with ties to U.S. mi... by moring on Thursday December 01, 2022 @03:03AM (#33813590)
Is this actually part of the standard? AFAIK TLS allows/demands to authenticate one or both sides via certificates, and defines a mechanism to delegate trust via certificate chains. It does not, AFAIK, define how trust is established, and my guess is that the standard authors realized that this is an infinitely complex topic that should not be intermixed with the technical and cryptographic side of the problem.

It just turns out that delegating trust to root CAs, CAs, and browser/OS vendors (the latter via built-in certificate lists) makes it easy for the end user.

Re:Web browsers drop mysterious company with ties to U.S. mi... by 9034725985 on Thursday December 01, 2022 @04:23AM (#33814101)
> It just turns out that delegating trust to root CAs, CAs, and browser/OS vendors (the latter via built-in certificate lists) makes it easy for the end user.

This flexibility is what allowed let’s encrypt to bootstrap, right?

Re:Web browsers drop mysterious company with ties to U.S. mi... by bawolff on Thursday December 01, 2022 @04:32AM (#33814155)
nameConstraints x509 extension is part of a different standard - https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1....
Re:Web browsers drop mysterious company with ties to U.S. mi... by tialaramex on Thursday December 01, 2022 @04:49AM (#33814263)
TLS itself has no opinion about how certificates work. AFAIK it would be totally fine by the standard to put a JPEG photo of a your primary school certificate for 10m swimming where certificate goes in the protocol. If the other party is OK with your proof that you can swim to secure the connection, all is good.

Netscape invented all this stuff in the 1990s as SSL. Turns out you need a PKI to make it work, because of a tricky edge case which otherwise makes the whole thing worthless. So, they used the existing but little used X.509 PKI left over from the X.500 directory work, even though the Internet is not part of the envisioned global network X.500 is for. The X.509 PKI had a bunch of famous brand "trustworthy" companies minting certificates.

PKIX, an IETF working group to figure out how to force X.509 to be suitable for the Internet, adds stuff like SANs (Subject Alternative Names, a way to express Internet ideas about naming like IP addresses and DNS names) but that all happens after SSL 2.0 and SSL 3.0 and people start writing https URLs.

Re:Web browsers drop mysterious company with ties to U.S. mi... by mschuster91 on Thursday December 01, 2022 @04:39AM (#33814205)
The same reason that lies behind many problems in IT: a lot of the early (and now still foundational) protocols date back to times where the participants in the network were universities or other large entities (governments, large corporations) and trust was assumed between them.

Obviously, that broke down over time, and nefarious actors (both governmental and private) popped up.

Re:Web browsers drop mysterious company with ties to U.S. mi... by moring on Friday December 02, 2022 @02:58AM (#33828010)
That isn't the only reason. Another big one is that the problem itself is hard, so noone could come up with an easy solution. How would you establish trust in a world without root CAs?

Peer-to-peer? That would require you to constantly monitor the activity of those peers and update your lust of trusted certificates.

Singular trusted entities like browser or OS vendors? We already have that. Browser/OS certificate list are currently the entry point and have even higher priority than root CAs -- that is what the article is about.

Government bodies are an easy-to-go "trusted" entity because, while you may or may not actually trust them, you are forced to "trust" them in many aspects of daily life anyway. You are forced to rely on the fact that the police doesn't randomly knock on your door and arrest you. Governmnent bodies may (depending on your country) simply demand higher taxes than you owe them, and you have to fight a lawsuit to avert that. Government bodies can easily falsify evidence that makes you lose your house because it now says that somebody else is the owner (lawsuit again).

Re:Web browsers drop mysterious company with ties to U.S. mi... by mschuster91 on Friday December 02, 2022 @03:13AM (#33828079)
I outlined parts of the problem in another comment in this thread: https://news.ycombinator.com/item?id=33814801

Basically, establishing trust in a matter of "I am actually talking to the legitimate server behind example.com and not a MITM" is easy, that could be solved by DNSSEC and cert pinning (although for legacy reasons, we went with CAs as the middle man).

But the really interesting thing, which is unsolved to date, is making sure that when you type "bank.com" in a browser, you have some sign that you are actually talking to Bank LLC and not some other entity.

In ye olde times, you didn't have to worry about someone else spoofing the domain name of "bank.com", e.g. as "b4nk.com" or "bänk.com", for one because access to registering domains was complex and expensive, and for one because criminals hadn't found out they could make money...

Re:Web browsers drop mysterious company with ties to U.S. mi... by moring on Friday December 02, 2022 @05:25AM (#33828782)
I feel like the underlying cause is that we give a significance to URLs that they should not have. When, in your example, I want to visit the website of Bank LLC, I have to know that its URL is bank.com (right now I usually know this through Google), then enter that and then have to deal with the problem you describe.

This would be better solved if the URL as a middle step did not exist can I could directly select Bank LLC. Right now we rely on google to shield us from domain name spoofing.

But then, unless we exchange keys with an entity beforehand (1), how can I even express that I want to visit that entity's website? Let alone solve the spoofing problem. We have to delegate trust to search engines, browser built-in lists, governments, company registries, whatever.

(1) possible, but only works if you know in advance that you want to communicate with a specific entity. Like before opening a bank account. I does not help when you don't even know which banks make an offer you are interested in.

Re:Web browsers drop mysterious company with ties to U.S. mi... by mananaysiempre on Thursday December 01, 2022 @06:03AM (#33814792)
There is the part where the usage of TLS certificates for DNS names on the Internet, as opposed to in the context of the (nonexistent) X.500 directory, is a gigantic hack[1]. This means the definition of “when it was built” is rather hazy. Also, the 1994 Netscape implementation literally accepted a CN=foo.com certificate when connecting to bar.org, so the state of SSL when it was built is not exactly a stellar reference.

Still, the name constraints extension, which restricts all certificates (transitively) issued from a given CA to a given DNS subtree, has been in the “Internet profile” of X.509 (PKIX) since the December 1996 draft[2]. The problem from this technical point of view is that very few implementations supported it until a couple of years ago[3].

[1] https://medium.com/@sleevi_/x-520-whats-in-a-name-da6ea8954b...

[2] https://datatracker.ietf.org/doc/html/draft-ietf-pkix-ipki-p...

[3] https://bettertls.com/

Re:Web browsers drop mysterious company with ties to U.S. mi... by hn_go_brrrrr on Thursday December 01, 2022 @02:48AM (#33813498)
Some CAs are limited in the way you describe. For instance, this just came up a few days ago: https://groups.google.com/a/mozilla.org/g/dev-security-polic...
Re:Web browsers drop mysterious company with ties to U.S. mi... by AndyMcConachie on Thursday December 01, 2022 @03:32AM (#33813772)
This is partly the idea behind DANE. With a DNS TLSA record one can create limits like this on a domain name.
Re:Web browsers drop mysterious company with ties to U.S. mi... by Puts on Thursday December 01, 2022 @06:25AM (#33814933)
I think that a good system would be that the key can be signed by multiple parties. For example if you are running a web shop, your certificate could be signed by Visa if you accept card payments, by your registrar to prove that you own the domain, by the tax office in your country to prove that you are a real company and so on. And then the browser would show these signatures as badges when clicking/hovering the padlock icon. So essentially the more signatures the more trustworthy.
Re:Web browsers drop mysterious company with ties to U.S. mi... by mananaysiempre on Thursday December 01, 2022 @07:28AM (#33815351)
Right now, CAs in the Web PKI certify authenticity, not trustworthiness: f the system works correctly, a successful TLS handshake with satan.com tells you that you have connected to the actual satan.com and perhaps that it is operated by Satan, Inc (although it’s still on you to check whether it’s the Delaware one or the Kentucky one[1]). It does not, and is not supposed to, tell you whether it’s smart to sell your soul there, CA marketing materials (“users trust sites that ...”) notwithstanding.

What you are proposing is an attempt at solving an entirely different problem that is, furthermore, largely orthogonal to ensuring the integrity and confidentiality of Internet traffic. It would be nice if that problem were solvable, but every time the Web PKI flirted with that it ended horribly[2]. (And now the EU authorities are trying to force it anyway, it seems.) Ensuring your bytes end up on the host you named, intact and unsnooped, is a comparatively easy problem that’s also pretty meaningful, and it seems smart to restrict ourselves to that. (I’d have advocated for DNSSEC+DANE, even, if I had any confidence at all in the DNS registrars’ ability to handle key material and willingness to give up domain control when that ability fails.)

[1] https://arstechnica.com/information-technology/2017/12/nope-...

[2] https://www.usenix.org/system/files/sec19-thompson.pdf

Re:Web browsers drop mysterious company with ties to U.S. mi... by bandrami on Thursday December 01, 2022 @08:17AM (#33815820)
Unfortunately TLS is already conflating two problems as it is: 1. Is the opposite party who they claim to be? 2. Did a third party alter or eavesdrop on the transmission?

That is, am I simply being phished in private or is the government also listening to me being phished?

It's trivially easy to solve the second problem and it doesn't require any PKI infrastructure whatsoever and we delayed secure transport by decades by tying it to the generally less-useful question in #1.

There are few entities online I trust more than I would trust someone impersonating them: basically only if money is changing hands. But I don't need to know that e.g. ycombinator.com is actually ycombinator.com because I don't trust ycmonbinator.com any more than I would trust someone impersonating ycombinator.com.

Re:Web browsers drop mysterious company with ties to U.S. mi... by jcranmer on Thursday December 01, 2022 @08:35AM (#33816003)
It is not trivially easy to solve the second problem without solving the first problem. If you don't have proof of identity, all someone has to do to eavesdrop on you is pretend to be the person you're communicating with while actually communicating with them on your behalf.
Re:Web browsers drop mysterious company with ties to U.S. mi... by cesarb on Thursday December 01, 2022 @10:15AM (#33817297)
It's the difference between a passive attack and an active attack. Most people think only of passive eavesdroppers, and against them it could be true that "it's trivially easy to solve the second problem and it doesn't require any PKI infrastructure whatsoever". But against an active attacker, unless you can solve the "is the opposite party who they claim to be" problem, it's trivially easy to eavesdrop by pretending to be the other party (MITM attack).

And then you find out there are ways to convert a passive eavesdropper into an active attacker (remotely injecting packets to manipulate the TCP connection state, based on observed sequence numbers), and the distinction becomes a bit fuzzy...

Re:Web browsers drop mysterious company with ties to U.S. mi... by judge2020 on Thursday December 01, 2022 @11:27AM (#33818485)
It's trivially easy when that 'proof of identity' is purely a unique identifier shown to the user, and not actually tied to real-world identity. This is what a domain name is, ICANN ensures people can't register a domain name if someone already owns it, so with that guarantee, everyone trusts that 'google.com' showing up in their URL bar means that the certificate presented by the server they're connecting to is actually authorized to show 'google.com'.
Re:Web browsers drop mysterious company with ties to U.S. mi... by jcranmer on Thursday December 01, 2022 @11:42AM (#33818779)
That proof of identity still needs to solve the first problem... you still need to somehow prove that someone who says they're google.com is actually google.com.
Re:Web browsers drop mysterious company with ties to U.S. mi... by salawat on Thursday December 01, 2022 @02:03PM (#33820965)
That's part of why the Root CA certs are

A) Long lived

and

B) why having an untrustworthy root CA is the most calamitous outcome possible.

Because the algorithm that yields the answer to your question really only answers the question "Does the cert I was handed cryptographically validate back to a trusted root?"

If you can pwn the routing/DNS sufficiently around an AS, you could MITM all the authoritative sources, and with something like TrustCor, willing to issue duplicitous root certs and cert chains, while being trusted by major OS and software package maintainers, you can, in theory, pull the old switcheroo, and the software will still tell you "seems legit, hoss".

This is part of why the Internet is architected as a "collective network of networks composed of Trusted Agents".

At the end of the day, you're depending on every middle box routing your packet to do the job to get it where it needs to go.

The type of Trust you're looking for is incompatible with technologically facilitated networking in a sense. The network cannot prove the trustworthyness of the network. Trust has to start outside it.

The trust we've rooted from is from the integrity of the institutions we've established. Something that has been eroded more and more over time as the Internet infrastructure has slowly been civically infiltrated to shape it into a surveillance tool by governments.

If you're feeling heartburn over this, the problem isn't the Internet per se. It's your Government, and your institutions, and for places that like to think they are populace driven, the people around you.

Re:Web browsers drop mysterious company with ties to U.S. mi... by judge2020 on Thursday December 01, 2022 @02:04PM (#33820982)
But you don't need to prove that.

1. registering google.com requires it being available, and their registry and registrars prohibit registering already-registered domains

2. these registries contain the authoritative DNS records for google.com

3. when anyone wants to pull a certificate for `www.google.com`, they first need to create a DNS TXT entry called "acme-challenge.google.com" (for example)

Because of this, you know that whoever 'says' they're Google.com actually is Google.com because of how domain names work and because you see the lock icon in your browser. It's all built on trust of registries and registrars operating diligently, and it's checked by pretty much every big company watching for changes to their domains in case of malicious actions.

Re:Web browsers drop mysterious company with ties to U.S. mi... by jcranmer on Thursday December 01, 2022 @02:26PM (#33821370)
That's a proof of identity. I think you're fixated on the notion that somehow "identity" can only refer to some kind of legal entity, but "identity" in the WebPKI sense is "control over a domain name"--and WebPKI exists to facilitate communication of proof of that identity.
Re:Web browsers drop mysterious company with ties to U.S. mi... by judge2020 on Thursday December 01, 2022 @04:29PM (#33823062)
Then i'm not sure where the disagreement lies. Domains are an identity and the CA/B ecosystem enforces proof of that.
Re:Web browsers drop mysterious company with ties to U.S. mi... by bandrami on Friday December 02, 2022 @12:59AM (#33827341)
No. A PKI-less system can ensure I am communicating with one and only one party. That's all most comms need. If I want some assurance that party is who they claim to be that can be negotiated over that channel.
Re:Web browsers drop mysterious company with ties to U.S. mi... by Puts on Thursday December 01, 2022 @09:06AM (#33816340)
Well we are certifying authenticity but we do it with the trust of the CAs. But if we can't trust the CAs maybe there are other authorities we can trust more, or that we at least can share the trust between several parties.

But I agree with you on the sentiment that stopping snooping technically is the easy part and this is already possible today with Public Key Pinning, DNSSEC, client certificates and so on.

But that's why I think the role of the CA should change so that the signatures actually gives some form of tangible trust that people can relate to.

Re:Web browsers drop mysterious company with ties to U.S. mi... by judge2020 on Thursday December 01, 2022 @11:24AM (#33818435)
> But that's why I think the role of the CA should change so that the signatures actually gives some form of tangible trust that people can relate to.

But this is a tough thing to do. The best way to do this would be to introduce a new type of certificate, that can be stapled onto web requests maybe (eg. a signature at the end of the http body), that isn't controlled or authenticated by any existing system. This would allow clients to implement this system based on merit and based on whether or not it solves problems and concerns these clients have. For example, if it's literally just EV certificate boogaloo[0], then Chrome can choose to not implement it.

But when you try to force it onto people in the form of QWACs or what have you, and have it government-mandated, this goes against the theory of 'open source' standards being adopted because they're a good standard, and instead degrades user experience by forcing client vendors to implement them regardless of their flaws.

0: https://scotthelme.co.uk/the-power-to-revoke-lies-with-the-c...

Re:Web browsers drop mysterious company with ties to U.S. mi... by onionisafruit on Thursday December 01, 2022 @09:49AM (#33816920)
> a successful TLS handshake with satan.com tells you that you have connected to the actual satan.com and perhaps that it is operated by Satan, Inc (although it’s still on you to check whether it’s the Delaware one or the Kentucky one[1]). It does not, and is not supposed to, tell you whether it’s smart to sell your soul there, CA marketing materials (“users trust sites that ...”) notwithstanding.

In this context it’s funny that https://satan.com redirects to https://mybible.com.

Re:Web browsers drop mysterious company with ties to U.S. mi... by ploxiln on Thursday December 01, 2022 @02:21PM (#33821298)
squatting on competitor-named domains!
Re:Web browsers drop mysterious company with ties to U.S. mi... by denton-scratch on Thursday December 01, 2022 @06:35AM (#33814990)
> For example, a company from country A limited to A's national TLD?

That's not an example of limiting CAs to certain TLDs; that's an example of limiting certificate users to a single CA. I'd sooner use a self-signed certificate than one signed by a monopoly government-controlled CA.

Re:Web browsers drop mysterious company with ties to U.S. mi... by xorcist on Thursday December 01, 2022 @07:15AM (#33815263)
It is obvious that inventing the CA business was a mistake, in retrospect. Netscape wanted nothing to do with it in practice.

What we should do is to delegate the few CAs that legitimately do non-domain validated certicates for specialized applications to only this. That includes things like signed code. Things like extended validation was invented solely to print more money and should be phased out of web browsers. They are not "more secure" and should not be regarded as such in any user interface.

The parties to issue domain validated certificates should be the domain registries. They do their job reasonably well already. They are already tasked with issuing domain ownership. It is only natural that they should validate this ownership cryptographically as well. It is a trivial extension to their business, and the registry/registrar model can be kept intact.

The trust chain for a domain validated certificate today includes both the registry and the CA, and either can fail. The risk is strictly minimized by removing the CA from the equation. CAs provide no value to the end user.

You will find several high profile people arguing against this. Do note that every one has vested interest in the status quo, either directly or indirectly by having CAs and governmental agencies as their clients.

How do we change this system? Mozilla has by way of their history some weight in these matters, and several capable people on board. It is my intense hope that they have a long term plan. Let's Encrypt is, as great an achievement as it is, still built on a broken trust model. But it could also be an excellent beachhead into a strictly better trust model for the end users.

Re:Web browsers drop mysterious company with ties to U.S. mi... by newaccount74 on Thursday December 01, 2022 @08:26AM (#33815901)
> Things like extended validation was invented solely to print more money and should be phased out of web browsers. They are not "more secure" and should not be regarded as such in any user interface.

I think it would be great if something like EV certificates were available from national governments.

We have pretty solid digital ID support in Austria, but all the tech for signing and authenticating documents (useful for invoices or account statements) require special software, and aren't built into web browsers and email clients that people use.

It would be nice if I clicked a link in an invoice email, if I could check that aws-billing.at is indeed a domain that belongs to "Amazon Web Services" registered in Austria or if it is a phishing attempt from a script kiddie in a foreign country.

Re:Web browsers drop mysterious company with ties to U.S. mi... by xorcist on Thursday December 01, 2022 @10:13AM (#33817260)
That could be usable for certain specialized applications, such as the authentication of documents you mention, but for not authenticating web sites.

For domains this assumption been proven wrong in practice several times. There are too many issues with almost identical names, or names that merely look identical but aren't, or just the difference between "Amazon Web Services Inc." in two different jurisdictions.

Troy Hunt has made several long blog posts with some convincing real world examples.

It is easier for end users to see which is more reputable of "amazon.com" and "amaz0n.biz", than it is to value "Amazon Inc." against "Amazon Cloud Services". It is not that the CAs are doing a bad job. It's that domains are the identity we really care about.

Furthermore, I am of the opinion that CAs should be destroyed.

Re:Web browsers drop mysterious company with ties to U.S. mi... by jiggawatts on Thursday December 01, 2022 @05:54PM (#33824162)
> You will find several high profile people arguing against this. Do note that every one has vested interest in the status quo, either directly or indirectly by having CAs and governmental agencies as their clients.

For example, Azure's Key Vault has built-in certificate issuance automation capability, but only with two for-profit CAs: DigiCert and GlobalSign.

Why not Let's Encrypt?

Because there's no margin on free.

Re:Web browsers drop mysterious company with ties to U.S. mi... by Crosseye_Jack on Thursday December 01, 2022 @08:09AM (#33815750)
But it could backfire in the other direction. Lets say I trust AWS and Let's Encrypt (the two CA's I currently use for my domains - that was the only reason I picked those two, both HQ'ed in the US), would I then be forced to used a Spanish CA for my .es domains or a Tuvaluan CA for my .tv domains?