GLSA-200603-09 : SquirrelMail: XSS and IMAP command injection

This script is Copyright (C) 2006-2014 Tenable Network Security, Inc.


Synopsis :

The remote Gentoo host is missing one or more security-related
patches.

Description :

The remote host is affected by the vulnerability described in GLSA-200603-09
(SquirrelMail: XSS and IMAP command injection)

SquirrelMail does not validate the right_frame parameter in
webmail.php, possibly allowing frame replacement or cross-site
scripting (CVE-2006-0188). Martijn Brinkers and Scott Hughes discovered
that MagicHTML fails to handle certain input correctly, potentially
leading to cross-site scripting (only Internet Explorer,
CVE-2006-0195). Vicente Aguilera reported that the
sqimap_mailbox_select function did not strip newlines from the mailbox
or subject parameter, possibly allowing IMAP command injection
(CVE-2006-0377).

Impact :

By exploiting the cross-site scripting vulnerabilities, 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. A remote attacker could exploit the IMAP
command injection to execute arbitrary IMAP commands on the configured
IMAP server.

Workaround :

There is no known workaround at this time.

See also :

http://www.gentoo.org/security/en/glsa/glsa-200603-09.xml

Solution :

All SquirrelMail users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose '>=mail-client/squirrelmail-1.4.6'
Note: Users with the vhosts USE flag set should manually use
webapp-config to finalize the update.

Risk factor :

Medium / CVSS Base Score : 5.0
(CVSS2#AV:N/AC:L/Au:N/C:N/I:P/A:N)

Family: Gentoo Local Security Checks

Nessus Plugin ID: 21047 (gentoo_GLSA-200603-09.nasl)

Bugtraq ID:

CVE ID: CVE-2006-0188
CVE-2006-0195
CVE-2006-0377