News for hackers. Stuff that matters.
Re:Show HN: aes.io - secure storage/collaboration with clien... by tinco on Friday July 20, 2012 @10:28AM (#4270937)
Even though client-side JS has some fundamentally insecure properties it does not mean it can't be used for establishing reasonably secure communication. HTTPS suffers from some of those properties too and we rely on https for almost everything we do that requires some sort of security.

If your site is entirely self-contained and transported in full over https with a trustable ssl certificate and your users are using reasonably secure passwords and run browsers with addons that respect the confidentiality of https communication then client-side js encryption might be a nice extra layer of data protection.

It won't protect against the government probing, and it won't protect against a passionate lulz hacker.

The government can always subpoena the host website, and force it to fetch the password from the user, thereby comprimising their data. The government also has access to ssl certificates so it could even do this without notifying the host website. You may assume that lulz hackers have similar capabilities.

If you think about it straight, the only way this can be truly secure is with a browser extension that digitally signs and versions _all_ javascript on a website, and the signing is done by a fully trusted third party (which arguably don't exist).

Re:Show HN: aes.io - secure storage/collaboration with clien... by tinco on Friday July 20, 2012 @11:13AM (#4271129)
There is one thing client side js does protect you against very well and that is simple sql-injection style vulnerabilities.

Any database exposure vulnerability that does not compromise the host is fully mitigated by client side encryption. This is a very large class of vulnerabilities in the real world, so this is actually a very good case in favor of client side encryption.

Re:Show HN: aes.io - secure storage/collaboration with clien... by tptacek on Friday July 20, 2012 @11:28AM (#4271195)
Uh, what?

Losing the database is game over. The odds are very high that by losing the database loses command execution on the server.

Re:Show HN: aes.io - secure storage/collaboration with clien... by tinco on Friday July 20, 2012 @11:46AM (#4271280)
Well that depends entirely on wether you've configured your environment securely. If your sql server runs as an unprivileged user preferably on a different machine this should not be an issue.
Re:Show HN: aes.io - secure storage/collaboration with clien... by patio11 on Friday July 20, 2012 @06:16PM (#4273119)
Even if someone were impressively thoughtful about that, they'd still cough up arbitrary code execution on the web tier for most Rails / Django applications, by writing an appropriately serialized external command into the queuing system. That external command would be loading metasploit into /tmp and then gaining root with a local privilege escalation.

Thomas is right, though: if you lose the DB, you're forked.

Re:Show HN: aes.io - secure storage/collaboration with clien... by tptacek on Friday July 20, 2012 @12:09PM (#4271414)
Uh huh.
Re:Show HN: aes.io - secure storage/collaboration with clien... by tinco on Friday July 20, 2012 @01:16PM (#4271815)
So you obviously don't agree, care to elaborate? You seem to be the expert here..

(btw I don't mean that command execution is not a problem, I mean that if you configure your sql server well it should not allow command execution, there's not _that_ many ways to escape the database..)

Re:Show HN: aes.io - secure storage/collaboration with clien... by tptacek on Friday July 20, 2012 @01:31PM (#4271886)
This is one of those discussion where when I point out mistakes that (a) everyone makes and (b) you haven't thought of before and (c) are exploitable whether or not you encrypt, you're going to say "oh, well, you just shouldn't make those mistakes", and so I'm not interested in pursuing this and am content to rest my case.
Re:Show HN: aes.io - secure storage/collaboration with clien... by wglb on Friday July 20, 2012 @03:48PM (#4272585)
>There is one thing client side js does protect you against very well and that is simple sql-injection style vulnerabilities.

Um, I don't think so. Client side JS is very good at doing SQLi. How on earth does client-side encryption mitigate against SQLi?