CVE-2021-41129 Vulnerability Analysis & Exploit Details

CVE-2021-41129
Vulnerability Scoring

8.1
/10
Severe Risk

Cybersecurity professionals consider CVE-2021-41129 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-41129 Details

Status: Modified

Last updated: 🕕 21 Nov 2024, 06:25 UTC
Originally published on: 🕗 06 Oct 2021, 20:15 UTC

Time between publication and last update: 1141 days

CVSS Release: version 3

CVSS3 Source

security-advisories@github.com

CVSS3 Type

Secondary

CVSS3 Vector

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

CVE-2021-41129 Vulnerability Summary

CVE-2021-41129: Pterodactyl is an open-source game server management panel built with PHP 7, React, and Go. A malicious user can modify the contents of a `confirmation_token` input during the two-factor authentication process to reference a cache value not associated with the login attempt. In rare cases this can allow a malicious actor to authenticate as a random user in the Panel. The malicious user must target an account with two-factor authentication enabled, and then must provide a correct two-factor authentication token before being authenticated as that user. Due to a validation flaw in the logic handling user authentication during the two-factor authentication process a malicious user can trick the system into loading credentials for an arbitrary user by modifying the token sent to the server. This authentication flaw is present in the `LoginCheckpointController@__invoke` method which handles two-factor authentication for a user. This controller looks for a request input parameter called `confirmation_token` which is expected to be a 64 character random alpha-numeric string that references a value within the Panel's cache containing a `user_id` value. This value is then used to fetch the user that attempted to login, and lookup their two-factor authentication token. Due to the design of this system, any element in the cache that contains only digits could be referenced by a malicious user, and whatever value is stored at that position would be used as the `user_id`. There are a few different areas of the Panel that store values into the cache that are integers, and a user who determines what those cache keys are could pass one of those keys which would cause this code pathway to reference an arbitrary user. At its heart this is a high-risk login bypass vulnerability. However, there are a few additional conditions that must be met in order for this to be successfully executed, notably: 1.) The account referenced by the malicious cache key must have two-factor authentication enabled. An account without two-factor authentication would cause an exception to be triggered by the authentication logic, thusly exiting this authentication flow. 2.) Even if the malicious user is able to reference a valid cache key that references a valid user account with two-factor authentication, they must provide a valid two-factor authentication token. However, due to the design of this endpoint once a valid user account is found with two-factor authentication enabled there is no rate-limiting present, thusly allowing an attacker to brute force combinations until successful. This leads to a third condition that must be met: 3.) For the duration of this attack sequence the cache key being referenced must continue to exist with a valid `user_id` value. Depending on the specific key being used for this attack, this value may disappear quickly, or be changed by other random user interactions on the Panel, outside the control of the attacker. In order to mitigate this vulnerability the underlying authentication logic was changed to use an encrypted session store that the user is therefore unable to control the value of. This completely removed the use of a user-controlled value being used. In addition, the code was audited to ensure this type of vulnerability is not present elsewhere.

Assessing the Risk of CVE-2021-41129

Access Complexity Graph

The exploitability of CVE-2021-41129 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-41129

CVE-2021-41129 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-41129, 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-41129, 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-41129 can result in unauthorized access to sensitive data, severely compromising data privacy.
  • Integrity: High
    CVE-2021-41129 could allow unauthorized modifications to data, potentially affecting system reliability and trust.
  • Availability: High
    CVE-2021-41129 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.13% (probability of exploit)

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

CVE-2021-41129 References

External References

CWE Common Weakness Enumeration

CWE-287

