Products::Security

GreyMagic Security Advisory GM#006-MC

By GreyMagic Software, Israel.
03 Jun 2004.

Topic: Simple Yahoo! Mail Cross-Site Scripting.

Discovery date: 16 May 2004.

Affected applications:

Yahoo! web-based email service.

Introduction:

Web-based email services and Yahoo! specifically make tremendous efforts to sanitize incoming emails from potentially unsafe HTML content. Flawed filtering of such unsafe content may result in severe consequences that would occur as soon as a user opens an email for reading, including:

Discussion:

GreyMagic discovered that by sending a maliciously formed email to a Yahoo user it is possible to circumvent the filter and execute script in the context of a logged-in Yahoo! user.

A known Cross-Site Scripting weakness is using entities instead of actual chars, for example: "jav&#97script:alert()". There is also a variation of that weakness, caused by the way browsers ignore white-space chars in URLs: "java
script:alert()". Both of these scenarios are properly filtered by Yahoo!.

However, a third variation remains unfiltered. It is possible to embed a javascript URL by using a white-space entity with multiple zero chars in front of it: "java
script:alert()".

Exploit:

The following HTML embedded in an email would show a Yahoo! user's cookie when opened:

<div style="background-image:url(jav&#000013;ascript:alert(document.cookie))">Hello!</div>

Solution:

GreyMagic informed Yahoo! of the vulnerability on 20-May-2004. Yahoo! responded promptly and reported that it patched the vulnerability on 24-May-2004.

Tested on:

Yahoo! web-based email service.

Disclaimer:

The information in this security advisory and any of its demonstrations is provided "as is" without warranty of any kind.

Vulnerability details are provided strictly for educational and defensive purposes.

GreyMagic Software is not liable for any direct or indirect damages caused as a result of using the information or demonstrations provided in any part of this advisory.

Stay informed:

Subscribe to GreyMagic's early notification email service and be informed of new vulnerabilities and updates as soon as they appear on the site.

Press here to subscribe.

Your privacy is important to us, read our Privacy Statement.

Copyright © 2008 GreyMagic Software
Hosted by VPW Systems UK - Specialist Internet Services Provider