BugTraq
Yahoo! Mail Cross-Site Scripting Vulnerability Dec 16 2004 05:38PM
Rafel Ivgi, The-Insider (theinsider 012 net il)
Finjan Security Advisory
=================
Yahoo! Mail Cross-Site Scripting Vulnerability

Introduction
------------
Finjan has discovered a script injection vulnerability in Yahoo!
Mail that allows a remote attacker to execute malicious scripts
when the victim is reading his/her mail.

Technical Description
---------------------
Yahoo?s mobile code filtering mechanism is based on an
active content filter whose purpose is to block the
injection of any active content into Yahoo! messages.
Yahoo?s filter identifies any instance of the inline
use of the javascript protocol (e.g. ?javascript:?)
and upon identification adds an underscore before the ?j?,
thus creating an invalid protocol request.
The above filtering algorithm can be bypassed by inserting
encoded tab characters ( ) into the ?javascript?
string.

For example:
------------
<div style="background: url(j a v a
s c r i p t:alert());"></div>

Any tag that supports the style property can be used to call a javascript
file.
The injected javascript code could lead to:
? Automatic launching of malicious code
? Stealing the victim?s password by using a spoofed re-login window
? Reading the victim?s inbox and contacts
? Sending an email message without any user authorization

The Code (Proof of Concept)
----------------------cut here-----------------------
<div style="backgr
ound:ur
l(ja v a
sc r i p
t:alert());"></div>
----------------------cut here-----------------------

Vulnerability Status
--------------------
Vendor was notified on Sep 8th, 2004.
The bug is now fixed.

Credit
------
Rafel Ivgi, Malicious Code Research Center (MCRC), Finjan Software Ltd.

[ reply ]


 

Privacy Statement
Copyright 2010, SecurityFocus