CVE-2024-34067: Pterodactyl/panel Cross-Site Scripting Vulnerability
MODERATECVE-2024-34067 is a MODERATE (CVSS 6.1) 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 pterodactyl panel's admin area vulnerable to cross-site scripting. Remediation is available by upgrading affected packages to version 1.11.6.
CVE-2024-34067 at a Glance
Security Impact
CVSS: 6.1
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:C/C:L/I:L/A:N).
How to Fix CVE-2024-34067
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 1.11.6
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-34067, 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.6), 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
CVE-2024-34067 Affected Pterodactyl/panel Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
pterodactyl/panel
|
Packagist |
< 1.11.6
|
1.11.6
|
References
Frequently Asked Questions
What is CVE-2024-34067?
Which Pterodactyl/panel versions are affected?
What version fixes CVE-2024-34067?
Is pterodactyl/panel affected?
What is the CVSS score of CVE-2024-34067?
What CWE is associated with CVE-2024-34067?
How can I check Packagist dependencies for CVE-2024-34067?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-384w-wffr-x63q",
"modified" : "2024-05-03T20:29:04Z",
"published" : "2024-05-03T20:29:04Z",
"aliases" : [ "CVE-2024-34067" ],
"summary" : "Pterodactyl panel's admin area vulnerable to Cross-site Scripting",
"details" : "### Impact\n\nImporting a malicious egg or gaining access to wings instance could lead to XSS on the panel, which could be used to gain an administrator account on the panel. Specifically, the following things are impacted:\n- Egg Docker images\n- Egg variables:\n - Name\n - Environment variable\n - Default value\n - Description\n - Validation rules\n \nAdditionally, certain fields would reflect malicious input, but it would require the user knowingly entering such input to have an impact.\n\nTo iterate, this would require an administrator to perform actions and can't be triggered by a normal panel user.\n\n### Workarounds\n\nNo workaround is available other than updating to the latest version of the panel.\n\n### Patches\n\nAll of the following commits are required to resolve this security issue:\n\nhttps://github.com/pterodactyl/panel/commit/1172d71d31561c4e465dabdf6b838e64de48ad16\nhttps://github.com/pterodactyl/panel/commit/f671046947e4695b5e1c647df79305c1cefdf817\nhttps://github.com/pterodactyl/panel/commit/0dad4c5a488661f9adc27dd311542516d9bfa0f2",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "pterodactyl/panel"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.11.6"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/pterodactyl/panel/security/advisories/GHSA-384w-wffr-x63q"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-34067"
}, {
"type" : "WEB",
"url" : "https://github.com/pterodactyl/panel/commit/0dad4c5a488661f9adc27dd311542516d9bfa0f2"
}, {
"type" : "WEB",
"url" : "https://github.com/pterodactyl/panel/commit/1172d71d31561c4e465dabdf6b838e64de48ad16"
}, {
"type" : "WEB",
"url" : "https://github.com/pterodactyl/panel/commit/f671046947e4695b5e1c647df79305c1cefdf817"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/pterodactyl/panel"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-03T20:29:04Z",
"nvd_published_at" : "2024-05-03T18:15:09Z"
}
}