GHSA-7852-w36x-6mf6
Laravel Encrypter Component Potential Decryption Failure Leading to Unintended Behavior
Quick fix
GHSA-7852-w36x-6mf6 — laravel/framework: upgrade to the fixed version with the command below.
composer require laravel/framework:^5.5.40Details
The Laravel Encrypter component is susceptible to a vulnerability that may result in decryption failure, leading to an unexpected return of `false`. Exploiting this issue requires the attacker to manipulate the encrypted payload before decryption. When combined with weak type comparisons in the application's code, such as the example below:
``` <?php
$decyptedValue = decrypt($secret);
if ($decryptedValue == '') { // Code is run even though decrypted value is false... } ```
Are you affected?
Enter the version of the package you're using.
Affected packages
0Fixed in: 5.5.40composer require laravel/framework:^5.5.405.6.0Fixed in: 5.6.15composer require laravel/framework:^5.6.15References
- https://github.com/laravel/framework/commit/28e53f23a76206fb130e9a54eb95aa3f010e79c9[WEB]
- https://github.com/laravel/framework/commit/886d261df0854426b4662b7ed5db6a1c575a4279[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/laravel/framework/2018-03-30-1.yaml[WEB]
- https://github.com/laravel/framework[PACKAGE]
- https://medium.com/@taylorotwell/laravel-security-release-5-6-15-and-5-5-40-56f1257933a0[WEB]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:composer/laravel/framework"]}'