Skip to content
SSRF Disclosed report Intermediate

TURN server allows TCP and UDP proxying to internal network, localhost and meta-data services

The TURN servers used by Slack allowed TCP connections and UDP packets to be proxied to internal network addresses, including localhost and AWS metadata services. An attacker could scan and interact with internal systems, potentially reading and modifying sensitive information.

Sandro Gauci Follow

Originally disclosed on HackerOne

Bounty$3,500 Critical View original
  • Triaged in 8 days
  • Fixed in 47 days
  • Paid in 47 days
  • Disclosed after 23 months

Summary by the researcher

TURN server allowed proxying of TCP connections and UDP packets to internal Slack network and meta-data services on AWS.

The report

The TURN servers used by Slack allow TCP connections and UDP packets to be proxied to the internal network. This gives an attacker the ability to scan and interact with internal systems.

The attacker may proxy TCP connections to the internal network by setting the XOR-PEER-ADDRESS of the TURN connect message (method 0x000A, https://tools.ietf.org/html/rfc6062#section-4.3) to a private IPv4 address.

UDP packets may be proxied by setting the XOR-PEER-ADDRESS to a private IP in the TURN send message indication (method 0x0006, https://tools.ietf.org/html/rfc5766#section-10).

Please check the attached report for additional details.

Impact

By abusing this feature an attacker will be able to read and potentially modify sensitive information in Slack's internal infrastructure. Typically, this security vulnerability has at least the same impact as an SSRF. However it is considered more useful from an attacker's point of view since attacks are not restricted to HTTP.

The hacker selected the Server-Side Request Forgery (SSRF) weakness. This vulnerability type requires contextual information from the hacker. They provided the following answers:

Can internal services be reached bypassing network access control? Yes

What internal services were accessible? Metadata, localhost, network services on the 10.0.0.0/8

Security Impact By abusing this feature an attacker will be able to read and potentially modify sensitive information in Slack's internal infrastructure. Typically, this security vulnerability has at least the same impact as an SSRF. However it is considered more useful from an attacker's point of view since attacks are not restricted to HTTP.

Note: vulnerability is not SSRF but open TURN proxy - this was the closest I could choose.

The original report as published on HackerOne, by sandrogauci. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the TURN server did not restrict the peer address in relay requests to public destinations, so private and link-local addresses were accepted.

Impact

An attacker could read and potentially modify sensitive information in Slack's internal infrastructure, reaching metadata, localhost and services on the private network, with at least the impact of an SSRF but not limited to HTTP.

What the attacker needed

Access to a Slack TURN server

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A TURN server is a relay used in video and voice calls to help devices connect through firewalls. Here, the relay would forward traffic to any address the attacker chose, including private addresses inside Slack's network that outsiders should never reach. That let an attacker use the relay as a stepping stone to probe and talk to internal systems.

What is SSRF?

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.

More by Sandro Gauci

View all

3 more disclosed reports, best first.

More from Slack

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.