Remote Desktop Services Remote Code Execution (CVE-2019-0708, BlueKeep)

The host is missing the May 2019 fix for BlueKeep (CVE-2019-0708), a wormable flaw in Remote Desktop Services that lets unauthenticated attackers run code as SYSTEM.

SeverityCritical
CVSS 3.19.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Open in the calculator
CVSS 4.09.3 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N Open in the calculator
CWECWE-416: Use After Free
MITRE ATT&CKT1210 Exploitation of Remote Services, T1190 Exploit Public-Facing Application
CVECVE-2019-0708
CategoryOutdated Components

Description

The host's Remote Desktop Services are missing the update for CVE-2019-0708, known as BlueKeep. The flaw is a use-after-free in the handling of virtual channels while a connection is being set up, before any authentication, so an attacker needs only network access to the Remote Desktop port: without authenticating, they can run code on the host with SYSTEM privileges, giving complete control of it, its data and its stored credentials. No user interaction is needed, and Microsoft warned that the flaw was wormable: it can be used to spread automatically between vulnerable hosts.

It affects Windows 7, Windows Server 2008 and Windows Server 2008 R2, and older releases such as Windows XP and Windows Server 2003; Windows 8, Windows 10 and later releases are not affected. Microsoft released fixes in May 2019, including for releases already out of support. Where Network Level Authentication is enforced, an attacker must first authenticate with a valid account, which reduces the risk from the internet but not from an attacker who already holds credentials.

A public Metasploit exploit module has been available since September 2019, and attacks using BlueKeep have been seen in the wild. The exploit has to be tuned to the target environment and can crash the host with a stop error instead of running code, which makes it less reliable than some other remote exploits. For the same reason, confirmation on a live engagement normally relies on non-intrusive checks: the vulnerability can be identified without credentials with the Metasploit scanner module for CVE-2019-0708 or similar checks, which test for the vulnerable behaviour without exploiting it.

Remediation

Patch or retire the affected systems:

  • Install the May 2019 security update for the operating system, or any later monthly rollup, which includes the fix.
  • Plan the replacement of these releases, all of which have reached the end of support and no longer receive security fixes.
  • Until the host is patched, enable Network Level Authentication, which forces an attacker to authenticate before reaching the flaw, and disable Remote Desktop Services where they are not needed.
  • Block TCP port 3389 at the internet boundary, and restrict Remote Desktop between internal network segments to the management hosts that need it.

Confirm the fix by repeating the CVE-2019-0708 check and by confirming the installed update level on the host.

References


Add This Finding to Your Library

In Pental this write-up is in Settings, Library. Add to my library copies it into your own, rated in your firm's CVSS version, ready to put in your own words.

Free trial  ·  No card required

Only need the reporting? Our reporting tool is free and open source, with the same library.


More Network Services Findings

Every Network Services finding