SquirrelMail Multiple Cross-Site Scripting Vulnerabilities

Posted on Monday, December 04, 2006 @ 10:41:59 CST in Security
by Raven

SECUNIA ADVISORY ID: SA23195

VERIFY ADVISORY: http://secunia.com/advisories/23195/

CRITICAL: Moderately critical

IMPACT: Cross Site Scripting

SOFTWARE: SquirrelMail 1.x - http://secunia.com/product/288/

DESCRIPTION: Some vulnerabilities have been reported in SquirrelMail, which can be exploited by malicious people to conduct cross-site scripting and script insertion attacks. Successful exploitation of some of these errors require that the target user runs Microsoft Internet Explorer. The vulnerabilities are reported in versions before 1.4.9a.


1) Input passed to certain parameters in webmail.php and compose.php in the "draft", "compose", and "mailto" functionality is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.

2) Input validation errors exist in the magicHTML filter when sanitising HTML mails. This can be exploited to insert arbitrary HTML and script code, which is executed in a user's browser session in context of an affected site when the malicious data is viewed.

SOLUTION: Update to version 1.4.9a.

PROVIDED AND/OR DISCOVERED BY: The vendor credits Martijn Brinkers

ORIGINAL ADVISORY:
http://squirrelmail.org/security/issue/2006-12-02
http://sourceforge.net/project/shownotes.php?release_id=468482