Home page logo

fulldisclosure logo Full Disclosure mailing list archives

XSS with UTF-7 in yahoo.com
From: "HASEGAWA Yosuke" <yosuke.hasegawa () gmail com>
Date: Mon, 26 Nov 2007 10:42:39 +0900

XSS with UTF-7 in yahoo.com

XSS with UTF-7 was found in yahoo.com (already fixed).
Although charset was specified in HTTP response header, but
charset-name was incorrect so XSS occurred.


The "euc" is specified for output charset with "eo" parameter,
so responded HTTP header from Yahoo is like as:
Content-Type: text/html; charset=EUC

"euc" is not registered as correct charset name for IE.
IE recognizes only charset names Hardocorded in MLang.dll
like as "EUC-JP", "EUC-KR", "UTF-8" and so on.

Therefore, an automatic detection function for encoding works,
and detect as "UTF-7".

Typical incorrect charset name in japanese web pages are followings:

utf8 - Idiomatic expression of "UTF-8" hyphen falls out.
euc - Idiomatic expression of "EUC-JP"
jis - Idiomatic expression of "ISO-2022-JP"
MS932 / MS932 / CP942C - Comparable encodings to Shift_JIS on Java
Windows-31J - IANA registered name for Codepage 932, but not
registered in Windows.

Nov 16 2007 reported to Yahoo and was fixed immediately.

    yosuke.hasegawa () gmail com

Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/

  By Date           By Thread  

Current thread:
  • XSS with UTF-7 in yahoo.com HASEGAWA Yosuke (Nov 26)
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]