CVE-2024-49762: Pterodactyl/panel Pterodactyl Panel Has Plain-text Logging Vulnerability

MODERATE
Advisory Identifier: GHSA-c479-wq8g-57hr
CVSS 4.6
CWE-313
Published
Advisory Summary

CVE-2024-49762 is a MODERATE (CVSS 4.6) pterodactyl panel has plain-text logging vulnerability (CWE-313: Cleartext Storage in a File or on Disk) affecting Pterodactyl/panel libraries in the Packagist ecosystem. The issue involves pterodactyl panel has plain-text logging of user passwords when two-factor authentication is disabled. Remediation is available by upgrading affected packages to version 1.11.8.

CVE-2024-49762 at a Glance

CVE Identifier CVE-2024-49762
GHSA Identifier GHSA-c479-wq8g-57hr
Severity MODERATE
CVSS v3.1 Base Score 4.6
CWE Classification CWE-313: Cleartext Storage in a File or on Disk
Affected Product Pterodactyl/panel
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 4.6

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2024-49762

To remediate this vulnerability, upgrade all affected Pterodactyl/panel dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

pterodactyl/panel fixed: 1.11.8
Upgrade pterodactyl/panel to 1.11.8
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for pterodactyl/panel

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-49762, inspect your project dependencies for Pterodactyl/panel:

inspect dependencies for pterodactyl/panel

Analyze the terminal output to locate any version of Pterodactyl/panel in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.11.8), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-313: Cleartext Storage in a File or on Disk, where the product stores sensitive information in cleartext in a file, or on disk. In Pterodactyl/panel, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact When a user disables two-factor authentication via the Panel, a `DELETE` request with their current password in a query parameter will be sent. While query parameters are encrypted when using TLS, many webservers (including ones officially documented for use with Pterodactyl) will log query parameters in plain-text, storing a user's password in plain text. If a malicious user obtains access to these logs they could *potentially* authenticate against a user's account; assuming they are able to discover the account's email address or username **separately**. ### Patches This problem has been patched by <https://github.com/pterodactyl/panel/commit/8be2b892c3940bdc0157ccdab16685a72d105dd1> on the `1.0-develop` branch and released under `v1.11.8` as a single commit on top of `v1.11.7` <https://github.com/pterodactyl/panel/commit/75b59080e2812ced677dab516222b2a3bb34e3a4> Patch file: <https://github.com/pterodactyl/panel/commit/8be2b892c3940bdc0157ccdab16685a72d105dd1.patch> ### Workarounds There are no workarounds at this time. There is not a direct vulnerability within the software as it relates to logs generated by intermediate components such as webservers or Layer 7 proxies. Updating to `v1.11.8` or adding the linked patch manually are the only ways to avoid this problem. ### User Notice As this vulnerability relates to historical logging of sensitive data, users who have ever disabled 2FA on a Panel (self-hosted or operated by a company) should change their passwords and consider enabling 2FA if it was left disabled. While it's unlikely that your account will be compromised by this vulnerability, it's not impossible. Panel administrators should consider clearing any access logs that may contain sensitive data, for Panels using NGINX, the access log is located at `/var/log/nginx/pterodactyl.app-access.log`.

CVE-2024-49762 Affected Pterodactyl/panel Versions

1 component(s)
Fixed Versions:
1.11.8
Product / Package Ecosystem Affected Versions Fixed Version
pterodactyl/panel
Packagist
< 1.11.8
1.11.8

References

Frequently Asked Questions

What is CVE-2024-49762?
CVE-2024-49762 is a security vulnerability in Pterodactyl/panel involving Pterodactyl Panel has plain-text logging of user passwords when two-factor authentication is disabled under CWE-313: Cleartext Storage in a File or on Disk.
Which Pterodactyl/panel versions are affected?
Affected versions include releases prior to 1.11.8 across affected packages: pterodactyl/panel.
What version fixes CVE-2024-49762?
Upgrading to 1.11.8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pterodactyl/panel affected?
Yes, pterodactyl/panel is affected in releases prior to 1.11.8. Upgrade your dependency to 1.11.8 or later.
What is the CVSS score of CVE-2024-49762?
CVE-2024-49762 has a CVSS v3.1 base score of 4.6 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2024-49762?
CVE-2024-49762 is classified under CWE-313: Cleartext Storage in a File or on Disk (The product stores sensitive information in cleartext in a file, or on disk.).
How can I check Packagist dependencies for CVE-2024-49762?
Run the dependency tree command: 'inspect dependencies for pterodactyl/panel'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-c479-wq8g-57hr",
  "modified" : "2024-10-25T16:47:19Z",
  "published" : "2024-10-24T19:07:03Z",
  "aliases" : [ "CVE-2024-49762" ],
  "summary" : "Pterodactyl Panel has plain-text logging of user passwords when two-factor authentication is disabled",
  "details" : "### Impact\n\nWhen a user disables two-factor authentication via the Panel, a `DELETE` request with their current password in a query parameter will be sent.  While query parameters are encrypted when using TLS, many webservers (including ones officially documented for use with Pterodactyl) will log query parameters in plain-text, storing a user's password in plain text.\n\nIf a malicious user obtains access to these logs they could *potentially* authenticate against a user's account; assuming they are able to discover the account's email address or username **separately**.\n\n### Patches\n\nThis problem has been patched by <https://github.com/pterodactyl/panel/commit/8be2b892c3940bdc0157ccdab16685a72d105dd1> on the `1.0-develop` branch and released under `v1.11.8` as a single commit on top of `v1.11.7` <https://github.com/pterodactyl/panel/commit/75b59080e2812ced677dab516222b2a3bb34e3a4>\n\nPatch file: <https://github.com/pterodactyl/panel/commit/8be2b892c3940bdc0157ccdab16685a72d105dd1.patch>\n\n### Workarounds\n\nThere are no workarounds at this time.  There is not a direct vulnerability within the software as it relates to logs generated by intermediate components such as webservers or Layer 7 proxies.\n\nUpdating to `v1.11.8` or adding the linked patch manually are the only ways to avoid this problem.\n\n### User Notice\n\nAs this vulnerability relates to historical logging of sensitive data, users who have ever disabled 2FA on a Panel (self-hosted or operated by a company) should change their passwords and consider enabling 2FA if it was left disabled.  While it's unlikely that your account will be compromised by this vulnerability, it's not impossible.\n\nPanel administrators should consider clearing any access logs that may contain sensitive data, for Panels using NGINX, the access log is located at `/var/log/nginx/pterodactyl.app-access.log`.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "pterodactyl/panel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.11.8"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/pterodactyl/panel/security/advisories/GHSA-c479-wq8g-57hr"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-49762"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pterodactyl/panel/commit/75b59080e2812ced677dab516222b2a3bb34e3a4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pterodactyl/panel/commit/8be2b892c3940bdc0157ccdab16685a72d105dd1"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/pterodactyl/panel"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-313" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-10-24T19:07:03Z",
    "nvd_published_at" : "2024-10-24T22:15:04Z"
  }
}