Cross-site Request Forgery (CSRF) Affecting spree_auth_devise package, versions <4.0.1 >=4.1.0, <4.1.1 >=4.2.0, <4.2.1 >=4.3.0, <4.4.1


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.1% (43rd percentile)

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-SPREEAUTHDEVISE-1922730
  • published 18 Nov 2021
  • disclosed 18 Nov 2021
  • credit Marc Busqué

How to fix?

Upgrade spree_auth_devise to version 4.0.1, 4.1.1, 4.2.1, 4.4.1 or higher.

Overview

Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) via spree_auth_devise.

Note: The package is affected only if protect_from_forgery method is both:

  1. Executed whether as:

    a) A before_action callback (the default) b) A prepend_before_action (option prepend: true given) before the :load_object hook in Spree::UserController (most likely order to find).

  2. Configured to use :null_session or :reset_session strategies (:null_session is the default in case the no strategy is given, but rails --new generated skeleton use :exception).

Meaning, that applications that haven't been configured differently from what it's generated with Rails aren't affected.

References

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
9.3 critical
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Required
  • Scope (S)
    Changed
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    None
Expand this section

NVD

8.8 high