Skip to content
Memory corruption Advisory Advanced CVE-2018-4013

Live Networks LIVE555 streaming media RTSPServer lookForHeader code execution vulnerability

A stack-based buffer overflow in the LIVE555 RTSP server's HTTP tunnelling code allows a remote attacker to execute arbitrary code by sending a crafted packet with repeated headers.

Lilith >_> Follow

Originally disclosed on Cisco Talos

Critical 10.0 View original

An exploitable code execution vulnerability exists in the HTTP packet-parsing functionality of the LIVE555 RTSP server library. A specially crafted packet can cause a stack-based buffer overflow, resulting in code execution.

Lilith ¯\_(ツ)_/¯, 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 header parsing loop does not limit the number of times it copies a header value into a fixed-size stack buffer, so repeated headers cause the destination pointer to advance past the buffer's end.

Impact

A remote, unauthenticated attacker could execute arbitrary code on the server, potentially taking full control of the device.

What the attacker needed

Network access to the RTSP-over-HTTP port; no authentication required

The fix

The vendor patched the vulnerability; the fix likely ensures the header parsing loop does not allow multiple copies to overflow the destination buffer.

How it was found

  1. Send an HTTP request to the RTSP-over-HTTP port containing multiple 'Accept' or 'x-sessioncookie' headers.
  2. Each header value is copied into a fixed-size stack buffer, and the destination pointer advances after each copy.
  3. After enough headers, the pointer writes beyond the buffer, causing a stack-based buffer overflow.

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.

This is a bug in a media streaming server that lets an attacker send a special network message to overwrite memory on the server. The attacker can then run their own code on the server, taking control of it.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by Lilith >_>

View all

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

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.