SquirrelMail Input Validation Hole in 'mime.php' Lets Remote Users Conduct Cross-Site Scripting Attacks
SecurityTracker Alert ID: 1012169|
SecurityTracker URL: http://securitytracker.com/id/1012169
(Links to External Site)
Updated: Nov 17 2004|
Original Entry Date: Nov 10 2004
Disclosure of authentication information, Disclosure of user information, Execution of arbitrary code via network, Modification of user information|
Fix Available: Yes Vendor Confirmed: Yes |
Version(s): 1.4.3a and earlier; SquirrelMail 1.5.1-cvs before October 23, 2004|
An input validation vulnerability was reported in SquirrelMail in 'mime.php'. A remote user can conduct cross-site scripting attacks.|
The vendor reported that the software does not properly validate encoded text in certain headers. A remote user can create specially crafted e-mail that, when viewed by a target user, will cause arbitrary scripting code to be executed by the target user's browser. The code will originate from the site running the SquirrelMail software and will run in the security context of that site. As a result, the code will be able to access the target user's cookies (including authentication cookies), if any, associated with the site, access data recently submitted by the target user via web form to the site, or take actions on the site acting as the target user.
The flaw resides in 'mime.php'.
The vendor credits Joost Pol with reporting this flaw.
A remote user can access the target user's cookies (including authentication cookies), if any, associated with the site running the SquirrelMail software, access data recently submitted by the target user via web form to the site, or take actions on the site acting as the target user. |
A patch for the 1.4.3a branch is available at:|
To apply this patch, copy the sm143a-xss.diff file into the base SquirrelMail directory and use the following command:
patch -p0 < sm143a-xss.diff
If you are using SquirrelMail 1.5.1-cvs, update from CVS or use the latest snapshot:
Vendor URL: www.squirrelmail.org/ (Links to External Site)
Input validation error|
|Underlying OS: Linux (Any), UNIX (Any), Windows (Any)|
This archive entry has one or more follow-up message(s) listed below.|
Source Message Contents
Subject: [SquirrelMail Security Advisory] Cross Site Scripting in encoded text|
SquirrelMail Security Notice
SquirrelMail is a standards-based webmail package written in PHP4. It
includes built-in pure PHP support for the IMAP and SMTP protocols,
for maximum compatibility across browsers. It has very few
requirements and is very easy to configure and install. SquirrelMail
has all the functionality you would want from an email client,
including strong MIME support, address books, and folder manipulation.
There is a cross site scripting issue in the decoding of encoded text
in certain headers. SquirrelMail correctly decodes the specially
crafted header, but doesn't sanitize the decoded strings.
SquirrelMail 1.4.3a and earlier
SquirrelMail 1.5.1-cvs before 23rd October 2004
A patch has been published to resolve this issue for the SquirrelMail
1.4.3a branch, and can be downloaded from here:
To apply this patch, copy the sm143a-xss.diff file into the base
SquirrelMail directory, and follow the command:
patch -p0 < sm143a-xss.diff
Those using SquirrelMail 1.5.1-cvs should update using CVS, or use a
copy of the latest snapshot downloadable from the SquirrelMail
Special thanks goes to Joost Pol for notifying us about this issue.
The SquirrelMail development team work hard with people reporting
security issues in an attempt to resolve issues. We appreciate those
that are willing to dedicate the time to work with us on any issue
they uncover in the SquirrelMail project.
If any further issues are uncovered, a dedicated mail address can be
used to report the issue. The address is email@example.com.