CVE-2021-28680 Vulnerability Analysis & Exploit Details

CVE-2021-28680
Vulnerability Scoring

8.1
/10
Severe Risk

Cybersecurity professionals consider CVE-2021-28680 an immediate threat requiring urgent mitigation.

Attack Complexity Details

  • Attack Complexity: High
    Exploits require significant effort and special conditions.
  • Attack Vector: Network
    Vulnerability is exploitable over a network without physical access.
  • Privileges Required: None
    No privileges are required for exploitation.
  • Scope: Unchanged
    Exploit remains within the originally vulnerable component.
  • User Interaction: None
    No user interaction is necessary for exploitation.

CVE-2021-28680 Details

Status: Modified

Last updated: 🕕 21 Nov 2024, 06:00 UTC
Originally published on: 🕘 07 Dec 2021, 21:15 UTC

Time between publication and last update: 1079 days

CVSS Release: version 3

CVSS3 Source

nvd@nist.gov

CVSS3 Type

Primary

CVSS3 Vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

CVE-2021-28680 Vulnerability Summary

CVE-2021-28680: 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.

Assessing the Risk of CVE-2021-28680

Access Complexity Graph

The exploitability of CVE-2021-28680 depends on two key factors: attack complexity (the level of effort required to execute an exploit) and privileges required (the access level an attacker needs).

Exploitability Analysis for CVE-2021-28680

CVE-2021-28680 presents a challenge to exploit due to its high attack complexity, but the absence of privilege requirements still makes it a viable target for skilled attackers. A thorough security review is advised.

Understanding AC and PR

A lower complexity and fewer privilege requirements make exploitation easier. Security teams should evaluate these aspects to determine the urgency of mitigation strategies, such as patch management and access control policies.

Attack Complexity (AC) measures the difficulty in executing an exploit. A high AC means that specific conditions must be met, making an attack more challenging, while a low AC means the vulnerability can be exploited with minimal effort.

Privileges Required (PR) determine the level of system access necessary for an attack. Vulnerabilities requiring no privileges are more accessible to attackers, whereas high privilege requirements limit exploitation to authorized users with elevated access.

CVSS Score Breakdown Chart

Above is the CVSS Sub-score Breakdown for CVE-2021-28680, illustrating how Base, Impact, and Exploitability factors combine to form the overall severity rating. A higher sub-score typically indicates a more severe or easier-to-exploit vulnerability.

CIA Impact Analysis

Below is the Impact Analysis for CVE-2021-28680, showing how Confidentiality, Integrity, and Availability might be affected if the vulnerability is exploited. Higher values usually signal greater potential damage.

  • Confidentiality: High
    Exploiting CVE-2021-28680 can result in unauthorized access to sensitive data, severely compromising data privacy.
  • Integrity: High
    CVE-2021-28680 could allow unauthorized modifications to data, potentially affecting system reliability and trust.
  • Availability: High
    CVE-2021-28680 can disrupt system operations, potentially causing complete denial of service (DoS).

Exploit Prediction Scoring System (EPSS)

The EPSS score estimates the probability that this vulnerability will be exploited in the near future.

EPSS Score: 0.397% (probability of exploit)

EPSS Percentile: 73.69% (lower percentile = lower relative risk)
This vulnerability is less risky than approximately 26.310000000000002% of others.

CVE-2021-28680 References

External References

CWE Common Weakness Enumeration

NVD-CWE-noinfo

Vulnerable Configurations

  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:-:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:-:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.0.1:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.0.1:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.0.2:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.0.2:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.0.3:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.0.3:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.0.4:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.0.4:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.0.5:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.0.5:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.0.6:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.0.6:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.0.7:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.0.7:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.0.8:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.0.8:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.0.9:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.0.9:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.1.0:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.1.0:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.1.1:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.1.1:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.1.2:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.1.2:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.1.3:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.1.3:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.1.4:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.1.4:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.1.5:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.1.5:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.1.6:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.1.6:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.1.7:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.1.7:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.1.8:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.1.8:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.2.0:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.2.0:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.3.0:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.3.0:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.3.1:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.3.1:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.4.0:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.4.0:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.5.0:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.5.0:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.5.1:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.5.1:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.5.2:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.5.2:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.5.3:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.5.3:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.6.0:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.6.0:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.6.1:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.6.1:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.6.2:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.6.2:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.6.3:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.6.3:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.6.4:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.6.4:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.6.5:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:0.6.5:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:1.0.0:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:1.0.0:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:1.1.0:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:1.1.0:*:*:*:*:*:*:*
  • cpe:2.3:a:devise_masquerade_project:devise_masquerade:1.2.0:*:*:*:*:*:*:*
    cpe:2.3:a:devise_masquerade_project:devise_masquerade:1.2.0:*:*:*:*:*:*:*

Protect Your Infrastructure against CVE-2021-28680: Combat Critical CVE Threats

Stay updated with real-time CVE vulnerabilities and take action to secure your systems. Enhance your cybersecurity posture with the latest threat intelligence and mitigation techniques. Develop the skills necessary to defend against CVEs and secure critical infrastructures. Join the top cybersecurity professionals safeguarding today's infrastructures.

Other 5 Recently Published CVEs Vulnerabilities

  • CVE-2024-43107 – Improper Certificate Validation (CWE-295) in the Gallagher Milestone Integration Plugin (MIP) permits unauthenticated messages (e.g. alarm events) ...
  • CVE-2024-41724 – Improper Certificate Validation (CWE-295) in the Gallagher Command Centre SALTO integration allowed an attacker to spoof the SALTO server. Thi...
  • CVE-2025-2133 – A vulnerability classified as problematic was found in ftcms 2.1. Affected by this vulnerability is an unknown functionality of the file /admin/ind...
  • CVE-2025-2132 – A vulnerability classified as critical has been found in ftcms 2.1. Affected is an unknown function of the file /admin/index.php/web/ajax_all_lists...
  • CVE-2025-2131 – A vulnerability was found in dayrui XunRuiCMS up to 4.6.3. It has been rated as problematic. This issue affects some unknown processing of the comp...