CAPEC Common Attack Pattern Enumeration and Classification

  • Authentication Abuse CAPEC-114 An attacker obtains unauthorized access to an application, service or device either through knowledge of the inherent weaknesses of an authentication mechanism, or by exploiting a flaw in the authentication scheme's implementation. In such an attack an authentication mechanism is functioning but a carefully controlled sequence of events causes the mechanism to grant access to the attacker.
  • Authentication Bypass CAPEC-115 An attacker gains access to application, service, or device with the privileges of an authorized or privileged user by evading or circumventing an authentication mechanism. The attacker is therefore able to access protected data without authentication ever having taken place.
  • Identity Spoofing CAPEC-151 Identity Spoofing refers to the action of assuming (i.e., taking on) the identity of some other entity (human or non-human) and then using that identity to accomplish a goal. An adversary may craft messages that appear to come from a different principle or use stolen / spoofed authentication credentials.
  • Fake the Source of Data CAPEC-194 An adversary takes advantage of improper authentication to provide data or services under a falsified identity. The purpose of using the falsified identity may be to prevent traceability of the provided data or to assume the rights granted to another individual. One of the simplest forms of this attack would be the creation of an email message with a modified "From" field in order to appear that the message was sent from someone other than the actual sender. The root of the attack (in this case the email system) fails to properly authenticate the source and this results in the reader incorrectly performing the instructed action. Results of the attack vary depending on the details of the attack, but common results include privilege escalation, obfuscation of other attacks, and data corruption/manipulation.
  • Exploiting Trust in Client CAPEC-22 An attack of this type exploits vulnerabilities in client/server communication channel authentication and data integrity. It leverages the implicit trust a server places in the client, or more importantly, that which the server believes is the client. An attacker executes this type of attack by communicating directly with the server where the server believes it is communicating only with a valid client. There are numerous variations of this type of attack.
  • Utilizing REST's Trust in the System Resource to Obtain Sensitive Data CAPEC-57 This attack utilizes a REST(REpresentational State Transfer)-style applications' trust in the system resources and environment to obtain sensitive data once SSL is terminated.
  • Session Hijacking CAPEC-593 This type of attack involves an adversary that exploits weaknesses in an application's use of sessions in performing authentication. The adversary is able to steal or manipulate an active session and use it to gain unathorized access to the application.
  • Token Impersonation CAPEC-633 An adversary exploits a weakness in authentication to create an access token (or equivalent) that impersonates a different entity, and then associates a process/thread to that that impersonated token. This action causes a downstream user to make a decision or take action that is based on the assumed identity, and not the response that blocks the adversary.
  • Upload a Web Shell to a Web Server CAPEC-650 By exploiting insufficient permissions, it is possible to upload a web shell to a web server in such a way that it can be executed remotely. This shell can have various capabilities, thereby acting as a "gateway" to the underlying web server. The shell might execute at the higher permission level of the web server, providing the ability the execute malicious code at elevated levels.
  • Adversary in the Middle (AiTM) CAPEC-94 An adversary targets the communication between two components (typically client and server), in order to alter or obtain data from transactions. A general approach entails the adversary placing themself within the communication channel between the two components.

