CVE-2018-1000119: CSRF

Published Jan 12, 2018
·
Updated

A flaw was found in rack-protection. Versions prior to 2.0.0.rc3 of the package are vulnerable to Timing Attack due to time-variable comparison of signatures. A malicious user can guess a valid signature one char at a time by considering the time it takes a signature validation to fail.

References: https://snyk.io/vuln/SNYK-RUBY-SINATRA-20470 https://snyk.io/vuln/SNYK-RUBY-RACKPROTECTION-20395

Patch: https://github.com/sinatra/sinatra/commit/8aa6c42ef724f93ae309fb7c5668e19ad547eceb

Other sources

Sinatra rack-protection versions 1.5.4 and 2.0.0.rc3 and earlier contains a timing attack vulnerability in the CSRF token checking that can result in signatures can be exposed. This attack appear to be exploitable via network connectivity to the ruby application. This vulnerability appears to have been fixed in 1.5.5 and 2.0.0.

Affected Software

8 affected componentsFixes available
rubygems/rack-protection>=2.0.0.beta1<=2.0.0.rc3
2.0.0
rubygems/rack-protection<1.5.5
1.5.5
debian/ruby-rack-protection
redhat/rack-protection<2.0.0.
2.0.0.
Sinatrarb Rack-protection<1.5.5
Sinatrarb Rack-protection=2.0.0-rc1
Sinatrarb Rack-protection=2.0.0-rc2
Sinatrarb Rack-protection=2.0.0-rc3

Event History

Mar 7, 2018
CVE Published
via MITRE·02:00 PM
Data Sourced
via MITRE·02:00 PM
Description
Advisory Published
10:22 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2018-1000119?

CVE-2018-1000119 is a vulnerability in Sinatra rack-protection versions 1.5.4 and 2.0.0.rc3 and earlier that allows a timing attack on CSRF token checking, exposing signatures.

2

How severe is CVE-2018-1000119?

CVE-2018-1000119 has a severity rating of medium with a CVSS score of 5.9.

3

How can CVE-2018-1000119 be exploited?

CVE-2018-1000119 can be exploited through network connectivity to the Ruby application.

4

What is the fix for CVE-2018-1000119?

To fix CVE-2018-1000119, update the rack-protection package to version 2.0.0 or install version 1.5.5.

5

Where can I find more information about CVE-2018-1000119?

You can find more information about CVE-2018-1000119 at the following references: [link1], [link2], [link3].

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203