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

medium Nessus Plugin ID 21047

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.

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.

See Also

https://security.gentoo.org/glsa/200603-09

Plugin Details

Severity: Medium

ID: 21047

File Name: gentoo_GLSA-200603-09.nasl

Version: 1.16

Type: local

Published: 3/13/2006

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3.5

CVSS v2

Risk Factor: Medium

Base Score: 5

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:P/A:N

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:squirrelmail, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Patch Publication Date: 3/12/2006

Vulnerability Publication Date: 2/1/2006

Reference Information

CVE: CVE-2006-0188, CVE-2006-0195, CVE-2006-0377

GLSA: 200603-09