Original URL: https://www.theregister.com/2006/11/08/ie_security_analysis/

Attackers end-run around IE security

Backwards compatibility a breeding ground for holes

By Robert Lemos, SecurityFocus

Posted in Channel, 8th November 2006 11:13 GMT

The dependence of Internet Explorer on other Windows components has allowed online attackers to work around the shored-up security of Microsoft's latest browser.

Last weekend, security researchers discovered a website using an previously unknown, or zero-day, vulnerability in a relatively unused ActiveX component of Windows to infect visitors' systems.

ActiveX components act as a common way to exchange data between various components of Windows. While the flawed ActiveX component - a part of Microsoft's XML Core Services 4.0 - is not shipped with Internet Explorer, attackers can use the browser to trigger the flaw and compromise any system on which the ActiveX control is installed.

The vulnerability underscores that the improvements in security in the latest version of Microsoft's browser, Internet Explorer 7, do not eliminate the threats of older components of Windows, said Gunter Ollmann, director of IBM Internet Security Systems' X-Force vulnerability research team.

"IE7 has made it a little bit harder for the attackers to do this," he said. "But once someone figures out how to bypass the security, they tell everyone else about it, and it it becomes the new standard."

The discovery of an exploit attacking a previously unknown vulnerability underscores the difficulty in closing down attacks on ActiveX components through the browser. ActiveX allows websites to add interactivity and greater functionality to a visitor's browsing experience. However, because the technology allows a website to affect changes on a visitor's PCs, the software components can also pose a danger.

ActiveX has been serious sore spot for Microsoft in its quest for hardening its operating system and applications against attacks. The technology evolved from the Object Linking and Embedding (OLE) features created in 1990 to allow Windows applications to exchange data. The general framework became the Component Object Model in 1993 - now known as the Distributed Component Object Model (DCOM) - while Microsoft renamed OLE 2.0 as ActiveX and pushed web developers to add more interactivity to their sites using the technology. As such, Internet Explorer became a common way of accessing a variety of the ActiveX components installed on a Windows computer.

Online criminals frequently use flaws in ActiveX to install malicious code on victims' PCs via their browsers. One tool - known as WebAttacker and sold from a Russian website for about $20 - has had great success in compromising the security of victims' computers.

In one case, a flaw in the Windows Data Access Components, an ActiveX control fixed in April by Microsoft, the attack tool successfully infected the visitor's PC between 12 per cent and 15 per cent, according to web security firm Websense.

Many of the ActiveX controls resident on consumers' PCs can no longer be accessed from Internet Explorer 7, under the browser's enhanced security model. However, the flawed XMLHTTP 4.0 ActiveX control, used in some corporate applications to access sites based on the extensible markup language (XML), escaped Microsoft's crackdown on dangerous components.

"There are loads of (ActiveX controls) that come with Windows and other applications that are disabled by default - this particular one is not," said Gary Schare, director of IE product management for Microsoft.

The ActiveX component made it onto Microsoft's list of preapproved controls, which are components that are frequently accessed by Windows users and that the company feels have had a solid level of security testing. The security audit obviously missed a vulnerability, but the threat model for reducing the risk of attack has worked well, Schare said.

"In general, the attack surface area for ActiveX has gone down dramatically," he said.

The flawed XMLHTTP 4.0 ActiveX control is considered legacy code by Microsoft, and a review of the component will determine whether it will be included in future version of the XML libraries.

Eliminating such legacy code would help Microsoft reduce its security problems, Marcus Sachs, director of the SANS Institute's Internet Storm Centre.

"Microsoft has to deal with the fact that their software has to be backward compatible, and that is a major source of security holes," Sachs said. "The other problem is that millions of lines of code that makes up Windows. They could pull out a old module and find out that it was a patch to a flaw that they have just opened up again."

The enhanced security of Internet Explorer 7 has convinced many security researchers to make the switch as soon as possible. The Internet Storm Centre has seen about a quarter of its visitors - who are mainly information and security professionals - that use Internet Explorer upgrade to the latest version. Yet, even that pales compared to users of Mozilla's Firefox browser - about half of the ISC's visitors using that browser have upgraded to Firefox 2.0, according to the SANS Institute.

Because Microsoft has not yet made Internet Explorer 7 part of its automated update systems, the overall move to the latest version has been modest, according to digital marketing and enterprise analytics provider WebSideStory. Only about 5.8 per cent of consumers that use Internet Explorer have upgraded. That's an improvement over consumers using Firefox: Only 1.7 per cent of those users have upgraded to the latest version, the company said.

Microsoft's Internet Explorer accounts for some 89 per cent of the 30 million unique daily visitors the company tracks, while Mozilla's Firefox accounts for 10 per cent.

Despite the flaw, consumers and business users should upgrade to the latest versions of their browsers and consider setting the kill bit for the ActiveX control or setting the Internet and local security zones to "high," two of the workarounds suggested by Microsoft, said Craig Schmugar, virus research manager at security software firm McAfee's antivirus labs. Even though only a single website has usd the exploit so far, more will likely follow, he said.

"I would not be surprised if in the next day or two we see a public posting of the exploit code and that will open up the realm to other attackers to take advantage of it," Schmugar said.

In the end, Microsoft's release of its next-generation operating system for the desktop, Windows Vista, will close down many avenues for attack. Under Vista, Internet Explorer will run in a new mode that limits access to most of the operating system's facilities, protecting data and the software. Called "protected mode," the feature will limit the access rights of Internet Explorer and stop most ActiveX abuse in its tracks, said Microsoft's Schare.

"This particular vulnerability would not affect Windows Vista at all, because of protected mode," he said. "The vulnerability would still be there but no exploit would be possible."

This article originally appeared in Security Focus.

Copyright © 2006, SecurityFocus