Remote Desktop Virtual Host Remote Code Execution Vulnerability (CVE-2017-8714)
The VM Host Agent Service in the Remote Desktop Virtual Host role did not properly validate input from an authenticated guest user. An attacker with a guest account could send a specially crafted certificate to make the host agent service execute arbitrary code on the host operating system.
Originally disclosed on Microsoft
Description
A remote code execution vulnerability exists in the VM Host Agent Service of Remote Desktop Virtual Host role when it fails to properly validate input from an authenticated user on a guest operating system. To exploit the vulnerability, an attacker could issue a specially crafted certificate on the guest operating system that could cause the VM host agent service on the host operating system to execute arbitrary code. The Remote Desktop Virtual Host role is not enabled by default. An attacker who successfully exploited the vulnerability could execute arbitrary code on the host operating system. The security update addresses the vulnerability by correcting how VM host agent service validates guest operating system user input.
Windows Hyper-V
Windows Hyper-V
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 the VM host agent service trusted and parsed certificate data from the guest without adequate validation, allowing crafted input to reach code execution.
Impact
An authenticated guest user could execute arbitrary code on the host operating system, but only where the Remote Desktop Virtual Host role is enabled, since it is not on by default.
What the attacker needed
Remote Desktop Virtual Host role enabled; authenticated account on the guest OS
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.
This is a flaw in a Windows feature that lets a virtual machine (a computer running inside another computer) talk to the physical host machine. A user logged into the guest virtual machine could send a malformed certificate, and the host-side service would run the attacker's code on the real host. The feature is not turned on by default, so only systems using it were at risk.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.