Skip to content
RCE Advisory Intermediate CVE-2018-8413

Windows Theme API Remote Code Execution Vulnerability (CVE-2018-8413)

The Windows Theme API did not properly decompress files, so a specially crafted theme file could cause arbitrary code to run as the current user. An attacker could send such a file by email or host it on a website and convince the victim to open it.

Eduardo Braun Prado Follow

Originally disclosed on Microsoft

High 5.0 View original

Description

A remote code execution vulnerability exists when "Windows Theme API" does not properly decompress files. An attacker who successfully exploited the vulnerability could run arbitrary code in the context of the current user. If the current user is logged on with administrative user rights, 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 full user rights. Users whose accounts are configured to have fewer user rights on the system could be less impacted than users who operate with administrative user rights. To exploit the vulnerability, a victim user must 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, typically by way of an enticement in an email or Instant Messenger message, and then convince the user to open the specially crafted file. The security update addresses the vulnerability by helping to ensure that "Windows Theme API" properly decompresses files.

Windows Shell

Windows Shell

The original report as published on the Microsoft Security Response Center, by Eduardo Braun Prado working with iDefense Labs. 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 Theme API's file decompression routine mishandled specially crafted archives, allowing attacker-controlled code to run.

Impact

An attacker could run arbitrary code as the current user, and could take full control of the system if that user has administrative rights.

What the attacker needed

Victim opens a crafted theme file; victim is convinced to click a link or open an attachment

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.

A theme file is a package of settings and images that Windows unpacks when you open it. The part that unpacks these files had a mistake, so a booby-trapped theme could make Windows run the attacker's program instead of just applying colours and pictures. The attacker still needs you to open the file, for example from an email attachment or a link.

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 Eduardo Braun Prado

View all

2 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.