GHSA-5822-pw57-vv37: Pterodactyl/panel Cross-Site Scripting Vulnerability

MODERATE
CWE-79
Published
Advisory Summary

GHSA-5822-pw57-vv37 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Pterodactyl/panel libraries in the Packagist ecosystem. The issue involves xss vulnerability when listing users on add & modify server pages.. Remediation is available by upgrading affected packages to version 0.7.19, 1.0.0-rc.7.

GHSA-5822-pw57-vv37 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-5822-pw57-vv37
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Pterodactyl/panel
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix GHSA-5822-pw57-vv37

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: 0.7.19
Upgrade pterodactyl/panel to 0.7.19
pterodactyl/panel fixed: 1.0.0-rc.7
Upgrade pterodactyl/panel to 1.0.0-rc.7
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 GHSA-5822-pw57-vv37, 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 0.7.19), 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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. 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 An XSS vulnerability exists in versions of Pterodactyl Panel before 0.7.19. Affected versions do not properly sanitize account names before rendering them to the dropdown selector in the admin area when creating or modifying a server. ### Patches This XSS has been addressed in 0.7.19 and will be rolled forwards into the 1.0-rc.7 release. ### Workarounds No workaround exists without manual patching. See https://github.com/pterodactyl/panel/pull/2441/files for the files changed. ### For more information If you have any questions or comments about this advisory please reach out on Discord, or by emailing `dane` at `pterodactyl` dot `io`. _Thank you to Sergej for the responsible disclosure of this issue._

GHSA-5822-pw57-vv37 Affected Pterodactyl/panel Versions

2 component(s)
Fixed Versions:
0.7.191.0.0-rc.7
Product / Package Ecosystem Affected Versions Fixed Version
pterodactyl/panel
Packagist
< 0.7.19
0.7.19
pterodactyl/panel
Packagist
≥ 1.0.0-rc.0
< 1.0.0-rc.7
1.0.0-rc.7

References

Frequently Asked Questions

What is GHSA-5822-pw57-vv37?
GHSA-5822-pw57-vv37 is a security vulnerability in Pterodactyl/panel involving XSS vulnerability when listing users on add & modify server pages. under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Pterodactyl/panel versions are affected?
Affected versions include releases prior to 0.7.19, 1.0.0-rc.7 across affected packages: pterodactyl/panel.
What version fixes GHSA-5822-pw57-vv37?
Upgrading to 0.7.19, 1.0.0-rc.7 (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 0.7.19, 1.0.0-rc.7. Upgrade your dependency to 0.7.19, 1.0.0-rc.7 or later.
What CWE is associated with GHSA-5822-pw57-vv37?
GHSA-5822-pw57-vv37 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check Packagist dependencies for GHSA-5822-pw57-vv37?
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-5822-pw57-vv37",
  "modified" : "2021-10-04T21:25:08Z",
  "published" : "2020-10-08T20:13:19Z",
  "aliases" : [ ],
  "summary" : "XSS vulnerability when listing users on add & modify server pages.",
  "details" : "### Impact\nAn XSS vulnerability exists in versions of Pterodactyl Panel before 0.7.19. Affected versions do not properly sanitize account names before rendering them to the dropdown selector in the admin area when creating or modifying a server.\n\n### Patches\nThis XSS has been addressed in 0.7.19 and will be rolled forwards into the 1.0-rc.7 release.\n\n### Workarounds\nNo workaround exists without manual patching. See https://github.com/pterodactyl/panel/pull/2441/files for the files changed.\n\n### For more information\nIf you have any questions or comments about this advisory please reach out on Discord, or by emailing `dane` at `pterodactyl` dot `io`.\n\n_Thank you to Sergej for the responsible disclosure of this issue._",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "pterodactyl/panel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.7.19"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "pterodactyl/panel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0-rc.0"
      }, {
        "fixed" : "1.0.0-rc.7"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.0.0-rc.6"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/pterodactyl/panel/security/advisories/GHSA-5822-pw57-vv37"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/pterodactyl/panel"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-10-08T20:12:58Z",
    "nvd_published_at" : null
  }
}