Advisory

GHSA-7852-w36x-6mf6

Also known as: None

Summary

Laravel Encrypter Component Potential Decryption Failure Leading to Unintended Behavior

Details

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-05-15 22:08 UTC
Modified
2024-11-29 05:40 UTC

Affected packages and fixes

laravel/framework

Packagist · All systems

Affected

  • introduced 0, fixed 5.5.40 (ecosystem)

Fixed versions

5.5.40

Fix

The export has no generic command for this ecosystem.

laravel/framework

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