Skip to content
SSRF Write-up Intermediate

Protocols⌗

The TURN server in Cisco Expressway relayed TCP and UDP traffic to arbitrary internal IP addresses, including loopback, without restriction. An attacker with valid TURN credentials could use it as an unrestricted SOCKS proxy to reach internal services such as the admin interface.

Christian Mehlmauer Follow

Published on firefart.at

Some time ago I stumbled across a HackerOne report about abusing Slacks TURN server for proxy functionality inside their internal network. I found this interesting and decided to take a look at our videoconferencing software at work, which happened to be Cisco Expressway.

Christian Mehlmauer (@firefart), on firefart.at

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 a target whitelist and did not block loopback or internal addresses, so any authenticated client could request relaying to arbitrary destinations.

Impact

An attacker with TURN credentials could reach any internal IP and port reachable by the server, including the admin interface, and a read-only admin account could download a configuration snapshot containing password hashes that could be cracked offline.

What the attacker needed

Valid TURN credentials; TURN server enabled and reachable; network access to the TURN port

The fix

Cisco stated it will not fix the relaying issue because of its product architecture; the author suggests a configurable target whitelist and network segregation.

How it was found

  1. Obtain valid TURN credentials, for example by capturing them from a meeting web client or by using the author's script with a meeting ID.
  2. Send a Connect request followed by a ConnectionBind request specifying an internal target address such as loopback.
  3. Use the tool's socks command to start a local SOCKS5 server that relays traffic through the TURN server.
  4. Reach internal services such as the admin interface on port 7443 through the proxy.

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.

A TURN server is a relay that helps video calls get through network firewalls by forwarding packets between participants. Here it forwarded packets to any address the attacker asked for, including the machine's own loopback address, so the attacker could reach internal services that were not meant to be exposed. The author also found that a read-only admin account could download a configuration snapshot containing password hashes, and a memory leak in the relay code.

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 from Cisco

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.