NEWS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
Home / News / Security / Security Fixes and Improvements

Security Fixes and Improvements


IE8 XSS Filter Under the Hood

Microsoft's SWI team published a detailed technical presentation of the new IE8 XSS filter

By Lucian Constantin, Web News Editor

21st of August 2008, 10:08 GMT

Adjust text size:


XSS Filter
Enlarge picture
A detailed XSS filter architecture and implementation article has been published on the Security Vulnerability Research & Defense blog. The main goal of the XSS filter integrated in IE8 is to prevent exploitation of cross-site scripting vulnerabilities without breaking the web.

Cross-site scripting (XSS) is a type of vulnerability common to web applications, which allows injection of malicious code into a legitimate web page viewed by other users. Depending on the injected code, the results can have serious repercussions. According to MITRE, XSS Type-1 vulnerabilities rate among the most common on the internet, exceeding the buffer overflow types which came on first place for many years. The rise of XSS vulnerabilities prompted browser developers to implement serious security features. Microsoft's response is the XSS filter for Internet Explorer 8, which will be introduced in the Beta 2 version.

XSS Filter Logic
Enlarge picture
The XSS filter was built with several considerations: to reduce disruption of legit data/content to a minimum, to reduce the possibility of subverting it without compromising the performance, and to be as fast as possible. In order to intercept requests and replies in the browser, the filter was built directly into the rendering engine of IE8 (MSHTML), while initially it was implemented as a MIME filter.

In order to not slow down browsing, the filter only comes into action when a cross-site navigation is encountered or when the source of a rendered element can't be determined. The possibility of disabling the filter for certain zones like the Intranet is also available.

XSS Filter Flow
Enlarge picture
The filter operates in two steps. First, it scans the GET/POST data using heuristics in order to identify XSS attacks. If a match is found, a signature is built to identify the malicious markup. The signature is then applied to the HTTP response, and the identified markup is being modified and blocked while keeping the rest of the page intact. At the core of the heuristics sets and signatures are regular expressions. Each heuristics contains a list of safe characters. The rest of the characters that are un-safe will be replaced with a neutering character, which will render the markup inactive.

Even so, the XSS filter is not perfect. Some compromises had to be made in order to achieve a good balance between security, compatibility and performance, and not break web sites. While it protects from the general and most common forms of XSS attacks, some specific attack scenarios, like the "Referrer" based injection, are still not covered. David Ross, Security Software Engineer on the SWI team notes that "as time goes on we will continue to enhance the XSS Filter to maximize its effectiveness, however we will not compromise web site compatibility in the process."

TAGS:

XSS | Cross-site scripting | Internet Explorer | Filter | Vulnerability
Read by 1,330 user(s) | Add comment | Link to this article TWEET THIS


Article rating:
NOT RATED 0 vote(s)    

Subscribe to news | Print article | Send to friend

© Copyright 2001-2009 Softpedia
Contact:

 

 

SEARCH THE NEWS ARCHIVE :




Today's News
| Yesterday's News | News Archive


MORE RELATED ARTICLES:


Microsoft Parades Internet Explorer 8 Beta 2 Features

Patch URL Parsing Cross-Domain Information Disclosure Vulnerability

IE8 Beta 2 Drops by August 28, IE8 Final in November 2008

SQL Injection Attack on News Websites

New Safari Flaw Acknowledged - Allows 'Cross-Site Cooking'

Gmail Hacked! Your Contact List Can Be Stolen!

Web Browsers Put Half the World's PCs at Risk

User opinions:

No user comments yet.
Be the first to express your opinion using the form below!

Share your opinion:

Your Name:
Your Email Address:
(will not be used for commercial purposes)
Solve this to prove you're not a bot: =
Your review/opinion:

 




Windows tabGames tabDrivers tabMac tabLinux tabScripts tabMobile tabHandheld tabGadgets tabNews tab

SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   ENTER NEWS SITE   |   ENGLISH BOARD   |   ROMANIAN FORUM