what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

mongolian-xss.txt

mongolian-xss.txt
Posted Sep 14, 2008
Authored by Chris Weber | Site webappsec.org

Small write up discussing a recent vulnerability in Opera where certain Unicode characters were being treated as whitespace, enabling many cross site scripting attacks.

tags | paper, xss
SHA-256 | c73da3a6553cf1a4adf4fd7c8c5fcc4a5b94b03d0654e98b0e75016ec244c2bf

mongolian-xss.txt

Change Mirror Download
Link to notes and test case: 
http://lookout.net/2008/08/26/advisory-attack-of-the-mongolian-space-evaders-and-other-medieval-xss-vectors/

Don't mean to make light of the situation but I do wish I had some Danel
Clowe skills to cartoon this. How often do we get to use Ogham Space Marks
and Mongolian Vowel Separators to bypass filters and deliver cross-site
scripting attacks?

What am I talking about? Okay enough fun, read on.

Opera released version 9.52 of their flagship browser about a month ago to
address an issue in the way certain Unicode characters were being
interpreted as white space. This behavior enabled cross-site scripting
(XSS) attacks which might not otherwise be possible. Perhaps exploiting
this issue would also be useful to evade HTML filters, AV's, WAFs, or other
detection systems which try to prevent XSS attacks.

The HTML 4.01 specification defines four whitespace characters, and
explicitly does not define other cases. Note to XSS filter developers: Any
character can be treated as whitespace by an HTML4 conforming User-Agent.
Have I tested this already? Yes, in most HTML agents I know about.

The HTML 5 specification defines five types of "whitespace characters", and
explicitly nothing else. However, the HTML 5 spec is in flux which is a
much bigger issue. more on this later.

The Unicode spec assigns binary property meta-data to code points, one of
which is the 'white_space' property. In Opera's case, we could use almost
any character with a Unicode white_space property to represent a normal
whitespace character like U+0020.

The following code points all get treated as a space. Making things like:

<a href=#[U+180E]onclick=alert()>

possible. This list includes many of the Unicode code points with the
white_space property:

U+2002 to U+200A
U+205F
U+3000
U+180E Mongolian Vowel Separator
U+1680 Ogham Space Mark

Regards,
Chris Weber


Login or Register to add favorites

File Archive:

July 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Jul 1st
    27 Files
  • 2
    Jul 2nd
    10 Files
  • 3
    Jul 3rd
    35 Files
  • 4
    Jul 4th
    27 Files
  • 5
    Jul 5th
    18 Files
  • 6
    Jul 6th
    0 Files
  • 7
    Jul 7th
    0 Files
  • 8
    Jul 8th
    28 Files
  • 9
    Jul 9th
    44 Files
  • 10
    Jul 10th
    24 Files
  • 11
    Jul 11th
    25 Files
  • 12
    Jul 12th
    11 Files
  • 13
    Jul 13th
    0 Files
  • 14
    Jul 14th
    0 Files
  • 15
    Jul 15th
    0 Files
  • 16
    Jul 16th
    0 Files
  • 17
    Jul 17th
    0 Files
  • 18
    Jul 18th
    0 Files
  • 19
    Jul 19th
    0 Files
  • 20
    Jul 20th
    0 Files
  • 21
    Jul 21st
    0 Files
  • 22
    Jul 22nd
    0 Files
  • 23
    Jul 23rd
    0 Files
  • 24
    Jul 24th
    0 Files
  • 25
    Jul 25th
    0 Files
  • 26
    Jul 26th
    0 Files
  • 27
    Jul 27th
    0 Files
  • 28
    Jul 28th
    0 Files
  • 29
    Jul 29th
    0 Files
  • 30
    Jul 30th
    0 Files
  • 31
    Jul 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close