Squirrelmail: Another XSS vulnerability

Security Team  Contact Address

Updated June 15, 2004

1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200406-08 / Squirrelmail
Release Date June 15, 2004
Latest Revision May 22, 2006: 02
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
mail-client/squirrelmail <= 1.4.3_rc1-r1 >= 1.4.3 All supported architectures

Related bugreports: #52434

Synopsis

Squirrelmail fails to properly sanitize user input, which could lead to a compromise of webmail accounts.

2.  Impact Information

Background

SquirrelMail is a webmail package written in PHP. It supports IMAP and SMTP, and can optionally be installed with SQL support.

Description

A new cross-site scripting (XSS) vulnerability in Squirrelmail-1.4.3_rc1 has been discovered. In functions/mime.php Squirrelmail fails to properly sanitize user input.

Impact

By enticing a user to read a specially crafted e-mail, an attacker can execute arbitrary scripts running in the context of the victim's browser. This could lead to a compromise of the user's webmail account, cookie theft, etc.

3.  Resolution Information

Workaround

There is no known workaround at this time.

Resolution

All SquirrelMail users should upgrade to the latest stable version:

Code Listing 3.1: Resolution

# emerge sync

# emerge -pv ">=mail-client/squirrelmail-1.4.3"
# emerge ">=mail-client/squirrelmail-1.4.3"

4.  References