GHSA-6rg3-8h8x-5xfv Unchecked hostname resolution could allow access to local network resources by users outside the local network
Authenticated users can exploit unchecked hostname resolution to access local network resources via remote file downloads.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-6rg3-8h8x-5xfv?
GHSA-6rg3-8h8x-5xfv is a server-side request forgery vulnerability in github.com/pterodactyl/wings, published on 23 Jun 2021. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
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.
Which versions are affected by GHSA-6rg3-8h8x-5xfv?
3 open source packages ship an affected version, including github.com/pterodactyl/wings.
| Package | Affected | Fixed in |
|---|---|---|
github.com/pterodactyl/wings Go | From 1.2.0 | 1.2.1 |
github.com/pterodactyl/wings Go | From 1.2.0 | 1.2.1 |
github.com/pterodactyl/wings Go | From 1.2.0 | 1.2.1 |
How do I fix GHSA-6rg3-8h8x-5xfv?
Upgrade github.com/pterodactyl/wings to 1.2.1 or later.
Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.
Is GHSA-6rg3-8h8x-5xfv being exploited?
There is no known exploitation of GHSA-6rg3-8h8x-5xfv in the wild and no public exploit code.
Sources
Also known as GO-2022-0389.