Skip to content
Info disclosure Disclosed report Beginner

Talk discloses turn server to anybody

An unauthenticated API endpoint returned the TURN server address together with its credentials to any caller. An attacker could use those credentials to relay their own traffic through the TURN server and reach hosts on its internal network.

rtod Follow

Originally disclosed on HackerOne

  • Disclosed after 13 days

The attack is straight forward.

  1. send a request to
Bash
curl -H 'OCS-APIREQUEST: true' https://server/ocs/v2.php/apps/spreed/api/v2/signaling/settings

And you get back a lot of information.

  • signaling server
  • stun server
  • turn server (inc credentials)

The stun server is harmless enough. I did not look at the signaling server. However the Turn server (esp inc credentials). Can be used by the attacker to proxy their web traffic trough. Esp in combination with your docs: https://github.com/nextcloud/spreed/blob/master/docs/TURN.md

This would allow the access internal network on the turn server.

Impact

Anybody (they do not even have to have a valid talk room) can request the turn server credentials of a Nextcloud server running Talk. In combination with your guides on how to set those things up this can result in dangerous situations.

I would furthermore advise to as a start only hand out turn credentials to guests that at least have access to a room. And to improve the documentation.

The original report as published on HackerOne, by rtod. 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 signalling settings endpoint returned the full TURN configuration, including credentials, without requiring authentication or room membership.

Impact

Anyone, even without a valid Talk room, could obtain TURN credentials and use the relay to proxy web traffic and reach the internal network on the TURN server.

What the attacker needed

Network access to the Nextcloud server; no account needed

The fix

The reporter advised handing out TURN credentials only to guests who have access to a room, and improving the setup documentation.

How it was found

  1. Send a request to the signalling settings endpoint with the OCS API header set.
  2. Read the response, which lists the signalling, STUN and TURN servers.
  3. Note that the TURN entry includes its credentials.

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 that helps video-call participants connect when direct links fail; it forwards traffic on their behalf. Here the server handed out the relay's address and password to anyone who asked, with no login needed. With those details a stranger can use the relay as a stepping stone into the network it sits on.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by rtod

View all

33 more disclosed reports, best first.

More from Nextcloud

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.