Hotmail and Windows Live Mail XSS Fixed
Tuesday, November 7th, 2006Cheng Peng Su came out with another pretty remarkable cross site scripting vulnerability using double bytes the other day in Hotmail and Windows Live Mail. If you don’t remember Cheng Peng Su he was the one who got us started with the variable width encoding issues. This is actually a hybrid of two attacks actually. The first of which is the fact that both Hotmail and Windows Live Mail allow the user to specify their own encoding methods in the email themselves using a header like so:
MIME-Version: 1.0
From: user<user@site.com>
Content-Type: text/html; charset=GB2312
Subject: example
Next he uses a double byte encoding for the letter “e” and the character “(” as follows:
[ascii 163][asii 197]xpression[ascii 163][ascii 168]
That allows the actual vector itself to fire inside of a style tag, as expression() allows CSS to run JavaScript in Internet Explorer. Pretty ingenious exploit, however, if they didn’t allow the user to specify their own encoding methods it wouldn’t have been an issue in ISO-8895-1 for instance. Click here for the full advisory. The issue has now been fixed, but it’s more how the exploit worked than who it worked on that I find interesting in this case. Pretty cool stuff coming from Cheng Peng Su. I’m glad to see he is still working on these issues!



