Timing Attack Affecting json-jwt package, versions <0.6.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

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-RUBY-JSONJWT-20385
  • published 5 Jul 2017
  • disclosed 18 Feb 2014
  • credit Stephane Bellity

Introduced: 18 Feb 2014

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

How to fix?

Upgrade json-jwt to version 0.6.1 or higher.

Overview

json-jwt is JSON Web Token and its family (JSON Web Signature, JSON Web Encryption and JSON Web Key) in Ruby.

Affected versions of the package are vulnerable to Timing Attacks due to not comparing the HMAC hashes in constant time. A malicious user could guess the valid HMAC hash during the comparison time with an algorithm.

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
6.5 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    Low
  • Integrity (I)
    Low
  • Availability (A)
    None