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
Edge-DRsplash-10-edge-articles
I Smell a RAT! New Cybersecurity Threats for the Crypto Industry
David Trepp, Partner, IT Assurance with accounting and advisory firm BPM LLP,  7/9/2021
News
Attacks on Kaseya Servers Led to Ransomware in Less Than 2 Hours
Robert Lemos, Contributing Writer,  7/7/2021
Commentary
It's in the Game (but It Shouldn't Be)
Tal Memran, Cybersecurity Expert, CYE,  7/9/2021
Register for Dark Reading Newsletters
White Papers
Video
Cartoon
Current Issue
How Data Breaches Affect the Enterprise
Data breaches continue to cause negative outcomes for companies worldwide. However, many organizations report that major impacts have declined significantly compared with a year ago, suggesting that many have gotten better at containing breach fallout. Download Dark Reading's Report "How Data Breaches Affect the Enterprise" to delve more into this timely topic.
Flash Poll
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2021-36328
PUBLISHED: 2021-11-30
Dell EMC Streaming Data Platform versions before 1.3 contain a SQL Injection Vulnerability. A remote malicious user may potentially exploit this vulnerability to execute SQL commands to perform unauthorized actions and retrieve sensitive information from the database.
CVE-2021-36329
PUBLISHED: 2021-11-30
Dell EMC Streaming Data Platform versions before 1.3 contain an Indirect Object Reference Vulnerability. A remote malicious user may potentially exploit this vulnerability to gain sensitive information.
CVE-2021-36330
PUBLISHED: 2021-11-30
Dell EMC Streaming Data Platform versions before 1.3 contain an Insufficient Session Expiration Vulnerability. A remote unauthenticated attacker may potentially exploit this vulnerability to reuse old session artifacts to impersonate a legitimate user.
CVE-2021-41256
PUBLISHED: 2021-11-30
nextcloud news-android is an Android client for the Nextcloud news/feed reader app. In affected versions the Nextcloud News for Android app has a security issue by which a malicious application installed on the same device can send it an arbitrary Intent that gets reflected back, unintentionally giv...
CVE-2021-36326
PUBLISHED: 2021-11-30
Dell EMC Streaming Data Platform, versions prior to 1.3 contain an SSL Strip Vulnerability in the User Interface (UI). A remote unauthenticated attacker could potentially exploit this vulnerability, leading to a downgrade in the communications between the client and server into an unencrypted format...