GHSA-6wjw-qf87-fv5v
JSON

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 packageVersionsReported by
illuminate/encryption (Packagist)from 5.5.0 before 5.5.40, from 5.6.0 before 5.6.15GitHub Advisory Database

Classification

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-6wjw-qf87-fv5v changed 2024-11-29CC-BY-4.0