Authentication Bypass Affecting devise_masquerade package, versions <1.3.1


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.4% (74th 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 IDSNYK-RUBY-DEVISEMASQUERADE-2312870
  • published8 Dec 2021
  • disclosed8 Dec 2021
  • credit@excid3, @labanskoller

Introduced: 8 Dec 2021

CVE-2021-28680  (opens in a new tab)
CWE-287  (opens in a new tab)

How to fix?

Upgrade devise_masquerade to version 1.3.1 or higher.

Overview

Affected versions of this package are vulnerable to Authentication Bypass when a password's salt is unknown. If the secret key base variable is somehow leaked, an attacker can become any user by misusing the masquerade back functionality of this Devise extension, something that is not possible in plain Devise since the attacker must know the victim's password salt to form a valid session cookie to encrypt and sign using secret key base.

CVSS Scores

version 3.1