GHSA-688c-3x49-6rqj
rack-protection gem timing attack vulnerability when validating CSRF token
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| RubyGems | rack-protection | < 1.5.5 | 1.5.5 |
| RubyGems | rack-protection | >= 2.0.0.beta1, < 2.0.0 | 2.0.0 |
Details
As written in the advisory (Markdown source, shown as plain text).
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.
References
External links from the advisory. They lead to third-party sites.
- https://nvd.nist.gov/vuln/detail/CVE-2018-1000119
- https://github.com/sinatra/rack-protection/pull/98
- https://github.com/sinatra/sinatra/commit/8aa6c42ef724f93ae309fb7c5668e19ad547eceb#commitcomment-27964109
- https://access.redhat.com/errata/RHSA-2018:1060
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack-protection/CVE-2018-1000119.yml
- https://github.com/sinatra/rack-protection
- https://www.debian.org/security/2018/dsa-4247