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.
Originally disclosed on Cisco Talos
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.
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
- Run the included Python server.
- 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.