Skip to content
SSRF Write-up Intermediate

How we abused Slack’s TURN servers to gain access to internal services

Slack's TURN servers allowed relaying of TCP and UDP traffic to internal Slack network addresses and AWS metadata services. An attacker with temporary TURN credentials could access internal services and potentially obtain IAM credentials.

rtcsec.com

Published on rtcsec.com

Sandro Gauci, Enable Security

The author, on rtcsec.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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

How it worked

Root cause

Likely the TURN server lacked access control rules to block relaying to private IP addresses.

Impact

An attacker could connect to AWS metadata services to obtain IAM temporary credentials, access open ports on localhost, and port-scan the internal AWS infrastructure to find and possibly abuse server management applications.

What the attacker needed

A Slack account; ability to start a call; use of a proxy like Burp

The fix

The issue was fixed by adding access control rules to the TURN server to block relaying to private IP addresses.

How it was found

  1. Configure the web browser to use Burp proxy.
  2. In Burp, filter HTTP history for the keyword 'screenhero'.
  3. Start a call by pressing the call button.
  4. Observe the TURN details returned in the call to `/api/screenhero.rooms.create`, which include temporary username and password, TURN hostname and ports.
  5. Pass these details to the stunner tool to abuse the vulnerability.

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 write-up has not been written yet. The Original tab links to the source.

TURN servers help devices behind firewalls connect by relaying their traffic. Here, Slack's TURN server would relay traffic to any address, including internal ones, so an attacker could use it to reach private services. This is similar to a server-side request forgery (SSRF) bug, where a server is tricked into making requests 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.

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.