News for hackers. Stuff that matters.
Re:CertSimple 5: DBA support, instant rekeying, flat pricing by tptacek on Monday January 30, 2017 @01:38PM (#13523805)
WebCrypto is browser Javascript crypto. You cannot rely on it to allow browsers to keep secrets from servers: the server has a variety of different straightforward ways to compromise cryptosystems it feeds to browsers.

Randomness is far from the most important problem with browser Javascript crypto; critics of browser crypto generally assumed that browser Javascript would get secure randomness at some point. The most important problem with this scheme is that there's no way to provide assurance that the browser JS runtime is what the user of an application expects it to be.

WebCrypto was chartered as a way to recreate the DRM schemes that Flash video plugins relied on, without needing plugins. You can read the working group notes to see that. It was never intended as, and cannot function as, a way of creating "server-proof" crypto apps.

Re:CertSimple 5: DBA support, instant rekeying, flat pricing by nailer on Monday January 30, 2017 @02:38PM (#13524296)
> The most important problem with this scheme is that there's no way to provide assurance that the browser JS runtime is what the user of an application expects it to be.

That's correct. We only use the native runtime (ie, no shims) but obviously users have to trust that that's the case unless they want to inspect the code. If there's no working window.crypto (or for certain blacklisted platforms with partial implementations) we go straight to out-of-browser keygen. Furthermore, the user has to trust that we're not sending the private key back to us by some channel: they could do this fairly easily by inspecting the code but if they're uncomfortable it's easier to click the 'make keys on my server' option.