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...
}
{ "nvd_published_at": null, "cwe_ids": [ "CWE-1240" ], "severity": "MODERATE", "github_reviewed": true, "github_reviewed_at": "2024-05-15T22:08:06Z" }