-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                        ESB-2008.0441 -- [Solaris]
       Cross Site Scripting (XSS) Vulnerabilities in the Apache 1.3
                and 2.0 "mod_imap" and "mod_status" Modules
                                7 May 2008

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:              Apache 2.0
                      Apache 1.3
Publisher:            Sun Microsystems
Operating System:     Solaris
Impact:               Cross-site Scripting
Access:               Remote/Unauthenticated
CVE Names:            CVE-2007-6388 CVE-2007-5000

Ref:                  ESB-2008.0074
                      ESB-2008.0056

Original Bulletin:  
  http://sunsolve.sun.com/search/printfriendly.do?assetkey=1-66-233623-1

Revision History:  May    7 2008: Resolution provided by Sun
                   April 30 2008: Initial Release

- --------------------------BEGIN INCLUDED TEXT--------------------

Solution Type: Sun Alert
   Solution  233623 :   Cross Site Scripting (XSS) Vulnerabilities in the
   Apache 1.3 and 2.0 "mod_imap" and "mod_status" Modules          
   Bug ID: 6644748, 6644749

   Product
Solaris 8 Operating System, Solaris 9 Operating System, Solaris 10 Operating 
System

   Date of Workaround Release: 28-Feb-2008

   Date of Resolved Release: 05-May-2008

   SA Document Body
Cross Site Scripting (XSS) Vulnerabilities in the Apache 1.3 and 2.0 "mod_imap"
 and "mod_status" Modules

1. Impact

   Two security vulnerabilities have been found in the Apache HTTP server
   which affect the Apache 2.0 web server bundled with Solaris 10 and the
   Apache 1.3 web server bundled with Solaris 8, Solaris 9 and Solaris
   10.
   The first issue, a Cross Site Scripting (CSS or XSS) vulnerability in
   the "mod_imap" Apache server module (CVE-2007-5000), may allow a local
   or remote unprivileged user to inject arbitrary web script or HTML.
   This may allow the unprivileged user to bypass access control and gain
   access to unauthorized data.
   The second issue, a Cross Site Scripting (CSS or XSS) vulnerability in
   the "mod_status" Apache server module (CVE-2007-6388), may allow a
   local or remote unprivileged user to inject arbitrary web script or
   HTML. This may allow the unprivileged user to bypass access control
   and gain access to unauthorized data.
   Additional information regarding these issues is available at:

   The Change Log for Apache 2.0 at
   http://www.apache.org/dist/httpd/CHANGES_2.0
   The Change Log for Apache 1.3 at
   http://www.apache.org/dist/httpd/CHANGES_1.3
   CVE-2007-5000 at
   http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-5000
   CVE-2007-6388 at
   http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-6388
   
2. Contributing Factors

   These issues can occur in the following releases:
   SPARC Platform
     * Solaris 8 without patch 116973-07
     * Solaris 9 without patch 113146-10
     * Solaris 10 without patch 120543-11 and without patch 122911-11

   x86 Platform
     * Solaris 8 without patch 116974-07
     * Solaris 9 without patch 114145-09
     * Solaris 10 without patch 120544-11 and without patch 122912-11

   Note 1: A system is only vulnerable to the described issues if the
   Apache 1.3 web server and/or Apache 2.0 web server has been configured
   and is running on the system.
   The following command can be run to determine if the Apache 1.3 web
   server is currently running on the system:
$ /usr/bin/ps -ef | grep httpd
nobody 103892 102307 0 Jan 20 ? 0:27 /usr/apache/bin/httpd

   The following SMF (smf(5)) command can be used to see if the Solaris
   10 bundled Apache 2 web server service is enabled:
$ svcs svc:/network/http:apache2
STATE          STIME    FMRI\
disabled       Feb_02   svc:/network/http:apache2

   Note 2: The mod_imap vulnerability (CVE-2007-5000) only affects
   systems which make use of the Apache Server Status module mod_imap.
   To determine if this module is enabled, a command such as the
   following can be run for all of the configuration files that define
   the running Apache 1.3 and Apache 2 configuration:
