Advisory

GHSA-6wjw-qf87-fv5v

Also known as: None

Summary

Laravel Encrypter Failure to decryption vulnerability

Details

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...
}

Severity

Low Basis: The source's own band: LOW

Dates

Published
2024-05-15 22:01 UTC
Modified
2024-11-29 05:26 UTC

Affected packages and fixes

illuminate/encryption

Packagist · All systems

Affected

  • introduced 5.5.0, fixed 5.5.40 (ecosystem)

Fixed versions

5.5.40

Fix

The export has no generic command for this ecosystem.

illuminate/encryption

Packagist · All systems

Affected

  • introduced 5.6.0, fixed 5.6.15 (ecosystem)

Fixed versions

5.6.15

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences