A Novel DoS Vulnerability affecting WebRTC Media Servers
A race condition between ICE and DTLS traffic in WebRTC media servers allows an attacker to send a DTLS ClientHello with an invalid cipher suite before the legitimate client, causing a DTLS error that prevents the SRTP session from being established. This results in a denial of service for the victim's media session.
Published on rtcsec.com
Sandro Gauci, Enable Security
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 media server does not filter DTLS packets based on the IP and port validated by ICE, allowing an attacker to send a DTLS ClientHello with an invalid cipher suite that triggers a fatal error and prevents the SRTP session from being established.
Impact
An attacker could disrupt media sessions, compromising the availability of real-time communication services, but the attack is limited to servers using ephemeral ports and not those using a single port or where the browser acts as DTLS server.
What the attacker needed
Attacker knows victim's media server IP and port; media server uses ephemeral UDP ports; attacker can send UDP packets to media server
The fix
The fix involves trusting the ICE process and processing packets only from the IP and port combinations validated through ICE, which was implemented in libnice 0.1.15 and released as security fixes for Asterisk, FreeSWITCH, and RTP Engine.
How it was found
- The victim user initiates a WebRTC media session (e.g., starts a conference call).
- The victim informs the attacker of the IP and port combination.
- The attacker sends packets only to those specific ports targeting the media server.
- The vulnerable media server would then prevent the victim from establishing the WebRTC media session.
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.
WebRTC is used for real-time video and voice calls in browsers. When a call starts, the browser and server first check network paths (ICE) and then set up encryption (DTLS). This report shows that an attacker can send a malformed encryption request before the real user does, causing the server to reject the connection and blocking the call. The attacker only needs to guess which network ports the server is using for the call.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.