Timing Attack Affecting gree/jose package, versions <2.2.1


0.0
high

Snyk CVSS

    Attack Complexity Low
    Confidentiality High

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 ID SNYK-PHP-GREEJOSE-70395
  • published 20 Dec 2017
  • disclosed 31 Mar 2015
  • credit Unknown

Introduced: 31 Mar 2015

CVE NOT AVAILABLE CWE-208 Open this link in a new tab

How to fix?

Upgrade gree/jose to version 2.2.1 or higher.

Overview

Affected versions of gree/jose are vulnerable to Timing Attack.

The library implemented a character to character comparison, similar to the built-in string comparison mechanism, ===, and not a time constant string comparison. As a result, the comparison will fail faster when the first characters in the encryption key are incorrect. An attacker can use this difference to perform a timing attack, essentially allowing them to guess the encryption key one character at a time.

You can read more about timing attacks in Node.js on the Snyk blog.