Skip to content
Memory corruption Advisory Advanced CVE-2018-8276

Scripting Engine Security Feature Bypass Vulnerability (CVE-2018-8276)

The Microsoft Chakra scripting engine did not properly handle memory access, allowing Control Flow Guard (CFG) to be bypassed. An attacker could combine this bypass with another vulnerability, such as a remote code execution flaw, to run arbitrary code on a target system.

Kai Kang Follow

Originally disclosed on Microsoft

High 4.3 View original

Description

A security feature bypass vulnerability exists in the Microsoft Chakra scripting engine that allows Control Flow Guard (CFG) to be bypassed. By itself, the CFG bypass vulnerability does not allow arbitrary code execution. However, an attacker could use the CFG bypass vulnerability in conjunction with another vulnerability, such as a remote code execution vulnerability, to run arbitrary code on a target system. To exploit the CFG bypass vulnerability, a user must be logged on to the Microsoft Chakra scripting engine and running it. The user would then need to browse to a malicious website. The security update addresses the CFG bypass vulnerability by helping to ensure that the Microsoft Chakra scripting engine properly handles accessing memory.

Microsoft Scripting Engine

Microsoft Scripting Engine

The original report as published on the Microsoft Security Response Center, by Kai Kang (@4B5F5F4B). 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 Chakra scripting engine did not properly handle memory access, which allowed Control Flow Guard to be bypassed.

Impact

By itself the bypass does not allow arbitrary code execution, but an attacker could use it together with another vulnerability, such as a remote code execution flaw, to run arbitrary code on the target system.

What the attacker needed

User logged on and running Chakra; user browses to a malicious website; another vulnerability to achieve code execution

How it was found

  1. Log on to a system running the Microsoft Chakra scripting engine.
  2. Browse to a malicious website with the scripting engine running.

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.

Control Flow Guard is a Windows security feature that tries to stop attackers from hijacking the flow of a program. This bug let an attacker get around that protection in the Chakra scripting engine, which runs JavaScript in older Microsoft browsers. On its own it does not let an attacker run code, but it makes another bug much more dangerous.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by Kai Kang

View all

1 more disclosed report, 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.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.