GHSA-6rg3-8h8x-5xfv: Github.com/pterodactyl/wings Remote Code Execution Vulnerability

MODERATE
CVSS 6.4
CWE-284 CWE-441
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-6rg3-8h8x-5xfv
Severity MODERATE
CVSS v3.1 Base Score 6.4
CWE Classification CWE-284: Improper Access Control
Affected Product Github.com/pterodactyl/wings
Package Ecosystem Go
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (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.

github.com/pterodactyl/wings fixed: 1.2.1
Upgrade github.com/pterodactyl/wings to 1.2.1
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 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

### Impact A 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. This 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. ### Patches Users should upgrade to the latest version of Wings. ### Workarounds There is no workaround available that does not involve modifying Panel or Wings code.

GHSA-6rg3-8h8x-5xfv Affected Github.com/pterodactyl/wings Versions

1 component(s)
Fixed Versions:
1.2.1
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?
GHSA-6rg3-8h8x-5xfv is a security vulnerability in Github.com/pterodactyl/wings involving Unchecked hostname resolution could allow access to local network resources by users outside the local network under CWE-284: Improper Access Control.
Which Github.com/pterodactyl/wings versions are affected?
Affected versions include releases prior to 1.2.1 across affected packages: github.com/pterodactyl/wings.
What version fixes GHSA-6rg3-8h8x-5xfv?
Upgrading to 1.2.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/pterodactyl/wings affected?
Yes, github.com/pterodactyl/wings is affected in releases prior to 1.2.1. Upgrade your dependency to 1.2.1 or later.
What is the CVSS score of GHSA-6rg3-8h8x-5xfv?
GHSA-6rg3-8h8x-5xfv has a CVSS v3.1 base score of 6.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N.
What CWE is associated with GHSA-6rg3-8h8x-5xfv?
GHSA-6rg3-8h8x-5xfv is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check Go dependencies for GHSA-6rg3-8h8x-5xfv?
Run the dependency tree command: 'inspect dependencies for github.com/pterodactyl/wings'. 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-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
  }
}