Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70739 - mail-client/squirrelmail Cross Site Scripting in encoded text
Summary: mail-client/squirrelmail Cross Site Scripting in encoded text
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All All
: Normal minor (vote)
Assignee: Gentoo Security
Whiteboard: B4 [glsa] jaervosz
Depends on:
Reported: 2004-11-10 21:18 UTC by Rajiv Aaron Manglani (RETIRED)
Modified: 2004-11-17 01:45 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Rajiv Aaron Manglani (RETIRED) gentoo-dev 2004-11-10 21:18:26 UTC
	Subject: 	[SquirrelMail Security Advisory] Cross Site Scripting in encoded text
	Date: 	November 10, 2004 1:04:51 AM EST

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,
and all pages render in pure HTML 4.0 (with no JavaScript required)
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

Jonathan Angliss
Comment 1 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2004-11-10 22:34:20 UTC
Jeremy please provide a fixed ebuild.
Comment 2 Jeremy Huddleston (RETIRED) gentoo-dev 2004-11-11 00:23:50 UTC
the second chunk of that patch looks bad... I'm gonna verify upstream...
Comment 3 Jeremy Huddleston (RETIRED) gentoo-dev 2004-11-11 00:35:25 UTC
Stuart, how do you force all vhosts using an old version of a webapp to update to the new one?  Can this information be included in the glsa for glsa-check automation?

ppc: please test out 1.4.3a-r2 and mark stable
Comment 4 Jeremy Huddleston (RETIRED) gentoo-dev 2004-11-11 00:36:04 UTC
oh, and for the record I checked the second hunk and I was confused... it's fine...
Comment 5 Jochen Maes (RETIRED) gentoo-dev 2004-11-11 07:14:40 UTC
stable on ppc
Comment 6 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2004-11-14 10:06:14 UTC
GLSA drafted Security please review.
Comment 7 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2004-11-17 01:45:03 UTC
GLSA 200411-25