Cross-site Request Forgery (CSRF) Affecting rack package, versions <2.1.4 >=2.2.0, <2.2.3
Threat Intelligence
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-RACK-572377
- published 16 Jun 2020
- disclosed 16 Jun 2020
- credit Unknown
Introduced: 16 Jun 2020
CVE-2020-8184 Open this link in a new tabHow to fix?
Upgrade rack
to version 2.1.4, 2.2.3 or higher.
Overview
rack is a minimal, modular and adaptable interface for developing web applications in Ruby. By wrapping HTTP requests and responses in the simplest way possible, it unifies and distills the API for web servers, web frameworks, and software in between (the so-called middleware) into a single method call.
Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF). It is possible to forge a secure or host-only cookie prefix in Rack using an arbitrary cookie write by using URL encoding (percent-encoding) on the name of the cookie. This could result in an application that is dependent on this prefix to determine if a cookie is safe to process being manipulated into processing an insecure or cross-origin request.