News for hackers. Stuff that matters.
Re:Key compromise and root cert with exposed key in German l... by lima on Sunday December 24, 2017 @11:28AM (#16000119)
Importing the self-signed certificate itself into the root certificate store is actually an okay solution for this, assuming it's done properly (no CA bit set).

(obviously, that's not what they did)

Re:Key compromise and root cert with exposed key in German l... by hannob on Sunday December 24, 2017 @11:46AM (#16000197)
No, not if you still use a shared key.
Re:Key compromise and root cert with exposed key in German l... by user5994461 on Sunday December 24, 2017 @12:23PM (#16000343)
+1

Had the same story 3 days ago on the front page for a different software: https://news.ycombinator.com/item?id=15982161

Re:Key compromise and root cert with exposed key in German l... by hannob on Sunday December 24, 2017 @12:40PM (#16000409)
Actually the battle.net story has been distorted quite a bit. What they do now is more or less the right thing: They create new keys for every system.

The problem was what they did before: They had a publicly trusted cert for their local webserver.

Re:Key compromise and root cert with exposed key in German l... by lima on Sunday December 24, 2017 @03:53PM (#16001264)
Right, but there's no need to share the keys.
Re:Key compromise and root cert with exposed key in German l... by avita1 on Sunday December 24, 2017 @12:18PM (#16000329)
Is this really a common practice?

Why ask users to import the certificate into the root certificate store instead of packaging the self-signed certificate with and specially loading it from the application. That seems easier from the users' perspective and more secure as you aren't touching the global certificate store.

Re:Key compromise and root cert with exposed key in German l... by Xylakant on Sunday December 24, 2017 @01:04PM (#16000503)
The application in question is afaik a browser. As far as I ‘be been following this disaster, the client spins up a local webserver which then is accessed with your systems browser. So they have to use the cert store that the browser uses - which is the system store for some of them.

The problem in this case is not the cert in itself, the local webserver needs the private key. It also uses a non-local domain (bealocalhost.de or something akin to that) which resolved to 127.0.0.1. This is another design brainfart - it assumes that no webserver is running locally, the DNS is in no way protected, making it trivial for anyone who controls DNS to reroute that domain and since they have access to the key, MiTM is trivial. :sigh:

Re:Key compromise and root cert with exposed key in German l... by theossuary on Sunday December 24, 2017 @06:36PM (#16001847)
I disagree that using a non-local domain is a bad idea. As long as each client generates it's own key and certificate for the local webserver then a MitM isn't possible, even if they take over DNS. Using non-local DNS makes setting up DNS so much easier; and if they took over your DNS you already got some pretty serious problems.

The real problem is they embedded and distributed secrets, instead of generating them. It's funny​ a game company can do security better than a software firm working for a government. It's sad that I'm not surprised.

I'd bet money that people developing this software knew this was a problem, but government regulation required they use an external CA instead of a self-signed cert because "self-signed certs are always less secure", and nobody was empowered to make this issue known or do something better.

Re:Key compromise and root cert with exposed key in German l... by Spooky23 on Sunday December 24, 2017 @01:09PM (#16000520)
It’s become a common practice due to the changes in how browsers handle local, expired or self signed certificates. The “right” answers (use public CA, setup a local PKI) are complex and deliver low value.

PKI is complex, and certificate expiry is a major source of outages.