CVE-2021-28680
Last modified
CVE-2021-28680 is a high-severity vulnerability rated 8.1/10 on the CVSS scale. 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. EPSS estimates a 1.21% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Devise Masquerade Project | Devise Masquerade | < 1.3.0 |
References
- https://github.com/oivoodoo/devise_masquerade/issues/83Issue Tracking, Third Party Advisory
- https://github.com/oivoodoo/devise_masquerade/issues/83Issue Tracking, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-28680?
How severe is CVE-2021-28680?
How do I fix CVE-2021-28680?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-28673Xerox Phaser 6510 before 64.61.23 and 64.59.11 (Bridge), Wor…9.8
- CVE-2021-28674The node management page in SolarWinds Orion Platform before…5.4
- CVE-2021-28675An issue was discovered in Pillow before 8.2.0. PSDImagePlug…5.5
- CVE-2021-28676An issue was discovered in Pillow before 8.2.0. For FLI data…7.5
- CVE-2021-28677An issue was discovered in Pillow before 8.2.0. For EPS data…7.5
- CVE-2021-28678An issue was discovered in Pillow before 8.2.0. For BLP data…5.5
- CVE-2021-28681Pion WebRTC before 3.0.15 didn't properly tear down the DTLS…5.3
- CVE-2021-28682An issue was discovered in Envoy through 1.71.1. There is a …7.5
- CVE-2021-28683An issue was discovered in Envoy through 1.71.1. There is a …7.5
- CVE-2021-28684The XML parser used in ConeXware PowerArchiver before 20.10.…4.3
- CVE-2021-28685AsIO2_64.sys and AsIO2_32.sys in ASUS GPUTweak II before 2.3…7.8
- CVE-2021-28686AsIO2_64.sys and AsIO2_32.sys in ASUS GPUTweak II before 2.3…5.5
Are you affected by CVE-2021-28680?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
