Skip to content
Memory corruption Advisory Advanced CVE-2016-3206

Scripting Engine Memory Corruption Vulnerability (CVE-2016-3206)

The VBScript scripting engine mishandled objects in memory, allowing memory corruption. An attacker could run arbitrary code with the rights of the logged-on user if a victim viewed a crafted web page or content in a Microsoft browser.

Tao Yan Follow

Originally disclosed on Microsoft

Critical View original

Description

A remote code execution vulnerability exists in the way the scripting engine handles objects in memory in Microsoft browsers. The vulnerability could corrupt memory in such a way that an attacker could execute arbitrary code in the context of the current user. An attacker who successfully exploited the vulnerability could gain the same user rights as the current user. If the current user is logged on with administrative user rights, an attacker who successfully exploited the vulnerability could take control of an affected system. An attacker could then install programs; view, change, or delete data; or create new accounts with full user rights. In a web-based attack scenario, an attacker could host a specially crafted website designed to exploit the vulnerability through a Microsoft browser and then convince a user to view the website. An attacker could also embed an ActiveX control marked "safe for initialization" in an application or Microsoft Office document that hosts the browser rendering engine. The attacker could also take advantage of compromised websites and websites that accept or host user-provided content or advertisements. These websites could contain specially crafted content that could exploit the vulnerability. The security update addresses the vulnerability by modifying how the scripting engine handles objects in memory.

FAQ

For my particular system and Internet Explorer configuration, which update addresses the vulnerabilities discussed in CVE-2016-3205, CVE-2016-3206, or CVE-2016-3207? CVE-2016-3205, CVE-2016-3206, and CVE-2016-3207 are vulnerabilities in the VBScript engine. Although the attack vector is through Internet Explorer, the vulnerability is addressed by the updates released in this bulletin (MS16-063) for systems running Internet Explorer 9, Internet Explorer 10, and Internet Explorer 11. For Internet Explorer 7 and earlier, the vulnerabilities are addressed by the updates described in MS16-069 . **Once I know the version of the JScript or VBScript scripting engine installed on my system, where do I get the update? ** The affected software in this bulletin apply to systems running Internet Explorer 7 or earlier. Customers with systems running Internet Explorer 8 or later should apply the Internet Explorer Cumulative Update ( MS16-063 ), which also addresses the vulnerabilities discussed in this bulletin. Why do I see both JScript.dll and VBScript.dll in the packages for this cumulative security update? This security update ships as a cumulative update for the JScript and VBScript scripting engines. While both engines are included in this release, the components affected by the security fixes covered by this bulletin are listed above in the section Affected Software . How do I determine which versions of JScript and VBScript scripting engines are installed on my system? The JScript and VBScript scripting engines are installed with supported releases of Microsoft Windows. In addition, installing a newer version of Internet Explorer on a system can change the versions of the JScript and VBScript scripting engines that are installed. To determine which versions of the JScript or VBScript scripting engines are installed on your system, perform the following steps: Open Windows Explorer. Navigate to the %systemroot%\system32 directory. For VBScript, right-click vbscript.dll , select Properties , and then click the Details tab. For JScript, right-click jscript.dll , select Properties , and then click the Details tab. The version number is listed in the File Version field. If your file version starts with 5.8, for example 5.8.7600.16385, then VBScript 5.8 is installed on your system.

Internet Explorer

Internet Explorer

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Tao Yan (@Ga1ois) of Palo Alto Networks. 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 a memory-safety flaw in how the VBScript engine handles objects in memory, which the update corrects.

Impact

An attacker could execute arbitrary code with the victim's user rights, and with administrative rights could take control of the system; the text does not say whether any defence blocked it.

What the attacker needed

Victim views a crafted web page; Microsoft browser with affected VBScript engine

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 browser runs small scripts to make web pages interactive, and one of the engines that runs them is VBScript. A flaw in how that engine handled data in memory meant a malicious page could make the browser misbehave and run the attacker's code as if it were the user. The fix was a software update that changed how the engine handles memory.

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 Tao Yan

View all

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

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.