Dark Reading is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them.Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.

Security Management

11/27/2017
01:06 PM
Larry Loeb
Larry Loeb
Larry Loeb
50%
50%

Microsoft Misses Memory Mistake: The Security That Wasn't

An error in implementing a security routine means millions of users thought to be protected against a particular attack were actually more vulnerable than ever.

Sometimes, the journey ends up in a place totally different from where you thought you would be when you started it. Will Dormann, a security analyst for CERT, found that out last week. He started out looking into Microsoft's patch for Equation Editor (EQNEDT32.EXE), which was compiled 17 years ago, and ended up deep in the bowels of Windows.

What he found was that Address Space Layout Randomization (ASLR), a memory organization technique that is designed to foil a certain kind of attack, had been improperly implemented since the days of Vista. This meant that since the days of Windows 7 this prevention measure had been nonfunctional.

What ASLR does is to randomize where executable code starts inside memory. This is important so that attackers will have no idea of where that code begins and therefore not know the location where they can start to mess with it. But it turns out that the method Windows uses for this needs two steps to be performed, rather than the one step that their tools actually do perform.

The CERT advisory Dormann wrote puts it this way. "Both EMET and Windows Defender Exploit Guard enable system-wide ASLR without also enabling system-wide bottom-up ASLR. Although Windows Defender Exploit guard does have a system-wide option for system-wide bottom-up-ASLR, the default GUI value of 'On by default' does not reflect the underlying registry value (unset). This causes programs without /DYNAMICBASE to get relocated, but without any entropy."

Translating from Geek, that means that even though bottom-up-ASLR (start the ASLR from the bottom of available memory) is supposed to be set by the Windows tool's GUI, it's not. The GUI says it will, but the actual registry code to do this is not set. So, allowing a system-wide ASLR to occur (basically forcing it to happen for all programs) will do nothing. Having "no entropy" means the executable code relocates to the same place every time it gets loaded into memory.

Microsoft responded to the situation with a blog post that unctuously described the ASLR process, and admitted that "CERT/CC did identify an issue with the configuration interface of Windows Defender Exploit Guard (WDEG) that currently prevents system-wide enablement of bottom-up randomization…EMET does not support enabling bottom-up randomization system-wide and therefore cannot directly configure this setting." In other words, they confirmed that this was the situation.

So, how does it get fixed?

If you are a developer, you can use the /DYNAMICBASE flag provided by the Visual C++ linker to enable ASLR in your application and bypass the system-wide call to it.

If you are a user, the only way to deal with it is to manually set the registry key to the correct value. Most users can't do this without messing up their systems.

We are left with the question of how Microsoft could let this kind of critical vulnerability happen over such a long period. Didn't they check at all? And what else haven't they looked at?

This is a big hit to Redmond's credibility, that's for sure.

Related posts:

— Larry Loeb has written for many of the last century's major "dead tree" computer magazines, having been, among other things, a consulting editor for BYTE magazine and senior editor for the launch of WebWeek.

Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest First  |  Threaded View
COVID-19: Latest Security News & Commentary
Dark Reading Staff 8/3/2020
Pen Testers Who Got Arrested Doing Their Jobs Tell All
Kelly Jackson Higgins, Executive Editor at Dark Reading,  8/5/2020
Researcher Finds New Office Macro Attacks for MacOS
Curtis Franklin Jr., Senior Editor at Dark Reading,  8/7/2020
Register for Dark Reading Newsletters
White Papers
Video
Cartoon Contest
Current Issue
Special Report: Computing's New Normal, a Dark Reading Perspective
This special report examines how IT security organizations have adapted to the "new normal" of computing and what the long-term effects will be. Read it and get a unique set of perspectives on issues ranging from new threats & vulnerabilities as a result of remote working to how enterprise security strategy will be affected long term.
Flash Poll
The Changing Face of Threat Intelligence
The Changing Face of Threat Intelligence
This special report takes a look at how enterprises are using threat intelligence, as well as emerging best practices for integrating threat intel into security operations and incident response. Download it today!
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2020-12777
PUBLISHED: 2020-08-10
A function in Combodo iTop contains a vulnerability of Broken Access Control, which allows unauthorized attacker to inject command and disclose system information.
CVE-2020-12778
PUBLISHED: 2020-08-10
Combodo iTop does not validate inputted parameters, attackers can inject malicious commands and launch XSS attack.
CVE-2020-12779
PUBLISHED: 2020-08-10
Combodo iTop contains a stored Cross-site Scripting vulnerability, which can be attacked by uploading file with malicious script.
CVE-2020-12780
PUBLISHED: 2020-08-10
A security misconfiguration exists in Combodo iTop, which can expose sensitive information.
CVE-2020-12781
PUBLISHED: 2020-08-10
Combodo iTop contains a cross-site request forgery (CSRF) vulnerability, attackers can execute specific commands via malicious site request forgery.