Skip to content
RCE Advisory Advanced CVE-2019-0887

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.

Eyal Itkin Follow

Originally disclosed on Microsoft

High 8.0 View original

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

The original report as published on the Microsoft Security Response Center, by Eyal Itkin of Check Point Research. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

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.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.