Skip to content
Memory corruption Advisory Advanced CVE-2017-2834

FreeRDP Rdp Client License Recv Code Execution Vulnerability

A specially crafted server response can cause an out-of-bounds write in FreeRDP's license authentication handling, leading to code execution. An attacker can compromise the server or use a man-in-the-middle attack to trigger the vulnerability.

Tyler Bohan Follow

Originally disclosed on Cisco Talos

High 8.8 View original

An exploitable code execution vulnerability exists in the authentication functionality of FreeRDP 2.0.0-beta1+android11. A specially crafted server response can cause an out-of-bounds write resulting in an exploitable condition.

Tyler Bohan, 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 length field from the server packet is used without validation, allowing a negative value to be passed to a decryption function and causing an out-of-bounds write.

Impact

An attacker could execute code on the client machine, potentially leading to full compromise.

What the attacker needed

Victim connects to malicious server; or man-in-the-middle position

How it was found

  1. Run the included Python server.
  2. Connect the FreeRDP client to the server.

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.

FreeRDP is software that lets you connect to remote desktops. When it talks to a server, it reads a length value from the server's message and uses it without checking if it's valid. If the server sends a bad length, the program writes data outside its intended memory, which can crash it or let an attacker run their own code.

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 Tyler Bohan

View all

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