News for hackers. Stuff that matters.
Re:Let's Encrypt root certificate trusted by Mozilla by devy on Friday August 05, 2016 @12:39PM (#12233699)
It's been discussed in details here the reason why they don't support wildcard: "doing domain validation for wildcard certificates is not currently in the ACME spec because it's a hard problem."[1]

LetsEncrypt CA allows Subject Alternative Names (SAN), the true need for an unlimited sub-domains TLS cert vs. a SAN TLS cert is minimum, given Certbot's automation capability.

[1]: https://github.com/certbot/certbot/issues/66#issuecomment-16...

Re:Let's Encrypt root certificate trusted by Mozilla by Nullabillity on Friday August 05, 2016 @12:49PM (#12233800)
SAN isn't a practical solution for cases where you don't want to expose which subdomains exist, or where you allocate them dynamically.
Re:Let's Encrypt root certificate trusted by Mozilla by aroch on Friday August 05, 2016 @12:54PM (#12233872)
Unless all your subdomains are unique (e.g. coming out of a PRNG) AND there are no public DNS entries for them, subdomain enumeration by DNS or IP space is super easy. Not using SAN because of info disclosure concerns is security through obscurity.
Re:Let's Encrypt root certificate trusted by Mozilla by kentonv on Friday August 05, 2016 @01:04PM (#12233958)
Well yes, that's the idea: Say you have a wildcard DNS entry and you cryptographically-randomly-generate hostnames in it, as an added layer of defense against CSRF bugs in the applications running on these hosts.

https://docs.sandstorm.io/en/latest/administering/wildcard/#...

Re:Let's Encrypt root certificate trusted by Mozilla by aroch on Friday August 05, 2016 @01:22PM (#12234123)
That doesn't prevent domain enumeration for your application though. Once you publish an application, anyone using it can find the address its hosted behind
Re:Let's Encrypt root certificate trusted by Mozilla by icebraining on Friday August 05, 2016 @01:35PM (#12234230)
> publish

Sandstorm is a platform for personal computing; each person runs their own applications, much like in a PC. Also, applications don't get hostnames; each document (or equivalent) in the application gets its own hostname.

Re:Let's Encrypt root certificate trusted by Mozilla by kentonv on Friday August 05, 2016 @03:26PM (#12235121)
It's even finer-grained than that. Each session gets a hostname -- if you open the same document twice, it's at a different hostname each time. This also implies that different users get different hostnames, so you can't discover the host another user sees even if you have access to the same document.
Re:Let's Encrypt root certificate trusted by Mozilla by collinmanderson on Sunday August 07, 2016 @09:00AM (#12241957)
Isn't that insecure because hostnames are sent in the clear? (both in TLS handshake and DNS lookup?)
Re:Let's Encrypt root certificate trusted by Mozilla by icebraining on Sunday August 07, 2016 @01:51PM (#12242868)
The hostnames aren't authentication, just another layer of defense, mostly against JavaScript attacks (e.g. from hacked applications): https://docs.sandstorm.io/en/latest/administering/wildcard/#...
Re:Let's Encrypt root certificate trusted by Mozilla by kentonv on Sunday August 07, 2016 @03:24PM (#12243258)
Right, this is about mitigating the damage when apps have a bug -- risk management. Instead of being exploitable from anywhere on the internet, the bug becomes exploitable only by attackers who have a passive network MITM, which, while possible, is a very high barrier.
Re:Let's Encrypt root certificate trusted by Mozilla by tracker1 on Friday August 05, 2016 @06:31PM (#12236143)
For such applications, there are plenty of relatively inexpensive paid options for wildcard certs. I don't think this is something Let's Encrypt should solve. I'd rather see them invest more time into supporting dynamic dns provider domains better, which imho is a much larger issue for small/hobby/free projects.
Re:Let's Encrypt root certificate trusted by Mozilla by patates on Saturday August 06, 2016 @02:13AM (#12237268)
I'm ready to pay a reasonable amount for a wildcard cert to use with some hobby projects. Is there a trustworthy cheap wildcard cert provider which is not Comodo?
Re:Let's Encrypt root certificate trusted by Mozilla by gnyman on Saturday August 06, 2016 @10:21AM (#12238192)
Have you checked StartSSL? They've worked fine for me.
Re:Let's Encrypt root certificate trusted by Mozilla by icebraining on Saturday August 06, 2016 @03:28AM (#12237396)
What's the problem with dynamic dns provider domains?
Re:Let's Encrypt root certificate trusted by Mozilla by tracker1 on Monday August 08, 2016 @01:12AM (#12245628)
I mean domains on no-ip, freedns, dyndns and the like.. that are subdomains are more likely to hit the default limits with Let's Encrypt... I'd like to see some auto-whitelisting for some of the more popular ones.
Re:Let's Encrypt root certificate trusted by Mozilla by x1798DE on Friday August 05, 2016 @09:29PM (#12236638)
I thought sandstorm was a self-hosted thing. Why do the certs need to be signed by a public CA at all? A self-signed certificate is fine (and in some ways better than a public CA) when you can verify the source yourself because you generated it.
Re:Let's Encrypt root certificate trusted by Mozilla by kentonv on Friday August 05, 2016 @09:40PM (#12236662)
Sure, you can use a self-signed cert, if you don't mind going through the process of installing the cert into every browser that you'll use to access the server.

