Skip to content
DoS Advisory Intermediate CVE-2020-6062

CoTURN HTTP Server POST-parsing denial-of-service vulnerability

The CoTURN web server's POST body parser can pass a NULL pointer to strdup when a key/value pair has an empty left-hand side, causing a crash. An attacker could send a crafted HTTP POST request to the admin web server to crash the process and cause denial of service.

Aleksandar Nikolic Follow

Originally disclosed on Cisco Talos

Medium 5.9 View original

An exploitable denial-of-service vulnerability exists in the way CoTURN 4.5.1.1 web server parses POST requests. A specially crafted HTTP POST request can lead to server crash and denial of service.

Aleksandar Nikolic, 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

The parser does not check whether the key returned by strtok_r is NULL before passing it to strdup.

Impact

A single crafted request could crash the CoTURN process, causing denial of service; the CVSS vector rates availability impact as high with attack complexity high.

What the attacker needed

Network access to the admin web server

The fix

The vendor patched the issue, presumably by checking for a NULL key before calling strdup.

How it was found

  1. Send an HTTP POST request to the /logon endpoint on the admin web server with a body containing an empty key followed by an equals sign and a NUL byte.
  2. The server parses the body and passes the NULL key to strdup, which dereferences it and crashes the process.

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.

CoTURN is a server that helps voice and video traffic get through network firewalls, and it also runs a small web server for administration. When that web server reads form data sent in a POST request, it can be handed an empty name and then tries to copy that empty name as if it were real text, which crashes the program. A crash means the service stops working for everyone until it is restarted.

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.

More by Aleksandar Nikolic

View all

147 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.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.