Unauthenticated crypto and weak IV in Magento\Framework\Encryption
High severity
GitHub Reviewed
Published
Nov 20, 2019
to the GitHub Advisory Database
•
Updated Jan 9, 2023
Package
Affected versions
>= 2.0, < 2.2.6
Patched versions
2.2.6
Description
Reviewed
Nov 19, 2019
Published to the GitHub Advisory Database
Nov 20, 2019
Last updated
Jan 9, 2023
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.
References