But Sandstorm is designed for sharing and collaboration. For example, you might write a document in Etherpad which you want other people to comment on. It may be tough to get the right certificate into all your friends' and family's browsers.

(Note that Sandstorm actually provides free wildcard certificates if you are OK with using a subdomain of sandcats.io.)

Re:Let's Encrypt root certificate trusted by Mozilla by aroch on Friday August 05, 2016 @03:20PM (#12235081)
At which point we're back to my original point of why does the information disclosure matter?
Re:Let's Encrypt root certificate trusted by Mozilla by kentonv on Friday August 05, 2016 @03:28PM (#12235131)
Defense-in-depth against CSRF attacks, which are still way too common. Sandstorm can't security-review the apps for you but it can mitigate most vulnerabilities.
Re:Let's Encrypt root certificate trusted by Mozilla by LinuxBender on Friday August 05, 2016 @06:36PM (#12236160)
I would like to add that security through obscurity is not bad when it used as layers in the security cake. Delicious red velvet cake with cool fluffy chocolate frosting and a side of ice cream.
Re:Let's Encrypt root certificate trusted by Mozilla by Jweb_Guru on Friday August 05, 2016 @01:08PM (#12234011)
If it doesn't count as secure unless there's perfect information transparency, most of cryptography is based on "security through obscurity."
Re:Let's Encrypt root certificate trusted by Mozilla by devy on Friday August 05, 2016 @01:59PM (#12234458)
Wildcard certificates have significant constraints of single level of the subdomain matching and security risks[1], putting side the debate of the real benefits of "not exposing subdomains".

[1]: https://tools.ietf.org/html/rfc6125#section-7.2

Re:Let's Encrypt root certificate trusted by Mozilla by icebraining on Friday August 05, 2016 @12:51PM (#12233839)
A good example is the Sandstorm platform, which fits both cases.
Re:Let's Encrypt root certificate trusted by Mozilla by __david__ on Friday August 05, 2016 @04:28PM (#12235526)
Any idea what makes it a hard problem? I see nothing that actually explains the issue.
Re:Let's Encrypt root certificate trusted by Mozilla by illumin8 on Friday August 05, 2016 @04:36PM (#12235578)
It's because once someone has a wildcard cert they can use it anywhere, in malicious ways: phishing emails that send you to bankofamerica.banking.io or other nefarious type of things.
Re:Let's Encrypt root certificate trusted by Mozilla by mieko on Friday August 05, 2016 @06:51PM (#12236219)
If I operated banking.io, I could get a bankofamerica.banking.io cert from LetsEncrypt today.

Unless something has changed, I could also get bankofamerica.com.banking.io, from LE or many other CAs. The wildcard issue has no effect on this situation.

Re:Let's Encrypt root certificate trusted by Mozilla by rahkiin on Friday August 05, 2016 @07:24PM (#12236346)
Problem is, that if ypu can prove you have access to someuser.github.com, it does not mean you have access to .github.com. Reversely, if you have access to .cs.mit.edu you might want a cert for it. So you cant give a wildcard using one subdomain test, nor can you simply test every domain. So they are looking in DNS verification. Given you have access to dns. But that also gives problems, as shown above.

Tldr: one verification limits another use, while another verification might expose domains that shouldnt be.

