Skip to content
SSRF Advisory Intermediate CVE-2018-4058

coTURN TURN server unsafe loopback forwarding default configuration vulnerability

The coTURN TURN server by default allows relaying traffic to loopback addresses, so an attacker can set up a relay with a loopback peer and reach services on the server's own host that would otherwise be private. This could lead to further attacks against those internal services.

Nicolas Edet Follow

Originally disclosed on Cisco Talos

High 7.7 View original

An exploitable unsafe default configuration vulnerability exists in the TURN server functionality of coTURN prior to 4.5.0.9. By default, the TURN server allows relaying external traffic to the loopback interface of its own host.

Nicolas Edet, on Cisco Talos

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

How it worked

Root cause

Likely the default configuration does not restrict peers to non-loopback addresses, allowing relayed traffic to reach the host's own loopback interface.

Impact

An attacker could access private services on the server's loopback interface, potentially leading to further attacks.

What the attacker needed

Access to a TURN client; target runs affected coTURN with default config

The fix

The server should be run with the option to disallow loopback peers, and the vendor patched this in version 4.5.0.9.

How it was found

  1. Connect to an affected TURN server as a client.
  2. Set up a relay with a loopback address as the peer.
  3. Send traffic through the relay to reach services on the loopback interface.

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 helps devices behind firewalls communicate by relaying their traffic. This report says that by default it also lets users relay traffic to the server's own loopback address, which is normally only reachable from the server itself. That means an outsider could use the server as a stepping stone to reach other services running on the same machine.

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 Nicolas Edet

View all

2 more disclosed reports, best first.

More from Cisco Talos

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.