Microsoft’s Original Patch
Microsoft's patch for a path-traversal vulnerability in its RDP client used the PathCchCanonicalize function, which ignores forward slashes, so an attacker could bypass the patch by using forward slashes in a malicious file path. This allowed path traversal to still occur, potentially leading to code execution.
research.checkpoint.com
Published on research.checkpoint.com
During 2019, we published our research on the Reverse RDP Attack: Part 1 and Part 2. In those blog posts, we described how we found numerous critical vulnerabilities in popular Remote Desktop Protocol (RDP) clients.
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The PathCchCanonicalize function only treats backslashes as path separators and ignores forward slashes, so it fails to canonicalize paths that use forward slashes, allowing traversal sequences to remain.
Impact
An attacker could bypass Microsoft's patch and still perform path traversal, potentially leading to code execution on the victim's machine.
What the attacker needed
Victim connects to malicious RDP server; vulnerable RDP client
The fix
The core vulnerability in PathCchCanonicalize was not fixed; Microsoft only added a workaround in the RDP client, so the function should be fixed to handle both forward and backward slashes.
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 write-up has not been written yet. The Original tab links to the source.
A path-traversal bug lets an attacker trick a program into accessing files outside the intended folder by using '..' in a file path. Microsoft tried to fix this by checking the path with a function that was supposed to clean it up, but that function only looked for backslashes and ignored forward slashes. So attackers could still sneak in '..' sequences using forward slashes and escape the folder.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.