Remote Desktop Services Remote Code Execution Vulnerability (CVE-2019-0887)
An authenticated attacker who has already compromised a system running Remote Desktop Services could abuse clipboard redirection to execute arbitrary code on a victim system that connects to that service. The update corrects how Remote Desktop Services handles clipboard redirection.
Originally disclosed on Microsoft
Description
A remote code execution vulnerability exists in Remote Desktop Services – formerly known as Terminal Services – when an authenticated attacker abuses clipboard redirection. An attacker who successfully exploited this vulnerability could execute arbitrary code on the victim system. An attacker could then install programs; view, change, or delete data; or create new accounts with full user rights. To exploit this vulnerability, an attacker must already have compromised a system running Remote Desktop Services, and then wait for a victim system to connect to Remote Desktop Services. The update addresses the vulnerability by correcting how Remote Desktop Services handles clipboard redirection.
Microsoft Windows
Microsoft Windows
Microsoft
Microsoft
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
Likely, Remote Desktop Services did not properly validate or sanitise data transferred through clipboard redirection, allowing a malicious host to deliver executable content to a connecting client.
Impact
An attacker could execute arbitrary code on the victim system, then install programs, view, change or delete data, or create new accounts with full user rights; exploitation required the attacker to have already compromised a system running Remote Desktop Services and to wait for a victim to connect.
What the attacker needed
Attacker has compromised an RDS host; victim connects to that RDS host; authenticated attacker
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.
Remote Desktop Services lets you use another computer's screen and keyboard over a network, and clipboard redirection lets you copy and paste between the two machines. The bug meant that a malicious machine could send harmful content through that shared clipboard to a person connecting to it, and that content could run code on the visitor's computer. The attacker first had to control the machine being connected to, and then wait for someone to connect.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.