Security Advisory: Critical Vulnerability in CredSSP Allows Remote Code Execution on Servers Through MS-RDP (Video)

Posted by Yaron Zinar on Mar 13, 2018 10:03:36 AM
Find me on:

In March Patch Tuesday, Microsoft released a patch for CVE-2018-0886, a vulnerability discovered by Preempt researchers. The vulnerability consists of a logical flaw in Credential Security Support Provider protocol (CredSSP) which is used by RDP (Remote Desktop Protocol) and Windows Remote Management (WinRM) that takes care of securely forwarding credentials to target servers. The vulnerability can be exploited by attackers by employing a man-in-the-middle attack to achieve the ability to run code remotely on previously not infected machines in the attacked network. The vulnerability, in many real-world scenarios where victim network has vulnerable network equipment, could result in an attacker gaining the ability to move laterally in the victim’s network and even infect domain controller with malicious software. No attacks have been detected in the wild by Preempt.

The vulnerability is a logical one and affects all Windows versions to date. In terms of the  vastness of this issue, we can note that RDP is the most popular application to perform remote logins. To further highlight this, in Preempt internal research we found that almost all enterprise customers are using RDP, making them vulnerable to this issue.

Here is a short video that provides and overview and a demo of the attack in action:



How Does the Attack Work?

An attacker can exploit this vulnerability in conjunction with a man-in-the-middle attack. The attacker will set up the man-in-the-middle, wait for a CredSSP session to occur, and once it does, will steal session authentication and perform a Remote Procedure Call (DCE/RPC) attack on the server that the user originally connected to (e.g., the server user connected with RDP). An attacker which have stolen a session from a user with sufficient privileges could run different commands with local admin privileges. This is especially critical in case of domain controllers, where most Remote Procedure Calls (DCE/RPC) are enabled by default.


This attack could be mounted in many real world scenarios. To list a few:

  1. An attacker with WiFi/Physical access - If an attacker has some physical access to your network, then he could easily launch a man-in-the-middle attack. If you also have WiFi deployed in areas of your network, you might be vulnerable to key reinstallation attacks (KRACK), thus making all machines that do RDP via WiFI exposed to this new attack.
  2. Address Resolution Protocol (ARP) poisoning - Despite being an old attack technique, many networks are still not 100% protected from ARP poisoning. If this is the case in your network, this new vulnerability means an attacker with control of one machine could easily move laterally and infect all machines in the same network segment.
  3. Attacking sensitive servers (including domain controllers) - Sometimes, an attacker has control of several workstations in an organization and needs to find a way to infect sensitive business-critical servers (which might require higher privileges). If the network has some vulnerable routers/switches (e.g., CVE-2018-0101 that allows remote code execution on some Cisco routers), it might be relatively easy to infect your critical servers. An attacker will simply infect the router/switch near the server and wait for an IT admin to log-on to the server using RDP.

Microsoft response Center (MSRC) response and timeline

Microsoft acknowledged the issue, a CVE has been issued (CVE-2018-0886) and a fix has been released.


  • 20/08/2017 – Initial disclosure to MSRC
  • 30/08/2017 – MS repro attack and acknowledge issue
  • 18/09/2017 – Microsoft requested an extension on 90 days SLA
  • 12/03/2018 – Microsoft fixes CVE-2018-0886 as part of March patch Tuesday.

How Can I protect myself from these vulnerabilities?

Here are the main steps you need to take to make sure you are protected from this recent threat:

  1. Preempt customers have been protected from this flaw by providing in-depth defense with both alerting and real-time prevention when vulnerabilities, such as CredSSP flaw, are exploited in the network.
  2. Make sure that your workstations and servers are properly patched. This is a basic requirement. However, it is important to note that patching alone is not enough as you will also need to make a configuration change to apply the patch and be protected. For further details on how to apply the patch refer to Microsoft advisory.
  3. As with many previous exploits, blocking the relevant application ports/services (RDP, DCE/RPC) would also thwart the attack. It is recommended to apply the proper network segmentation policy and block unnecessary ports/services.
  4. As many other credential based attack techniques (NTLM relay, pass-the-hash), the ability to carry out the attack relies on privileged users using their credentials to perform IT operations. In order to better protect your network, you should reduce privileged account usage as much as possible and use non-privileged accounts whenever applicable. If you’re an experienced IT admin, you probably already know that this could potentially be a difficult task to accomplish. To make task of removing privileged account usage feasible, you should first make sure you first have the tools to know when and where your privileged accounts are being used.
  5. For Preempt customers, it is recommended they follow the above steps. Preempt has added a hot-fix to detect attacks being exploited against domain controllers (which could alert cases ofprevent domain compromise).

For more details: A technical blog, written by Eyal Karni, dives into further technical details of the exploit here

This vulnerability will be presented by Preempt team (Eyal Karni, Yaron Zinar and Roman Blachman) at Black Hat 2018 Asia on March 23.


Topics: kerberos, Hacking, Threat Detection, Security Advisory, Microsoft, CredSSP