$ egrep "imap-file|application/x-httpd-imap" /etc/apache/httpd.conf | grep map
AddType application/x-httpd-imap map
$ egrep "imap-file|application/x-httpd-imap" /etc/apache2/httpd.conf | grep map

AddHandler imap file map

   Note 3: The mod_status vulnerability (CVE-2007-6388) only affects
   systems which make use of the Apache Server Status module
   (mod_status).
   To determine if this module is enabled, a command such as the
   following can be run for all of the configuration files that define
   the running Apache 1.3 and Apache 2 configuration:
$ grep SetHandler /etc/apache/httpd.conf | grep server-status
SetHandler server-status
$ grep SetHandler /etc/apache2/httpd.conf | grep server-status
SetHandler server-status

3. Symptoms

   There are no predictable symptoms that would indicate the described
   issues have been exploited on a system.

4. Workaround

   To avoid the mod_imap issue (CVE-2007-5000) from occurring, make sure
   that there is no activation of map files (see Note 2 in Section 2) in
   the Apache httpd.conf file.
   To avoid the mod_status issue (CVE-2007-6388) from occurring, make
   sure that the "ExtendedStatus" entry in the Apache httpd.conf file is
   disabled.

5. Resolution

   This issue is addressed in the following releases:
   SPARC Platform
     * Solaris 8 with patch 116973-07 or later
     * Solaris 9 with patch 113146-10 or later
     * Solaris 10 with patch 120543-11 or later and patch 122911-11 or
       later

   x86 Platform
     * Solaris 8 with patch 116974-07 or later
     * Solaris 9 with patch 114145-09 or later
     * Solaris 10 with patch 120544-11 or later and patch 122912-11 or
       later

   For more information on Security Sun Alerts, see Technical
   Instruction ID 213557.
   This Sun Alert notification is being provided to you on an "AS IS"
   basis. This Sun Alert notification may contain information provided by
   third parties. The issues described in this Sun Alert notification may
   or may not impact your system(s). Sun makes no representations,
   warranties, or guarantees as to the information contained herein. ANY
   AND ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
   WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
   NON-INFRINGEMENT, ARE HEREBY DISCLAIMED. BY ACCESSING THIS DOCUMENT
   YOU ACKNOWLEDGE THAT SUN SHALL IN NO EVENT BE LIABLE FOR ANY DIRECT,
   INDIRECT, INCIDENTAL, PUNITIVE, OR CONSEQUENTIAL DAMAGES THAT ARISE
   OUT OF YOUR USE OR FAILURE TO USE THE INFORMATION CONTAINED HEREIN.
   This Sun Alert notification contains Sun proprietary and confidential
   information. It is being provided to you pursuant to the provisions of
   your agreement to purchase services from Sun, or, if you do not have
   such an agreement, the Sun.com Terms of Use. This Sun Alert
   notification may only be used for the purposes contemplated by these
   agreements.
   Copyright 2000-2008 Sun Microsystems, Inc., 4150 Network Circle, Santa
   Clara, CA 95054 U.S.A. All rights reserved

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        http://www.auscert.org.au/render.html?cid=1980

If you believe that your computer system has been compromised or attacked in 
any way, we encourage you to let us know by completing the secure National IT 
Incident Reporting Form at:

        http://www.auscert.org.au/render.html?it=3192

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================

-----BEGIN PGP SIGNATURE-----
Comment: http://www.auscert.org.au/render.html?it=1967

iQCVAwUBSCD57ih9+71yA2DNAQJDXAP+N2+DFvbXTbbKNkUyBSZeaoPvPHu8Ikzs
dkAoF7W06ni5mF2GRWFBc5aQzPo5DJBf+8PChiMXNRandvTGuA1mqp79I9jVuscG
OGR6b4jzHTMYief1PuASQXq29ogmm7n0JDZUqxgeojr35Y1hcimsQY1sHsK5G9A/
D8kOk90P/Ww=
=ADqf
-----END PGP SIGNATURE-----