News for hackers. Stuff that matters.
Re:Cryptico.js - strong encryption system utilizing RSA and ... by thinner on Sunday August 28, 2011 @11:58AM (#2934151)
That's a fair point. The idea that it could be used "for demonstration purposes only", though, seems to go too far in that direction. It seems like a useful library, just not for organizing a coup.
Re:Cryptico.js - strong encryption system utilizing RSA and ... by tptacek on Sunday August 28, 2011 @12:10PM (#2934186)
Javascript cryptography is breakable by teenagers. The attacks don't require a government.
Re:Cryptico.js - strong encryption system utilizing RSA and ... by thinner on Sunday August 28, 2011 @12:21PM (#2934223)
I would argue that rot13 is better than unencrypted, and that this is a step up from rot13. Sure, it's imperfect, but it's still better than nothing, and while I'm only a mediocre programmer, it appears to be easy-to-use, to boot. Better-than-nothing and easy-to-use seems like something more useful than "for demonstration purposes only", don't you think?
Re:Cryptico.js - strong encryption system utilizing RSA and ... by tptacek on Sunday August 28, 2011 @12:24PM (#2934231)
I am fine with stipulating that Javascript cryptography is approximately as good as rot13, and so we can move on.
Re:Cryptico.js - strong encryption system utilizing RSA and ... by cipherpunk on Sunday August 28, 2011 @12:52PM (#2934301)
The company I work for (who for obvious reasons I will refuse to mention) refuses to implement standard cryptographic practises in its product. Several months after starting there, and after a lot of loud complaining, I managed to get them to switch to using bcrypt instead of plaintext passwords in the backend database. Only in the next release are they switching to using TLS for logins, and even then sometimes defaulting to a clearly fucked Javascript implementation of cryptography to send the password (using public key crypto with global server key that only changes on server restart, with replay attacks galore).

The one thing I can say about the JS cryptography is that it normally protects somewhat against passive sniffing attacks, but when it's as broken as this, it doesn't even accomplish that task.

This sort of thing seems chronic in the industry, and it's dismaying.

Re:Cryptico.js - strong encryption system utilizing RSA and ... by tptacek on Sunday August 28, 2011 @01:56PM (#2934494)
And as we both know, the "passive sniffing attacker" is a myth. If you can sniff packets, you can intercept traffic. We don't reason about security mechanisms by tying the attackers hands behind their back.
Re:Cryptico.js - strong encryption system utilizing RSA and ... by cipherpunk on Sunday August 28, 2011 @02:06PM (#2934524)
But of course. Preaching to the choir.

Management made the decision that my trivial change to eliminate replay attacks was "too much effort". I am inclined to agree, since even with such a change the effort required to circumvent their entire so-called security is minimal.

Next quarter they're introducing e-commerce solutions. Dear god.

Re:Cryptico.js - strong encryption system utilizing RSA and ... by nitrogen on Sunday August 28, 2011 @04:22PM (#2934837)
One might argue that, if an unnamed company's e-commerce solution would put a lot of people at risk, and an unnamed engineer can prove it, that unnamed engineer has an ethical obligation to discreetly report the vulnerability first to the unnamed company, then to successively more influential and more public venues (e.g. consumer protection groups, security research groups, etc.), until the company responds.
Re:Cryptico.js - strong encryption system utilizing RSA and ... by tptacek on Sunday August 28, 2011 @04:43PM (#2934910)
One might argue that such a course of action will simply get the engineer pointlessly fired.
Re:Cryptico.js - strong encryption system utilizing RSA and ... by thinner on Sunday August 28, 2011 @12:39PM (#2934266)
Really? You can't concede that an implementation like this is better than rot13?
Re:Cryptico.js - strong encryption system utilizing RSA and ... by cipherpunk on Sunday August 28, 2011 @12:54PM (#2934304)
If you're in a position to intercept the traffic, then you can likely rewrite it. That includes the JS.
Re:Cryptico.js - strong encryption system utilizing RSA and ... by rmc on Sunday August 28, 2011 @01:12PM (#2934350)
Sometimes plain text is safer. Otherwise people have the illusion of security.
Re:Cryptico.js - strong encryption system utilizing RSA and ... by adrianN on Sunday August 28, 2011 @03:29PM (#2934712)
Why do you say that? If properly implemented strong crypto is strong, regardless of the language.
Re:Cryptico.js - strong encryption system utilizing RSA and ... by tptacek on Sunday August 28, 2011 @04:00PM (#2934774)
See the link I posted elsewhere on the thread.