VDB
Sign up
MEDIUM

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.40

Details

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

Packagist/laravel/framework
Introduced in: 0Fixed in: 5.5.40
Fixcomposer require laravel/framework:^5.5.40
Packagist/laravel/framework
Introduced in: 5.6.0Fixed in: 5.6.15
Fixcomposer require laravel/framework:^5.6.15

References

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"]}'