Re:Let's Encrypt root certificate trusted by Mozilla by mieko on Friday August 05, 2016 @07:47PM (#12236401)
That's not how domain-validated wildcard certificates from any CA have ever worked, and it's not how any proposed wildcard-supporting future LetsEncrypt would work.

I can, today, get a valid certificate for myname.github.io (getting GitHub to serve it is a different issue, but from an MITM, proof of ownership, and CA/Browser Forum standpoint, it's properly assigned.) That's not surprising or weird, and it's exactly how it's supposed to work.

A certificate for myname.github.io does not give me a valid certificate for someone-else.github.io or github.io. Similarly, a certificate for '* .myname.github.io', which can also be procured today from dozens of CAs, doesn't cause panic or change the situation at all. I just can't get it from LetsEncrypt.

If I can only prove control of 'cs.mit.edu', I can get a certificate for '* .cs.mit.edu', but not all of 'mit.edu'. If I can prove ownership of 'mit.edu', I can get a certificate that covers '* .mit.edu'. This is how it should and has always worked. It just doesn't work via LetsEncrypt.

Basically, heavier authority moves right, never left, in wildcard certificates.

(Edit: HN eating asterisks)

Re:Let's Encrypt root certificate trusted by Mozilla by AndyMcConachie on Saturday August 06, 2016 @01:13AM (#12237136)
Are you saying you're OK with co.uk getting a cert for foo.co.uk, even though they're under different administrative control? I'm not OK with that.

I understand that other CA's provide wildcard certs, but frankly I see them as a giant problem. It's bad enough that I only have to have something listening on port 80 to prove that I control a domain. Let's not make it more attractive for people to start fooling Let's Encrypt into getting certs for domains they don't control.

Re:Let's Encrypt root certificate trusted by Mozilla by grahamedgecombe on Saturday August 06, 2016 @02:13AM (#12237266)
CAs are forbidden from issuing a cert for * .co.uk. The Baseline Requirements say:

> The CA MUST establish and follow a documented procedure that determines if the wildcard character occurs in the first label position to the left of a "registry-controlled" label or "public suffix" (e.g. "* .com", "* .co.uk", see RFC 6454 Section 8.2 for further explanation).

This basically means that the CA should check the Public Suffix List before they issue a wildcard.

As a 'just in case' measure, most modern browsers also reject certs where the wildcard is directly below something on the PSL.

(sorry for the spaces after the asterisks, HN seemed to like converting big chunks of the post to italics)

Re:Let's Encrypt root certificate trusted by Mozilla by AndyMcConachie on Thursday August 18, 2016 @03:32PM (#12315661)
So pick a different DNS zone that isn't in the PSL but that is not an administrative boundary. They exist.

The Public Suffix list is an imperfect maintained list. You're relying on Mozilla to maintain it. You also never know if someone is selling names below their own zone. What if Mozilla decides to no longer maintain it? What if the volunteers stop maintaining it?

Maybe the PSL is a good start, but I would rather not rely on it. It's a convenience vs. security balance issue, and I'm leaning towards security.

Re:Let's Encrypt root certificate trusted by Mozilla by mieko on Saturday August 06, 2016 @02:51AM (#12237330)
> Are you saying you're OK with co.uk getting a cert for foo.co.uk, even though they're under different administrative control?

This argument hasn't been made, or hinted at, by anyone, anywhere in this thread. And $50 isn't the difference between that being possible or not.

Re:Let's Encrypt root certificate trusted by Mozilla by eeeeeeeeeeeee on Friday August 05, 2016 @09:29PM (#12236637)
You can require that the validation DNS record exists on the root domain (mit.edu) to prove you control the entire domain. I think there are ways to fix this.
Re:Let's Encrypt root certificate trusted by Mozilla by eeeeeeeeeeeee on Friday August 05, 2016 @09:26PM (#12236627)
But you can get these at other providers already. And I haven't seen many phishing pages with SSL, it's usually always HTTP.
Re:Let's Encrypt root certificate trusted by Mozilla by grahamedgecombe on Saturday August 06, 2016 @02:17AM (#12237275)
Wildcards are in the version of the ACME spec at https://letsencrypt.github.io/acme-spec/:

> A server MAY consider a client authorized for a wildcard domain if it is authorized for the underlying domain name (without the “*” label).

Although this seems to be gone from https://ietf-wg-acme.github.io/acme/, which I think is the later version.