copyright | disclaimer | privacy | contact  
Australia's Leading Computer Emergency Response Team
 
Search this site

 
On this site

 > HOME
 > About AusCERT
 > Membership
 > Contact Us
 > PKI Services
 > Training
 > Publications
 > Sec. Bulletins
 > Conferences
 > News & Media
 > Services
 > Web Log
 > Site Map
 > Site Help
 > Member login





 

ESB-2003.0869 -- Sun Alert Notification -- Sun One Application Server May Disclose JSP Source

Date: 23 December 2003

Click here for printable version
Click here for PGP verifiable version
-----BEGIN PGP SIGNED MESSAGE-----

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

                  ESB-2003.0869 -- Sun Alert Notification
            Sun One Application Server May Disclose JSP Source
                             23 December 2003

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

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

Product:                Sun ONE Application Server 7.0 SE
                        Sun ONE Application Server 7.0 PE
Publisher:              Sun Microsystems
Operating System:       Solaris
                        Windows
                        Linux
Impact:                 Access Privileged Data
                        Execute Arbitrary Code/Commands
                        Reduced Security
Access Required:        Remote
CVE Names:              CAN-2003-0411 CAN-2003-0412 CAN-2003-0413
                        CAN-2003-0414

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

   DOCUMENT ID: 55221
   SYNOPSIS: Sun One Application Server May Disclose JSP Source
   DETAIL DESCRIPTION:
   
Sun(sm) Alert Notification

     * Sun Alert ID: 55221
     * Synopsis: Sun One Application Server May Disclose JSP Source
     * Category: Security
     * Product: Sun ONE Application Server
     * BugIDs: 4838909, 4773335, 4840324, 4733798
     * Avoidance: Workaround, Upgrade
     * State: Resolved
     * Date Released: 03-Jun-2003, 19-Dec-2003
     * Date Closed: 19-Dec-2003
     * Date Modified: 19-Dec-2003
       
1. Impact

   SPI Labs have reported the following issues with Sun ONE Application
   Server.
   
   1. JSP Source code Disclosure
     * It may be possible to view the source code of JSP applications
       deployed on the Windows platform.
       
   2. Log evasion
     * When a request is sent to the Application Server with a long URI
       only the first 4042 characters of the request URI are logged.
       
   3. Cross-site scripting
     * A sample application shipped with the product may be vulnerable to
       cross-site scripting attacks.
       
   4. Statefile permissions on Windows
     * A statefile is created during installation of the Application
       Server. This file can be used as a template for silent
       installation on other machines. On the Windows platform, this file
       is world-readable.
       
   These issues are described in the SPI Security Advisory located at:
        [1]http://www.securityfocus.com/archive/1/322946/2003-05-25/2003-05-31/
0

2. Contributing Factors

   These issues can occur in the following releases:
     * Sun ONE Application Server 7.0 SE
     * Sun ONE Application Server 7.0 PE
       
   For supported architectures and OS versions see:
   
   Standard Edition:
        [2]http://wwws.sun.com/software/download/products/3ec3e772.html


   Platform Edition:
        [3]http://wwws.sun.com/software/download/products/3ec1008e.html


3. Symptoms

   Log evasion
   
   The following error message may be found in the server log:
    WARNING: HTTP4198: flex log buffer overflow- greater than 4096 characters


   SOLUTION SUMMARY:
   
4. Relief/Workaround

   The following are workarounds for the cross-site scripting and the
   statefile permission issues:
   
   1. Cross-site scripting
   
   You can un-deploy webapp-simple.ear if it is deployed. The deployed
   application will be in the following directory:
    $AS_DEF_DOMAINS_PATH/domains/<instancename>/applications/j2ee-modules/webapps-simple_1

   The admin GUI will also show the deployed applications.
   
   Note: Both AS_INSTALL and AS_DEF_DOMAINS_PATH are defined in the
   asenv.conf file
   
   2. Statefile permissions on Windows
   
   When installing the SunONE Application Server on Windows, the default
   installation directory is "C:\sun"
   
   Any file or directory created in this directory will be
   world-readable. The "statefile" located at
   "C:\sun\appserver7\statefile" contains a plain text username and
   password to the administrative server. After installation, the
   administrator can change the permission of this file for use to
   "administrator only" or delete this file since it's main purpose is
   for silent installation using this file on multiple machines.
   
5. Resolution

   The cross-site scripting issue has been addressed with Sun ONE
   Application Server 7.0 Update Release 1.
   
   It is available for download at:
   
   Standard Edition:
     * [4]http://wwws.sun.com/software/download/app_servers.html
       
   Platform Edition:
     * [5]http://wwws.sun.com/software/download/app_servers.html
       
   The logging and JSP source code issues has been addressed with SunONE
   Application Server 7.0 Update release 2.
   
   It is available for download at:
     * [6]http://wwws.sun.com/software/download/app_servers.html
       
   Note: Administrators installing the Sun ONE Application Server on
   Windows should either change the permission of the statefile or delete
   the file. There will not be a code fix for this issue. The
   recommendation to change permissions or delete the statefile will be
   documented in the release notes of Update 2.
   
Change History

   19-Dec-2003:
     * Updated Resolution section
     * Changed State to Resolved
       
   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, th! e Sun.com Terms of Use. This Sun Alert
   notification may only be used for the purposes contemplated by these
   agreements.
   
   Copyright 2000-2003 Sun Microsystems, Inc., 4150 Network Circle, Santa
   Clara, CA 95054 U.S.A. All rights reserved.
   

References

   1. http://www.securityfocus.com/archive/1/322946/2003-05-25/2003-05-31/0
   2. http://wwws.sun.com/software/download/products/3ec1008e.html
   3. http://wwws.sun.com/software/download/products/3ec1008e.html
   4. http://wwws.sun.com/software/download/app_servers.html
   5. http://wwws.sun.com/software/download/app_servers.html
   6. http://wwws.sun.com/software/download/app_servers.html

- --------------------------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.

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

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

iQCVAwUBP+elyih9+71yA2DNAQF5mQQAmo/IrA4xrZe/mP6EgeIIwZSzxLqyK3ph
JxlTq4YW1iBwEDC8I6TwVS4I5sCoGXoKzWy4v4PYI1t5U5szHFF2jzx3ZZ3raVfx
duOzgjm6VesbbFjg0i1kPGCoYtBJYYXwyGeW38GzdSwcKhscio2lSwxkwDIs+DPw
Fmygzo1aPvM=
=E9Fr
-----END PGP SIGNATURE-----