GHSA-6rg3-8h8x-5xfv: Github.com/pterodactyl/wings Remote Code Execution Vulnerability
MODERATEGHSA-6rg3-8h8x-5xfv is a MODERATE (CVSS 6.4) remote code execution vulnerability (CWE-284: Improper Access Control) affecting Github.com/pterodactyl/wings libraries in the Go ecosystem. The issue involves unchecked hostname resolution could allow access to local network resources by users outside the local network. Remediation is available by upgrading affected packages to version 1.2.1.
GHSA-6rg3-8h8x-5xfv at a Glance
Security Impact
CVSS: 6.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N).
How to Fix GHSA-6rg3-8h8x-5xfv
To remediate this vulnerability, upgrade all affected Github.com/pterodactyl/wings 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 github.com/pterodactyl/wings to 1.2.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/pterodactyl/wings
How to Check if You Are Affected
To determine whether your application is affected by GHSA-6rg3-8h8x-5xfv, inspect your project dependencies for Github.com/pterodactyl/wings:
inspect dependencies for github.com/pterodactyl/wings
Analyze the terminal output to locate any version of Github.com/pterodactyl/wings in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.1), 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-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Github.com/pterodactyl/wings, 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-6rg3-8h8x-5xfv Affected Github.com/pterodactyl/wings Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/pterodactyl/wings
|
Go |
≥ 1.2.0
< 1.2.1
All 1 versions
1.2.0
|
1.2.1
|
References
Frequently Asked Questions
What is GHSA-6rg3-8h8x-5xfv?
Which Github.com/pterodactyl/wings versions are affected?
What version fixes GHSA-6rg3-8h8x-5xfv?
Is github.com/pterodactyl/wings affected?
What is the CVSS score of GHSA-6rg3-8h8x-5xfv?
What CWE is associated with GHSA-6rg3-8h8x-5xfv?
How can I check Go dependencies for GHSA-6rg3-8h8x-5xfv?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6rg3-8h8x-5xfv",
"modified" : "2021-10-05T17:24:11Z",
"published" : "2021-06-23T18:04:50Z",
"aliases" : [ ],
"summary" : "Unchecked hostname resolution could allow access to local network resources by users outside the local network",
"details" : "### Impact\nA newly implemented route allowing users to download files from remote endpoints was not properly verifying the destination hostname for user provided URLs. This would allow malicious users to potentially access resources on local networks that would otherwise be inaccessible.\n\nThis vulnerability requires valid authentication credentials and is therefore **not exploitable by unauthenticated users**. If you are running an instance for yourself or other trusted individuals this impact is unlikely to be of major concern to you. However, you should still upgrade for security sake.\n\n### Patches\nUsers should upgrade to the latest version of Wings.\n\n### Workarounds\nThere is no workaround available that does not involve modifying Panel or Wings code.\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/pterodactyl/wings"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.2.0"
}, {
"fixed" : "1.2.1"
} ]
} ],
"versions" : [ "1.2.0" ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/pterodactyl/wings/security/advisories/GHSA-6rg3-8h8x-5xfv"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/pterodactyl/wings"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-284", "CWE-441" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-06-23T18:04:30Z",
"nvd_published_at" : null
}
}