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


0.0
medium

Snyk CVSS

    Attack Complexity High
    Confidentiality High

    Threat Intelligence

    EPSS 0.18% (55th percentile)
Expand this section
NVD
5.9 medium
Expand this section
Red Hat
3.7 low

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-SINATRA-20488
  • published 10 Jan 2018
  • disclosed 25 May 2015
  • credit Unknown

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.