Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

August 27, 2008 12:00 AM

Internet Explorer 8's New Cross-Site Scripting Protection

Windows IT Pro
InstantDoc ID #100128
Rating: (0)

As you probably know, Internet Explorer (IE) 8 is currently in beta testing. In addition to much-needed compatibility updates to Cascading Stylesheet (CSS) handling, the browser is gaining other new functionality. Probably one of the most important improvements in IE 8 is its defense against cross-site scripting (XSS) attacks.

XSS is one of the most common security problems encountered in web applications, and there are many ways to perpetrate such an attack. If you take a quick look at the XSS Cheat Sheet over at ha.ckers.org (at the URL below) you'll see dozens of examples, any of which could possibly inject such an attack into a web browser depending on the browser version. The attacks vary from putting script tags where they might not normally be expected, to obfuscating characters using various encoding, to appending scripts to URLs, and much more.
http://ha.ckers.org/xss.html

IE has contained XSS protection in some fashion since about 2002, and when IE 8 is released we'll see a much stronger XSS filtering system. The new filtering system considerably reduces the potential attack surface. Microsoft is achieving that by building a signature-based detection system. Regular expressions (regex) will be used to identify potential attacks. If potential attacks are detected, then additional regular expressions might be generated for use in detecting further potential attacks that might stem from variations in the web platform code pre-processing. For example, IIS might handle encoded characters differently than Apache or LiteSpeed web servers.

All the XSS filtering will take place inside IE's rendering engine, which Microsoft says is the best place for the filtering to occur in terms of performance. When attacks are detected, IE will refuse to execute the related script code and alert the user that an attack has been blocked. From an administrator's standpoint, you can enable or disable the XSS filter for each of IE's security zones using Group Policy.

Even with the improvements, IE 8's XSS won't stop all attacks. As Microsoft security software engineer David Ross pointed out in the company's Security Vulnerability Research & Defense blog, several avenues of attack will still exist, such as attacks injected into HTTP headers, etc. If you're interested in a more detailed overview of the new filter, be sure to read Microsoft's blog post at the first URL below. And if you want to take IE 8 for a test drive early, you can download a copy at the second URL below.
http://blogs.technet.com/swi/archive/2008/08/19/ie-8-xss-filter-architecture-implementation.aspx
http://www.microsoft.com/windows/products/winfamily/ie/ie8/default.mspx

Many security administrators feel that IE's approach to security is still a bit too broad. Sure, you have four security zones in which to control sites, which is very helpful. But that control isn't granular enough in some cases. For example, with Firefox you can install the NoScript add-on (available at the first URL below) and totally control JavaScript execution on a site-by-site basis and on-the-fly with a simple right-click context menu that can be adjusted in a matter of a couple of seconds. Accomplishing the same thing in IE is a rather tedious multi-click task. It'd be extremely helpful to see something like NoScript (and Flashblock, for that matter--at the second URL below) built into IE.
http://noscript.net/
https://addons.mozilla.org/en-US/firefox/addon/433

Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.