Re:Typing the Letters A-E-S Into Your Code (2009)
by ayrx on Saturday January 10, 2015 @06:45AM
(#8866613)
I'm the one that reported issue #1279. The owner of the project has shown that he has absolutely no interest in addressing (or even politely replying to) security issues in his code so I'd advise anyone to steer clear of opencart.
Re:Typing the Letters A-E-S Into Your Code (2009)
by F30 on Saturday January 10, 2015 @04:59AM
(#8866424)
It is out of question that you can do it wrong without typing A-E-S: Crypto is hard, and you can always fuck up in an infinite amount of ways.
That being said, do you have any reference on MCRYPT_RIJNDAEL_256 being an actual problem? The linked OpenCart issues deal with ECB mode and missing authentication, rather than the block size.
Re:Typing the Letters A-E-S Into Your Code (2009)
by sarciszewski on Saturday January 10, 2015 @03:21PM
(#8867783)
It's not really a problem so much as it's not doing what they think it's doing. 256-bit block-size Rijndael might even be better than 128-bit (AES). I don't know.
Nevermind the fact that only MCRYPT_RIJNDAEL_128 is actually AES, most developers choose MCRYPT_RIJNDAEL_256 and claim they're implementing AES-256.
To wit (trigger warning, encraption and severe arrogance on its developer's behalf follows):
https://github.com/opencart/opencart/blob/99bcfb24519ef3a411...
https://github.com/opencart/opencart/issues/1279
https://github.com/opencart/opencart/issues/1594
And this is an eCommerce platform.
If anyone is feeling frustrated by the constant "don't roll your own crypto" advice from the experts, it's being said for a damn good reason.
Also, don't use opencart's encryption library.