Timing Attack Affecting github.com/robbert229/jwt package, versions <1.0.0


Severity

Recommended
0.0
low
0
10

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

Threat Intelligence

Exploit Maturity
Not Defined
EPSS
0.11% (47th percentile)

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 IDSNYK-GOLANG-GITHUBCOMROBBERT229JWT-50051
  • published1 Oct 2017
  • disclosed31 Mar 2015
  • creditVetcher

Introduced: 31 Mar 2015

CVE-2015-10004  (opens in a new tab)
CWE-208  (opens in a new tab)

How to fix?

Upgrade github.com/robbert229/jwt to version 1.0.0 or higher.

Overview

Affected versions of this package are vulnerable to Timing Attack. The library uses the insecure, non-constant string comparison function strings.Compare(), instead of the time constant string comparison. As a result, the comparison will fail faster when the first characters in the HMAC are incorrect. An attacker can use this difference to perform a timing attack, essentially allowing them to guess the HMAC one character at a time.

Similar vulnerability was previously found in Google's Keyczar crytographic library.

CVSS Scores

version 3.1