CVE-2021-41176: Pterodactyl/panel Pterodactyl/panel CSRF Allowing An External Vulnerability

LOW
Advisory Identifier: GHSA-m49f-hcxp-6hm6
CVSS 0.0
CWE-352
Published
Advisory Summary

CVE-2021-41176 is a LOW (CVSS 0.0) pterodactyl/panel csrf allowing an external vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Pterodactyl/panel libraries in the Packagist ecosystem. The issue involves pterodactyl/panel csrf allowing an external page to trigger a user logout event. Remediation is available by upgrading affected packages to version 1.6.3.

CVE-2021-41176 at a Glance

CVE Identifier CVE-2021-41176
GHSA Identifier GHSA-m49f-hcxp-6hm6
Severity LOW
CVSS v3.1 Base Score 0.0
CWE Classification CWE-352: Cross-Site Request Forgery (CSRF)
Affected Product Pterodactyl/panel
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 0.0

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2021-41176

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.6.3
Upgrade pterodactyl/panel to 1.6.3
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-2021-41176, 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.6.3), 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-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. 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 A malicious user can trigger a user logout if a signed in user visits a malicious website that makes a request to the Panel's sign-out endpoint. This requires a targeted attack against a specific Panel instance, and serves only to sign a user out. **No user details are leaked, nor is any user data affected, this is simply an annoyance at worst.** ### Patches None. ### Workarounds None. ### For more information If you have any questions or comments about this advisory please contact `Tactical Fish#8008` on Discord, or email `dane@pterodactyl.io`.

CVE-2021-41176 Affected Pterodactyl/panel Versions

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

References

Frequently Asked Questions

What is CVE-2021-41176?
CVE-2021-41176 is a security vulnerability in Pterodactyl/panel involving pterodactyl/panel CSRF allowing an external page to trigger a user logout event under CWE-352: Cross-Site Request Forgery (CSRF).
Which Pterodactyl/panel versions are affected?
Affected versions include releases prior to 1.6.3 across affected packages: pterodactyl/panel.
What version fixes CVE-2021-41176?
Upgrading to 1.6.3 (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.6.3. Upgrade your dependency to 1.6.3 or later.
What is the CVSS score of CVE-2021-41176?
CVE-2021-41176 has a CVSS v3.1 base score of 0.0 (LOW) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:N.
What CWE is associated with CVE-2021-41176?
CVE-2021-41176 is classified under CWE-352: Cross-Site Request Forgery (CSRF) (The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.).
How can I check Packagist dependencies for CVE-2021-41176?
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-m49f-hcxp-6hm6",
  "modified" : "2023-09-20T19:07:20Z",
  "published" : "2021-10-25T19:42:46Z",
  "aliases" : [ "CVE-2021-41176" ],
  "summary" : "pterodactyl/panel CSRF allowing an external page to trigger a user logout event",
  "details" : "### Impact\nA malicious user can trigger a user logout if a signed in user visits a malicious website that makes a request to the Panel's sign-out endpoint. This requires a targeted attack against a specific Panel instance, and serves only to sign a user out. **No user details are leaked, nor is any user data affected, this is simply an annoyance at worst.**\n\n### Patches\nNone.\n\n### Workarounds\nNone.\n\n### For more information\nIf you have any questions or comments about this advisory please contact `Tactical Fish#8008` on Discord, or email `dane@pterodactyl.io`.\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "pterodactyl/panel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "1.6.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/pterodactyl/panel/security/advisories/GHSA-m49f-hcxp-6hm6"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-41176"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pterodactyl/panel/commit/45999ba4ee1b2dcb12b4a2fa2cedfb6b5d66fac2"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/pterodactyl/panel"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pterodactyl/panel/releases/tag/v1.6.3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-352" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-10-25T16:51:25Z",
    "nvd_published_at" : "2021-10-25T17:15:00Z"
  }
}