Skip to content
RCE Advisory Intermediate CVE-2018-8414

Windows Shell Remote Code Execution Vulnerability (CVE-2018-8414)

The Windows Shell failed to properly validate file paths, so a specially crafted file could cause arbitrary code to run as the current user. An attacker could only exploit this by convincing a user to open the crafted file, for example from an email or a website.

Matt Nelson Follow

Originally disclosed on Microsoft

High 4.8 View original

Description

A remote code execution vulnerability exists when the Windows Shell does not properly validate file paths. An attacker who successfully exploited this vulnerability could run arbitrary code in the context of the current user. If the current user is logged on as an administrator, an attacker could take control of the affected system. An attacker could then install programs; view, change, or delete data; or create new accounts with elevated privileges. Users whose accounts are configured to have fewer privileges on the system could be less impacted than users who operate with administrative privileges. To exploit the vulnerability, an attacker must entice a user to open a specially crafted file. In an email attack scenario, an attacker could exploit the vulnerability by sending the specially crafted file to the user and then convincing the user to open the file. In a web-based attack scenario, an attacker could host a website (or leverage a compromised website that accepts or hosts user-provided content) that contains a specially crafted file designed to exploit the vulnerability. An attacker would have no way to force a user to visit the website. Instead, an attacker would have to convince a user to click a link and open the specially crafted file. This security update addresses the vulnerability by ensuring the Windows Shell properly validates file paths.

Windows Shell

Windows Shell

The original report as published on the Microsoft Security Response Center, by Matt Nelson ( @enigma0x3 ) of SpecterOps. 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 the Windows Shell did not properly validate file paths before acting on them, allowing a crafted file to trigger code execution.

Impact

An attacker could run arbitrary code as the current user, and could take control of the system if that user is an administrator; users with fewer privileges would be less impacted.

What the attacker needed

Victim opens a crafted file; attacker convinces victim via email or link

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.

The Windows Shell is the part of Windows that draws the desktop, taskbar and file windows. It was not checking file paths carefully enough, so a booby-trapped file could make Windows run the attacker's code with the same rights as the person who opened it. The attacker cannot do this alone; they need the victim to open the file.

What is RCE?

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

More by Matt Nelson

View all

6 more disclosed reports, best first.

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.