Encryption Failure Affecting illuminate/encryption package, versions >=5.5.0, <5.5.40>=5.6.0, <5.6.15


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Encryption Failure vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-ILLUMINATEENCRYPTION-72113
  • published3 Apr 2018
  • disclosed1 Apr 2018
  • creditUnknown

Introduced: 1 Apr 2018

CVE NOT AVAILABLE CWE-311  (opens in a new tab)

How to fix?

Upgrade illuminate/encryption to version 5.5.40, 5.6.15 or higher.

Overview

Affected versions of this package are vulnerable to Encryption Failure. An attacker can cause the decryption to fail and unexpectedly return false by modifying the encrypted payload before it is decrypted. This could lead to unexpected behavior when combined with weak type comparisons.

PoC

<?php

$decyptedValue = decrypt($secret);

if ($decryptedValue == '') {
    // Code is run even though decrypted value is false...
}

CVSS Scores

version 3.1