Vulnerable Configurations

  • cpe:2.3:a:pterodactyl:panel:1.0.0:-:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.0.0:-:*:*:*:*:*:*
  • cpe:2.3:a:pterodactyl:panel:1.0.0:rc1:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.0.0:rc1:*:*:*:*:*:*
  • cpe:2.3:a:pterodactyl:panel:1.0.0:rc2:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.0.0:rc2:*:*:*:*:*:*
  • cpe:2.3:a:pterodactyl:panel:1.0.0:rc3:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.0.0:rc3:*:*:*:*:*:*
  • cpe:2.3:a:pterodactyl:panel:1.0.0:rc4:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.0.0:rc4:*:*:*:*:*:*
  • cpe:2.3:a:pterodactyl:panel:1.0.0:rc5:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.0.0:rc5:*:*:*:*:*:*
  • cpe:2.3:a:pterodactyl:panel:1.0.0:rc6:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.0.0:rc6:*:*:*:*:*:*
  • cpe:2.3:a:pterodactyl:panel:1.0.0:rc7:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.0.0:rc7:*:*:*:*:*:*
  • cpe:2.3:a:pterodactyl:panel:1.0.0:beta1:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.0.0:beta1:*:*:*:*:*:*
  • cpe:2.3:a:pterodactyl:panel:1.0.0:beta2:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.0.0:beta2:*:*:*:*:*:*
  • cpe:2.3:a:pterodactyl:panel:1.0.0:beta3:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.0.0:beta3:*:*:*:*:*:*
  • cpe:2.3:a:pterodactyl:panel:1.0.0:beta4:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.0.0:beta4:*:*:*:*:*:*
  • cpe:2.3:a:pterodactyl:panel:1.0.0:beta5:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.0.0:beta5:*:*:*:*:*:*
  • cpe:2.3:a:pterodactyl:panel:1.0.0:beta6:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.0.0:beta6:*:*:*:*:*:*
  • cpe:2.3:a:pterodactyl:panel:1.0.0:beta7:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.0.0:beta7:*:*:*:*:*:*
  • cpe:2.3:a:pterodactyl:panel:1.0.1:*:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.0.1:*:*:*:*:*:*:*
  • cpe:2.3:a:pterodactyl:panel:1.0.2:*:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.0.2:*:*:*:*:*:*:*
  • cpe:2.3:a:pterodactyl:panel:1.0.3:*:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.0.3:*:*:*:*:*:*:*
  • cpe:2.3:a:pterodactyl:panel:1.1.0:*:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.1.0:*:*:*:*:*:*:*
  • cpe:2.3:a:pterodactyl:panel:1.1.1:*:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.1.1:*:*:*:*:*:*:*
  • cpe:2.3:a:pterodactyl:panel:1.1.2:*:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.1.2:*:*:*:*:*:*:*
  • cpe:2.3:a:pterodactyl:panel:1.1.3:*:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.1.3:*:*:*:*:*:*:*
  • cpe:2.3:a:pterodactyl:panel:1.2.0:*:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.2.0:*:*:*:*:*:*:*
  • cpe:2.3:a:pterodactyl:panel:1.2.1:*:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.2.1:*:*:*:*:*:*:*
  • cpe:2.3:a:pterodactyl:panel:1.2.2:*:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.2.2:*:*:*:*:*:*:*
  • cpe:2.3:a:pterodactyl:panel:1.3.0:*:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.3.0:*:*:*:*:*:*:*
  • cpe:2.3:a:pterodactyl:panel:1.3.1:*:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.3.1:*:*:*:*:*:*:*
  • cpe:2.3:a:pterodactyl:panel:1.3.2:*:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.3.2:*:*:*:*:*:*:*
  • cpe:2.3:a:pterodactyl:panel:1.4.0:*:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.4.0:*:*:*:*:*:*:*
  • cpe:2.3:a:pterodactyl:panel:1.4.1:*:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.4.1:*:*:*:*:*:*:*
  • cpe:2.3:a:pterodactyl:panel:1.4.2:*:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.4.2:*:*:*:*:*:*:*
  • cpe:2.3:a:pterodactyl:panel:1.5.0:*:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.5.0:*:*:*:*:*:*:*
  • cpe:2.3:a:pterodactyl:panel:1.5.1:*:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.5.1:*:*:*:*:*:*:*
  • cpe:2.3:a:pterodactyl:panel:1.6.0:*:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.6.0:*:*:*:*:*:*:*
  • cpe:2.3:a:pterodactyl:panel:1.6.1:*:*:*:*:*:*:*
    cpe:2.3:a:pterodactyl:panel:1.6.1:*:*:*:*:*:*:*

Protect Your Infrastructure against CVE-2021-41129: 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-2025-26205 – Lua 5.4.7, when the debug library is used, has a out-of-bounds read and segmentation violation in mainpositionTV in ltable.c. NOTE: this is dispute...
  • CVE-2025-26204 – Lua 5.4.7, when the debug library is used, has a out-of-bounds read and segmentation violation in equalkey in ltable.c. NOTE: this is disputed beca...
  • CVE-2025-2129 – A vulnerability was found in Mage AI 0.9.75. It has been classified as problematic. This affects an unknown part. The manipulation leads to insecur...
  • CVE-2025-2127 – A vulnerability was found in JoomlaUX JUX Real Estate 3.4.0 on Joomla. It has been classified as problematic. Affected is an unknown function of th...
  • CVE-2025-2126 – A vulnerability was found in JoomlaUX JUX Real Estate 3.4.0 on Joomla and classified as critical. This issue affects some unknown processing of the...