Skip to content
DoS Advisory Intermediate CVE-2017-2839

FreeRDP Rdp Client License Read Challenge Packet Denial of Service Vulnerability

FreeRDP fails to check the return value of a function that reads a binary blob from a license challenge packet, leaving a data pointer uninitialised. A malicious server or man-in-the-middle can send a crafted packet to crash the client, causing denial of service.

Tyler Bohan Follow

Originally disclosed on Cisco Talos

Medium 6.5 View original

An exploitable denial of service vulnerability exists within the handling of challenge packets in FreeRDP 2.0.0-beta1+android11. A specially crafted challenge packet can cause the program termination leading to a denial of service 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 return value of license_read_binary_blob is not checked, so when it fails due to an invalid length, the EncryptedPlatformChallenge data pointer remains uninitialised and is later dereferenced in the RC4 decryption function.

Impact

A malicious server or man-in-the-middle can crash the FreeRDP client, causing a denial of service.

What the attacker needed

Attacker controls RDP server or MITM; victim connects with FreeRDP client

The fix

The return value of license_read_binary_blob should be checked and the function should exit if it fails.

How it was found

  1. Run the included Python server.
  2. Connect the FreeRDP client to the server.
  3. The server sends a crafted license challenge packet with an invalid blob length.
  4. The client crashes due to a null pointer dereference.

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.

When a program reads data from the network, it must check that the data is valid before using it. Here, a function that reads a piece of data fails, but the program ignores that failure and later tries to use the missing data, which crashes the program. An attacker who controls the server can send a bad packet to make the client crash.

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

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.