Affected versions
Composermagento/community-edition
- Affected versions
- >= 2.0, < 2.2.6
- Fixed version
- 2.2.6
- Affected versions
- >=2.0,<2.1|>=2.1,<2.2|>=2.2,<2.2.6
- Fixed version
- Not reported
- Affected versions
- >= 2.0, <= 2.0.2
- Fixed version
- Not reported
Exploitation
Description
The __construct function in Framework/Encryption/Crypt.php in Magento 2 uses the PHP rand function to generate a random number for the initialization vector, which makes it easier for remote attackers to defeat cryptographic protection mechanisms by guessing the value.
Links
- http://www.openwall.com/lists/oss-security/2016/07/19/3
- http://www.openwall.com/lists/oss-security/2016/07/27/14
- https://github.com/FriendsOfPHP/security-advisories/blob/master/magento/product-community-edition/CVE-2016-6485.yaml
- https://github.com/advisories/GHSA-h7qw-mxrm-c6h2
- https://github.com/magento/magento2/pull/15017
- https://nvd.nist.gov/vuln/detail/CVE-2016-6485

