Timing Attack Affecting sinatra package, versions >=2.0.0.beta1, <2.0.0<1.5.5


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.18% (57th 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-RUBY-SINATRA-20488
  • published10 Jan 2018
  • disclosed25 May 2015
  • creditUnknown

Introduced: 25 May 2015

CVE-2018-1000119  (opens in a new tab)
CWE-208  (opens in a new tab)

How to fix?

Upgrade sinatra to versions 1.5.5, 2.0.0 or higher.

Overview

sinatra is a DSL for quickly creating web applications in Ruby.

Affected versions of this package are vulnerable to Timing Attack when checking the CSRF token. It did not use a constant time comparison for the CSRF tokens. As a result, the comparison will fail faster when the first characters in the token are incorrect.

CVSS Scores

version 3.1