GHSA-6wjw-qf87-fv5v
low
Laravel Encrypter Failure to decryption vulnerability
- Severity
- low rating by GitHub
- Published
- Last changed
Description
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...
}
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| illuminate/encryption (Packagist) | from 5.5.0 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-6wjw-qf87-fv5v changed 2024-11-29 | CC-BY-4.0 |