GHSA-7852-w36x-6mf6
medium
Laravel Encrypter Component Potential Decryption Failure Leading to Unintended Behavior
- Severity
- medium rating by GitHub
- Published
- Last changed
Description
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
| Product or package | Versions | Reported by |
|---|---|---|
| laravel/framework (Packagist) | before 5.5.40, from 5.6.0 before 5.6.15 | GitHub Advisory Database |
Classification
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-7852-w36x-6mf6 changed 2024-11-29 | CC-BY-4.0 |