GHSA-5822-pw57-vv37: Pterodactyl/panel Cross-Site Scripting Vulnerability
MODERATEGHSA-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
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.
Upgrade pterodactyl/panel to 0.7.19
Upgrade pterodactyl/panel to 1.0.0-rc.7
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
GHSA-5822-pw57-vv37 Affected Pterodactyl/panel Versions
2 component(s)| 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?
Which Pterodactyl/panel versions are affected?
What version fixes GHSA-5822-pw57-vv37?
Is pterodactyl/panel affected?
What CWE is associated with GHSA-5822-pw57-vv37?
How can I check Packagist dependencies for GHSA-5822-pw57-vv37?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}