SecurityTracker.com
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


 


Category:   Application (E-mail Server)  >   SquirrelMail Vendors:   SquirrelMail Development Team
(Red Hat Issues Fix) SquirrelMail Input Validation Flaw in 'read_body.php' Lets Remote Users Conduct Cross Site Scripting Attacks
SecurityTracker Alert ID:  1006229
SecurityTracker URL:  http://securitytracker.com/id/1006229
CVE Reference:   CVE-2002-1341   (Links to External Site)
Date:  Mar 6 2003
Impact:   Disclosure of authentication information, Disclosure of user information, Execution of arbitrary code via network, Modification of user information, User access via network
Fix Available:  Yes  Vendor Confirmed:  Yes  
Version(s): 1.2.9
Description:   An input validation vulnerability was reported in a component of SquirrelMail. A remote user can conduct cross-site scripting attacks against SquirrelMail users.

It is reported that the 'read_body.php' script does not filter user-supplied HTML from the 'mailbox' and 'passed_id' variables. A remote user can create a specially crafted URL that, when loaded 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.

A demonstration exploit is provided:

http://hostname/src/read_body.php?mailbox=
%3Cscript%3Ealert(document.cookie)%3C%2Fscript%3E&passed_id=
%3Cscript%3Ealert(document.cookie)%3C%2Fscript%3E&
startMessage=1&show_more=0

Impact:   A remote user can access the target user's cookies (including authentication cookies), if any, associated with the site running SquirrelMail, 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.
Solution:   Red Hat has released a fix.

Red Hat Linux 8.0:

SRPMS:
ftp://updates.redhat.com/8.0/en/os/SRPMS/squirrelmail-1.2.10-1.src.rpm

noarch:
ftp://updates.redhat.com/8.0/en/os/noarch/squirrelmail-1.2.10-1.noarch.rpm

The verification checksums are:

MD5 sum Package Name
ab53bd8537f3263e0410e5c0324e5f40 8.0/en/os/SRPMS/squirrelmail-1.2.10-1.src.rpm
9f9bdb1263306d8ffffef6c030c8fe29 8.0/en/os/noarch/squirrelmail-1.2.10-1.noarch.rpm

Vendor URL:  www.squirrelmail.org (Links to External Site)
Cause:   Input validation error
Underlying OS:  Linux (Red Hat Linux)
Underlying OS Comments:  8.0

Message History:   This archive entry is a follow-up to the message listed below.
Dec 5 2002 SquirrelMail Input Validation Flaw in 'read_body.php' Lets Remote Users Conduct Cross Site Scripting Attacks



 Source Message Contents

Subject:  [RHSA-2003:042-07] Updated squirrelmail packages close cross-site scripting vulnerabilities


---------------------------------------------------------------------
                   Red Hat, Inc. Red Hat Security Advisory

Synopsis:          Updated squirrelmail packages close cross-site scripting vulnerabilities
Advisory ID:       RHSA-2003:042-07
Issue date:        2003-02-07
Updated on:        2003-03-04
Product:           Red Hat Linux
Keywords:          squirrelmail cross-site scripting
Cross references:  
Obsoletes:         
CVE Names:         CAN-2002-1276 CAN-2002-1341
---------------------------------------------------------------------

1. Topic:

Updated squirrelmail packages are now available for Red Hat Linux.

2. Relevant releases/architectures:

Red Hat Linux 8.0 - noarch

3. Problem description:

SquirrelMail is a webmail package written in PHP.  Two vulnerabilities
have been found that affect versions of SquirrelMail shipped with Red Hat
Linux 8.0.

A cross-site scripting (XSS) vulnerability in Squirrelmail version 1.2.10
and earlier allows remote attackers to execute script as other web users
via read_body.php. The Common Vulnerabilities and Exposures project
(cve.mitre.org) has assigned the name CAN-2002-1341 to this issue.

An incomplete fix for a cross-site scripting vulnerability in SquirrelMail
1.2.8 calls the strip_tags function on the PHP_SELF value but does not save
the result back to that variable, leaving it open to cross-site scripting
attacks. (CAN-2002-1276)

All users of Squirrelmail are advised to upgrade to these packages
based on SquirrelMail version 1.2.10 which contain a backported patch to
fix these issues.

4. Solution:

Before applying this update, make sure all previously released errata
relevant to your system have been applied.

To update all RPMs for your particular architecture, run:

rpm -Fvh [filenames]

where [filenames] is a list of the RPMs you wish to upgrade.  Only those
RPMs which are currently installed will be updated.  Those RPMs which are
not installed but included in the list will not be updated.  Note that you
can also use wildcards (*.rpm) if your current directory *only* contains the
desired RPMs.

Please note that this update is also available via Red Hat Network.  Many
people find this an easier way to apply updates.  To use Red Hat Network,
launch the Red Hat Update Agent with the following command:

up2date

This will start an interactive process that will result in the appropriate
RPMs being upgraded on your system.

5. Bug IDs fixed (http://bugzilla.redhat.com/bugzilla for more info):

78982 - SquirrelMail 1.2.8 vulnerable to XSS attacks
79147 - SquirrelMail 1.2.8 vulnerable to XSS attacks

6. RPMs required:

Red Hat Linux 8.0:

SRPMS:
ftp://updates.redhat.com/8.0/en/os/SRPMS/squirrelmail-1.2.10-1.src.rpm

noarch:
ftp://updates.redhat.com/8.0/en/os/noarch/squirrelmail-1.2.10-1.noarch.rpm



7. Verification:

MD5 sum                          Package Name
--------------------------------------------------------------------------
ab53bd8537f3263e0410e5c0324e5f40 8.0/en/os/SRPMS/squirrelmail-1.2.10-1.src.rpm
9f9bdb1263306d8ffffef6c030c8fe29 8.0/en/os/noarch/squirrelmail-1.2.10-1.noarch.rpm


These packages are GPG signed by Red Hat, Inc. for security.  Our key
is available at http://www.redhat.com/about/contact/pgpkey.html

You can verify each package with the following command:
    
    rpm --checksig -v <filename>

If you only wish to verify that each package has not been corrupted or
tampered with, examine only the md5sum with the following command:
    
    md5sum <filename>


8. References:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=167471
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2002-1276
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2002-1341

9. Contact:

The Red Hat security contact is <security@redhat.com>.  More contact
details at http://www.redhat.com/solutions/security/news/contact.html

Copyright 2003 Red Hat, Inc.



_______________________________________________
Redhat-watch-list mailing list
To unsubscribe, visit: https://listman.redhat.com/mailman/listinfo/redhat-watch-list


 
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us

This web site uses cookies for web analytics. Learn More

Copyright 2019, SecurityGlobal.net LLC