Tuesday, September 29, 2015

Bypassing IE's XSS Filter with HZ-GB-2312 escape sequence

I would like to share IE XSS Filter bypass with escape sequence of HZ-GB-2312 encoding.

To use this vector, we need the target page's Content-Type header which charset is not specified in.

Bypass 1

No user interaction version:

"~[0x0A]" is HZ-GB-2312 escape sequence. It seems that XSS filter makes an exception for "~[0x0A]" .

If Content-Type header has proper charset, it does not work:

On the other hand, if meta tag has proper charset, it still works:

Bypass 2

"~{" is also HZ-GB-2312 escape sequence. We can use this for bypass. We can call same-origin method in string literal.

PoC is here:

Please click the "go" button. You can confirm element.click method is called.

"click" is called from the following code:
<script>var q="";~{valueOf:opener.button.click}//"</script>

Also, you can use "toString":

<script>var q="";~{toString:opener.button.click}//"</script>

That's all. See you next month!


  1. Wow! This can be one particular of the most useful blogs We have ever arrive across on this subject 먹튀검증

  2. Hey! There you are! Our service https://expertpaperwriter.com/papernow-org-review/ focus on keeping our prices low, but unlike other academic writing services online, we never sacrifice quality for the sake of price. We thrive on service orientation; our mission is to increase customer loyalty by providing nonparallel services and after sales support.

  3. There are several methods for avoiding XSS filters, but the ideal is to employ a best research data collection services that is particularly built to avoid these filters. You may be confident that your study data will be collected without incident if you choose a service like this.

  4. A participant also could play colors, odd 토토사이트 and even numbers, amongst others. A bet on a single number pays 35 to 1, together with the zero and 00. Bets on pink or black, odd and even pay 1 for 1, and even cash. In the 1960s and early Seventies, Richard Jarecki won about $1.2 million at dozens of European casinos. He claimed that he was using a mathematical system designed on a powerful pc. In actuality, he simply noticed greater than 10,000 spins of every roulette wheel to find out} flaws within the wheels.

  5. One of the best things about refurbished gadgets is that they undergo rigorous testing and quality checks, so you can trust that you're getting a reliable product. It's a win-win for your wallet and peace of mind.https://smartimobile.com