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.
- Disclosed after 13 days
The attack is straight forward.
- send a request to
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.
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
- Send a request to the signalling settings endpoint with the OCS API header set.
- Read the response, which lists the signalling, STUN and TURN servers.
- 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.