Cross-site Request Forgery (CSRF)

Affecting rack gem, versions <2.1.4 || >=2.2.0, <2.2.3

Report new vulnerabilities
Do your applications use this vulnerable package? Test your applications

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.

Remediation

Upgrade rack to version 2.1.4, 2.2.3 or higher.

References

CVSS Score

6.5
medium severity
  • Attack Vector
    Network
  • Attack Complexity
    Low
  • Privileges Required
    None
  • User Interaction
    None
  • Scope
    Unchanged
  • Confidentiality
    Low
  • Integrity
    Low
  • Availability
    None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N/E:P/RL:U/RC:C
Credit
Unknown
CVE
CVE-2020-8184
CWE
CWE-352
Snyk ID
SNYK-RUBY-RACK-572377
Disclosed
16 Jun, 2020
Published
16 Jun, 2020