PT-2024-40153 · Laravel · Laravel Encrypter

Published

2024-05-15

·

Updated

2024-05-15

None

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
Name of the Vulnerable Software and Affected Versions: Laravel Encrypter (affected versions not specified)
Description: The issue affects the Laravel Encrypter component, potentially causing decryption failure and returning false. An attacker can exploit this by manipulating the encrypted payload before it is decrypted. This can be particularly problematic when combined with weak type comparisons in the application's code, such as comparing a decrypted value to an empty string using loose equality (==), which can lead to unintended code execution even when the decryption fails and returns false.
Recommendations: For the affected versions, consider updating the comparison logic to use strict equality checks (===) to avoid issues with weak type comparisons. Additionally, as a temporary workaround, consider adding explicit checks for the false return value from the decryption function to handle decryption failures properly.

Weakness Enumeration

Related Identifiers

GHSA-7852-W36X-6MF6

Affected Products

Laravel Encrypter