Lucene search

K
githubGitHub Advisory DatabaseGHSA-7852-W36X-6MF6
HistoryMay 15, 2024 - 10:08 p.m.

Laravel Encrypter Component Potential Decryption Failure Leading to Unintended Behavior

2024-05-1522:08:06
CWE-1240
GitHub Advisory Database
github.com
3
laravel
encrypter
vulnerability
decryption
failure
manipulation
payload
weak type comparisons
application code

7.1 High

AI Score

Confidence

Low

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

Affected configurations

Vulners
Node
laravelframeworkRange<5.6.15
OR
laravelframeworkRange<5.5.40

7.1 High

AI Score

Confidence

Low