Lucene search

K
osvGoogleOSV:GHSA-6WJW-QF87-FV5V
HistoryMay 15, 2024 - 10:01 p.m.

Laravel Encrypter Failure to decryption vulnerability

2024-05-1522:01:01
Google
osv.dev
2
laravel
encrypter
decryption
vulnerability
exploit
attacker
payload
unexpected behavior
type comparisons
code
software

7.2 High

AI Score

Confidence

Low

A potential exploit of the Laravel Encrypter component that may cause the Encrypter to fail on decryption and unexpectedly return false.

To exploit this, the attacker must be able to modify the encrypted payload before it is decrypted. Depending on the code within your application, this could lead to unexpected behavior when combined with weak type comparisons, for example:

<?php

$decyptedValue = decrypt($secret);

if ($decryptedValue == '') {
    // Code is run even though decrypted value is false...
}

7.2 High

AI Score

Confidence

Low