__________________________________________________________ The U.S. Department of Energy Computer Incident Advisory Capability ___ __ __ _ ___ / | /_\ / \___ __|__ / \ \___ __________________________________________________________ INFORMATION BULLETIN Sun JAR File Contents Disclosure [Sun Alert ID: 101905] September 14, 2005 16:00 GMT Number P-305 ______________________________________________________________________________ PROBLEM: A security vulnerability was discovered in Sun Java System Application Server. This issue will only affect deployed applications which contain a JAR archive in the deployment package. PLATFORM: SPARC Platform * Sun Java System Application Server Platform Edition 8.1 2005 Q1 * Sun Java System Applciation Server Platform Edition 8.1 2005 Q1 UR1 * Sun Java System Applciation Server Enterprise Edition 8.1 2005 Q1 without (file-based) patch 119169-01 or (SVR4) patch 119166-06 x86 Platform * Sun Java System Application Server Platform Edition 8.1 2005 Q1 * Sun Java System Application Server Platform Edition 8.1 2005 Q1 UR1 * Sun Java System Application Server Enterprise Edition 8.1 2005 Q1 without (file based) patch 119170-01 or (SVR4) patch 119167-06 Linux Platform * Sun Java System Application Server Platform Edition 8.1 2005 Q1 * Sun Java System Application Server Platform Edition 8.1 2005 Q1 UR1 * Sun Java System Application Server Enterprise Edition 8.1 2005 Q1 without (file based) patch 119171-01 or RHEL2.1/RHEL3.0 (Pkg_patch) 119168-05 Windows Platform * Sun Java System Application Server Platform Edition 8.1 2005 Q1 * Sun Java System Application Server Platform Edition 8.1 2005 Q1 UR1 DAMAGE: When a deployed web application created for the Sun Java System Application Server contains a "jar" file, contents of the jar file may be exposed. SOLUTION: Apply the available security updates. ______________________________________________________________________________ VULNERABILITY The risk is MEDIUM. The contents of JAR files may be disclosed. ASSESSMENT: ______________________________________________________________________________ LINKS: CIAC BULLETIN: http://www.ciac.org/ciac/bulletins/p-305.shtml ORIGINAL BULLETIN: http://www.sunsolve.sun.com/search/document.do?assetkey= 1-26-101905-1&searchclause=101905 ______________________________________________________________________________ [***** Start Sun Alert ID: 101905 *****] Document Audience: PUBLIC Document ID: 101905 Title: Security Vulnerability in Sun Java System Application Server Exposes Contents of "jar" File of Deployed Web Applications Update Date: Tue Sep 13 00:00:00 MDT 2005 Status Issued Description Top Sun(sm) Alert Notification * Sun Alert ID: 101905 * Synopsis: Security Vulnerability in Sun Java System Application Server Exposes Contents of "jar" File of Deployed Web Applications * Category: Security * Product: Sun Java System Application Server Platform Edition 8.1 2005Q1, Sun Java System Application Server Platform Edition 8.1 2005Q1 Update Release 1, Sun Java System Application Server Enterprise Edition 8.1 2005Q1 * BugIDs: 6246426 * Avoidance: Patch, Upgrade * State: Resolved * Date Released: 13-Sep-2005 * Date Closed: 13-Sep-2005 * Date Modified: 1. Impact When a deployed web application created for the Sun Java System Application Server contains a "jar" file, contents of the jar file may be exposed. 2. Contributing Factors This issue can occur in the following releases: SPARC Platform * Sun Java System Application Server Platform Edition 8.1 2005 Q1 * Sun Java System Applciation Server Platform Edition 8.1 2005 Q1 UR1 * Sun Java System Applciation Server Enterprise Edition 8.1 2005 Q1 without (file-based) patch 119169-01 or (SVR4) patch 119166-06 x86 Platform * Sun Java System Application Server Platform Edition 8.1 2005 Q1 * Sun Java System Application Server Platform Edition 8.1 2005 Q1 UR1 * Sun Java System Application Server Enterprise Edition 8.1 2005 Q1 without (file based) patch 119170-01 or (SVR4) patch 119167-06 Linux Platform * Sun Java System Application Server Platform Edition 8.1 2005 Q1 * Sun Java System Application Server Platform Edition 8.1 2005 Q1 UR1 * Sun Java System Application Server Enterprise Edition 8.1 2005 Q1 without (file based) patch 119171-01 or RHEL2.1/RHEL3.0 (Pkg_patch) 119168-05 Windows Platform * Sun Java System Application Server Platform Edition 8.1 2005 Q1 * Sun Java System Application Server Platform Edition 8.1 2005 Q1 UR1 Notes: 1. Sun Java System Application Server 8 Platform Edition is not affected by this issue. 2. This issue will only affect deployed applications which contain a JAR archive in the deployment package. To determine the version of Sun Java System Application server, the following command can be run: $ /bin/asadmin version --verbose Unable to communicate with admin server, getting version locally. Version = Sun Java System Application Server Enterprise Edition 8.1 (build b43-fcs) Command version executed successfully. (Where is the installation directory of the Application Server) 3. Symptoms There are no reliable symptoms that would indicate the described issue has occurred. Solution Summary Top 4. Relief/Workaround To work around the described issue, use one of the two following methods: A. Turn off the directory listing feature for web apps, which is on by default: 1. Edit $/domain1/config/default-web.xml 2. Set the listing value to false: listings false 3. Restart the domain Or, B. Delete the files that got unjarred from the jar files under $/domain1/applications/j2ee-modules// after deployment of the web application. Example: If the file "com/sun/appserv/web/taglibs/cache/CacheTag.class" was packaged as appserv-tags.jar (This appserv-tags.jar file was packaged in the war file webapps-caching.war) then after deployment of the war file webapps- caching.war, delete the directory "com" under $/domain1/applications/j2ee-modules/webapps-caching. 5. Resolution This issue is addressed in the following releases: SPARC Platform * Sun Java System Application Server Platform Edition 8.1 2005Q2 UR2 available from http://java.sun.com/j2ee/1.4/download.html * Sun Java System Application Server Enterprise Edition 8.1 2005Q1 with (file based) patch 119169-01 or later * Sun Java System Application Server Enterprise Edition 8.1 2005Q1 with (SVR4) patch 119166-06 or later x86 Platform * Sun Java System Application Server Platform Edition 8.1 2005Q2 UR2 available from http://java.sun.com/j2ee/1.4/download.html * Sun Java System Application Server Enterprise Edition 8.1 2005Q1 with (file based) patch 119170-01 or later * Sun Java System Application Server Enterprise Edition 8.1 2005Q1 with (SVR4) patch 119167-06 or later Linux Platform * Sun Java System Application Server Platform Edition 8.1 2005Q2 UR2 available from http://java.sun.com/j2ee/1.4/download.html * Sun Java System Application Server Enterprise Edition 8.1 2005Q1 with (file based) patch 119171-01 or later * Sun Java System Application Server Enterprise Edition 8.1 2005Q1 with RHEL2.1/RHEL3.0 (Pkg_patch) 119168-05 or later Windows Platform * Sun Java System Application Server Platform Edition 8.1 2005Q2 UR2 available from http://java.sun.com/j2ee/1.4/download.html NOTE: The resolution outlined above will only affect applications deployed after the installation of the above patches or upgrades. To correct web applications that were deployed prior to installing the resolution, workaround "B" (in Relief/Workaround) needs to be applied to those applications. 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-2005 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, CA 95054 U.S.A. All rights reserved. [***** End Sun Alert ID: 101905 *****] _______________________________________________________________________________ CIAC wishes to acknowledge the contributions of Sun Microsystems for the information contained in this bulletin. _______________________________________________________________________________ CIAC, the Computer Incident Advisory Capability, is the computer security incident response team for the U.S. Department of Energy (DOE) and the emergency backup response team for the National Institutes of Health (NIH). CIAC is located at the Lawrence Livermore National Laboratory in Livermore, California. CIAC is also a founding member of FIRST, the Forum of Incident Response and Security Teams, a global organization established to foster cooperation and coordination among computer security teams worldwide. CIAC services are available to DOE, DOE contractors, and the NIH. CIAC can be contacted at: Voice: +1 925-422-8193 (7x24) FAX: +1 925-423-8002 STU-III: +1 925-423-2604 E-mail: ciac@ciac.org Previous CIAC notices, anti-virus software, and other information are available from the CIAC Computer Security Archive. World Wide Web: http://www.ciac.org/ Anonymous FTP: ftp.ciac.org PLEASE NOTE: Many users outside of the DOE, ESnet, and NIH computing communities receive CIAC bulletins. If you are not part of these communities, please contact your agency's response team to report incidents. Your agency's team will coordinate with CIAC. The Forum of Incident Response and Security Teams (FIRST) is a world-wide organization. A list of FIRST member organizations and their constituencies can be obtained via WWW at http://www.first.org/. This document was prepared as an account of work sponsored by an agency of the United States Government. Neither the United States Government nor the University of California nor any of their employees, makes any warranty, express or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness of any information, apparatus, product, or process disclosed, or represents that its use would not infringe privately owned rights. Reference herein to any specific commercial products, process, or service by trade name, trademark, manufacturer, or otherwise, does not necessarily constitute or imply its endorsement, recommendation or favoring by the United States Government or the University of California. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or the University of California, and shall not be used for advertising or product endorsement purposes. LAST 10 CIAC BULLETINS ISSUED (Previous bulletins available from CIAC) P-295: Courier P-296: PCRE3 P-297: HP OpenView Event Correlation Services Vulnerability P-298: Sun iPlanet Messaging Server Vulnerability P-299: 'cvsbug' Security Update P-300: Cisco IOS Firewall Authentication Proxy for FTP and Telnet Sessions Vulnerability P-301: httpd Security Update P-302: Cisco CSS SSL Authentication Bypass Security Notice P-303: Firefox and Mozilla Buffer Overflow Vulnerability P-304: XFree86 Security Update