Internet Explorer 9 XSS Filter Bypass

#################################################
Internet Explorer 9 XSS Filter Bypass
#################################################

Discovered by: Jean Pascal Pereira

Vendor information:

“Internet Explorer (formerly Microsoft Internet Explorer and Windows Internet Explorer, commonly

abbreviated IE or MSIE)
is a series of graphical web browsers developed by Microsoft and included as part of the Microsoft

Windows line of operating
systems, starting in 1995. It was first released as part of the add-on package Plus! for Windows 95

that year. Later versions
were available as free downloads, or in service packs, and included in the OEM service releases of

Windows 95 and later versions of Windows..”

Vendor URI: http://www.microsoft.com

#################################################

Issue: Cross Site Scripting Filter Bypass

————————————-

Description:

The Internet Explorer 9 offers a feature to eliminate suspicious pattern passed to the website by a

parameter.

For example, we have the following script:

————————————-

————————————-

Let’s call it “blah.php”. Now we access the blah.php by using Internet Explorer 9 and try to execute a

malicious string:

http://localhost/ieb/blah.php?a=

After this, we receive the message “Internet Explorer has modified this page to help prevent cross-

site scripting”.

The JavaScript won’t be executed.

————————————-

Proof Of Concept:

This trick may be known to some of you. Internet Explorer allows stripping tags by inserting

nullbytes.

For example, the following string will be executed:

3C 73 00 63 72 69 70 74 3E 61 6C 65 72 74 28 31 29 3C 2F 73 00 63 72 69 70 74 3E

Which is actually “alert(1)“.

However, we won’t be able to insert the nullbytes directly in the URI. The following example won’t

work:

http://localhost/ieb/blah.php?a=alert(1)

But there is still another possibility. Grab a hex editor and create a file looking like the example

given below:

*/