Wormable Windows HTTP vulnerability also affects WinRM servers

A wormable vulnerability in the HTTP Protocol Stack of the Windows IIS server can also be used to attack unpatched Windows 10 and Server systems publicly exposing the WinRM (Windows Remote Management) service.

Microsoft already patched the critical bug tracked as CVE-2021-31166 during the May Patch Tuesday.

Luckily, although it can be abused by threat in remote code execution (RCE) attacks, the vulnerability ONLY impacts versions 2004 and 20H2 of Windows 10 and Windows Server.

Microsoft recommended prioritizing patching all affected servers because the vulnerability could allow unauthenticated attackers to execute arbitrary code remotely "in most situations" on vulnerable computers.

Adding to this, over the weekend, security researcher Axel Souchet has published proof-of-concept exploit code that can be used to crash unpatched systems using maliciously crafted packets by triggering blue screens of death.

WinRM enabled by default on enterprise endpoints

The bug was found in the HTTP Protocol Stack (HTTP.sys) used as a protocol listener by the Windows IIS web server for processing HTTP requests.

However, as discovered by security researcher Jim DeVries, it also impacts Windows 10 and Server devices running the WinRM service (short for Windows Remote Management), a component of the Windows Hardware Management feature set which also makes use of the vulnerable HTTP.sys.

While home users have to enable the WinRM service manually on their Windows 10 systems, enterprise Windows Server endpoints have WinRM toggled on by default which makes them vulnerable to attacks if they're running versions 2004 or 20H2.

"[CVE-2021-31166] is commonly used in corporate environments. It's enabled by default on servers," DeVries told BleepingComputer.

"I don't think this is a big risk for home PCs but, should someone marry this to a worm and ransomware, it could run wild in corporate environments."

Over 2 million Internet-exposed WinRM servers

DeVries' findings have also been confirmed by CERT/CC vulnerability analyst Will Dormann who successfully crashed a Windows system exposing the WinRM service using Souchet's DoS exploit.

Dormann also discovered that over 2 million Windows systems reachable over the Internet are exposing the vulnerable WinRM service.

Luckily, only a subset of all these Internet-exposed Windows systems is vulnerable seeing that the vulnerability only impacts Windows 10 and Windows Server, versions 2004 and 20H2.

Windows systems exposing WinRM online
Windows systems exposing WinRM online (Will Dormann)

The exploit's release could likely enable adversaries to create their own exploits faster, potentially also allowing remote code execution.

However, the impact should also be limited and the patching process quite quick since most home users using affected Windows 10 versions have probably updated their systems last week.

Similarly, many companies should likely be safe from attacks targeting the bug since they don't usually deploy the latest Windows Server versions as soon as they are released.

Related Articles:

Over 1,400 CrushFTP servers vulnerable to actively exploited bug

Hackers hijack OpenMetadata apps in Kubernetes cryptomining attacks

Palo Alto Networks fixes zero-day exploited to backdoor firewalls

Microsoft April 2024 Patch Tuesday fixes 150 security flaws, 67 RCEs

Critical RCE bug in 92,000 D-Link NAS devices now exploited in attacks