CVE-2021-28680
Description
The devise_masquerade gem before 1.3 allows certain attacks when a password's salt is unknown. An application that uses this gem to let administrators masquerade/impersonate users loses one layer of security protection compared to a situation where Devise (without this extension) is used. If the server-side secret_key_base value became publicly known (for instance if it is committed to a public repository by mistake), there are still other protections in place that prevent an attacker from impersonating any user on the site. When masquerading is not used in a plain Devise application, one must know the password salt of the target user if one wants to encrypt and sign a valid session cookie. When devise_masquerade is used, however, an attacker can decide which user the "back" action will go back to without knowing that user's password salt and simply knowing the user ID, by manipulating the session cookie and pretending that a user is already masqueraded by an administrator.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
devise_masqueradeRubyGems | < 1.3.1 | 1.3.1 |
Affected products
2- devise_masquerade/devise_masquerade gemdescription
Patches
Vulnerability mechanics
References
7- github.com/advisories/GHSA-25f5-gc4h-hc22ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-28680ghsaADVISORY
- github.com/oivoodoo/devise_masquerade/issues/83ghsax_refsource_MISCWEB
- github.com/oivoodoo/devise_masquerade/pull/76ghsaWEB
- github.com/oivoodoo/devise_masquerade/releases/tag/v1.3.1ghsaWEB
- labanskoller.se/blog/2021/03/23/the-devise-extension-that-peeled-off-one-layer-of-the-security-onion-cve-2021-28680ghsaWEB
- labanskoller.se/blog/2021/03/23/the-devise-extension-that-peeled-off-one-layer-of-the-security-onion-cve-2021-28680/mitrex_refsource_MISC
News mentions
0No linked articles in our index yet.