__________________________________________________________ The U.S. Department of Energy Computer Incident Advisory Capability ___ __ __ _ ___ / | /_\ / \___ __|__ / \ \___ __________________________________________________________ INFORMATION BULLETIN Vulnerabilities in Tomcat 3.3.1 [HPSBUX0303-249] March 20, 2003 13:00 GMT Number N-060 [REVISED 7 July 2004] ______________________________________________________________________________ PROBLEM: Two potential vulnerabilities have been identified in Tomcat 3.3.1. When used with Java Development Kit (JDK) 1.3.1 or earlier, an attacker could possibly read files or obtain unprocessed source code. With Cross-site scripting (XSS) a remote attacker could potentially execute arbitrary web script. PLATFORM: HP9000 Servers running HP-UX release 11.00, 11.11, 11.20, and 11.22 hp apache-based web server, 1.3.27.00 or earlier hp apache-based web server, 2.0.43.00 or earlier DAMAGE: If exploited, these vulnerabilities could allow an attacker to read files on the system or potentially execute arbitrary web scripts. SOLUTION: Install updated product bundles or apply workarounds. ______________________________________________________________________________ VULNERABILITY The risk is MEDIUM. It is recommended that the information in ASSESSMENT: this bulletin be acted upon as soon as possible. ______________________________________________________________________________ LINKS: CIAC BULLETIN: http://www.ciac.org/ciac/bulletins/n-060.shtml ORIGINAL BULLETIN: Visit HEWLETT-PACKARD Subscription Service for: HPSBUX0303-249 rev. 1 ______________________________________________________________________________ REVISION HISTORY: 07/07/2004 - CIAC has updated N-060 with the revised HEWLETT-PACKARD HPSBUX0303-249 SSRT3522 rev. 1 bulletin. [***** Start HPSBUX0303-249 *****] ----------------------------------------------------------------- **REVISED 01** Source: HEWLETT-PACKARD COMPANY SECURITY BULLETIN: HPSBUX0303-249 Originally issued: 17 March 2003 Last revised: 30 June 2004 SSRT3522 rev.1 Tomcat 3.3.1 unauthorized access ----------------------------------------------------------------- NOTICE: There are no restrictions for distribution of this Bulletin provided that it remains complete and intact. The information in the following Security Bulletin should be acted upon as soon as possible. Hewlett-Packard Company will not be liable for any consequences to any customer resulting from customer's failure to fully implement instructions in this Security Bulletin as soon as possible. ----------------------------------------------------------------- PROBLEM: Potential vulnerabilities with using Tomcat 3.3.1 or earlier have been reported at : CAN-2003-0042, CAN-2003-0043, CAN-2003-0044 IMPACT: Remote unauthorized access or potential code execution. PLATFORM: HP-UX B.11.00, B.11.11, B.11.20, and B.11.22 running HP Tomcat. SOLUTION: Download and install a new HP Tomcat product from . MANUAL ACTIONS: Yes - Update plus other actions Install the product containing the fix. For customers with HPApache the fix requires migration to hpuxwsTOMCAT and removal of the affected products from the system. AVAILABILITY: Complete product bundles are available now on CHANGE SUMMARY: Rev.1 - clarified affected versions, removed OV SIP from list of affected products Note: Several Apache security bulletins are being revised to correct the affected versions specification. ----------------------------------------------------------------- A. Background The Common Vulnerabilities and Exposures project has identified multiple potential vulnerabilities in the Jakarta-Tomcat servlet engine (CAN-2003-0042, CAN-2003-0043, CAN-2003-0044). More details are available at: AFFECTED VERSIONS Note: To determine if a system has an affected version, search the output of "swlist -a revision -l fileset" for an affected fileset. Then determine if the recommended patch or update is installed. HP-UX B.11.00 HP-UX B.11.11 HP-UX B.11.20 HP-UX B.11.22 ============= For B9415AA ApacheStrong.TOMCAT --> action: install revision 3.3.1a or subsequent HPApache.TOMCAT HPApache.TOMCAT2 --> action: remove (migrate to hpuxwsTOMCAT) HP-UX B.11.00 HP-UX B.11.11 HP-UX B.11.22 ============= hpuxwsTOMCAT.TOMCAT hpuxwsTOMCAT.TOMCAT2 --> action: install revision A.1.0.10.01 or subsequent END AFFECTED VERSIONS B. Recommended solution The Apache Group has released Tomcat 3.3.1a as the best known version that fixes the problems identified in the above mentioned issues. Check for Tomcat Installation ----------------------------- To determine if the Tomcat Servlet Engine from HP is installed on your system, use Software Distributor's swlist command. Since Tomcat is not visible at the "product" level, search for Apache. All versions of products may co-exist on a single system. For example, the results of the command: swlist -l product | grep -i apache ApacheStrong 1.3.19.21 HP Apache-based Web Server with Strong (128bit) Encryption HPApache 2.0.39.01.02 HP Apache-based Web Server Stop Tomcat ----------------------------- Before updating, make sure to stop any previous Tomcat binary. Otherwise, the previous binary will continue running, preventing the new one from starting, although the installation would be successful. After determining which Tomcat is installed, stop Tomcat with the following commands: for ApacheStrong: /opt/tomcat/bin/shutdown.sh for HPApache: /opt/hpapache2/tomcat/bin/shutdown.sh Since Tomcat is bundled with Apache, Apache also needs to be stopped: for ApacheStrong: /opt/apache/bin/apachectl stop for HPApache: /opt/hpapache2/bin/apachectl stop Download and Install Tomcat and Apache ----------------------------- - Download Tomcat/Apache from Software Depot: - Verify successful download by comparing the cksum with the value specified on the installation web page. - Use SD to swinstall the depot. - For customers with HPApache installed, migrate to hpuxwsTOMCAT and remove the affected products from the system. Installation of this new version of HP Apache over an existing HP Apache installation is supported, while installation over a non-HP Apache is NOT supported. Removing Tomcat Installation ---------------------------- If you prefer to remove Tomcat from your system instead of installing a newer version to resolve the security problem, use both Software Distributor's "swremove" command and also "rm -rf" the home location as specified in the rc.config.d file "HOME" variables. To find the files containing HOME variables in the /etc/rc.config.d directory: %ls /etc/rc.config.d | grep apache apacheconf hpapache2conf NOTE: Apache will also be removed. NOTE: For HP Apache 1.3.x, you must manually remove the Apache directory in addition to the Tomcat directory. Apache is under directory "/opt/apache" for HP Apache 1.3.x. * The software product category that this Security Bulletin relates to is represented by the 5th and 6th characters of the Bulletin number: GN=General, MA=Management Agents, MI=Misc. 3rd party, MP=HP-MPE/iX, NS=HP NonStop Servers, OV=HP OpenVMS, PI=HP Printing & Imaging, ST=HP Storage, TU=HP Tru64 UNIX, TL=Trusted Linux, UX=HP-UX, VV=Virtual Vault SUPPORT: For further information, contact HP Services support channel. SUBSCRIBE: To initiate a subscription to receive future HP Security Bulletins via Email: http://h30046.www3.hp.com/driverAlertProfile.php?regioncode =NA&langcode=USENG&jumpid=in_SC-GEN__driverITRC&topiccode=ITRC On the web page: Driver and Support Alerts/Notifications Sign-up: Product Selection Under Step1: your products 1. Select product category: - a minimum of servers must be selected. 2. Select product family or search: - a minimum of one product must be selected. 3. Add a product: - a minimum of one product must be added. In Step 2: your operating system(s) - check ALL operating systems for which alerts are required. Complete the form and Save. To update an existing subscription: http://h30046.www3.hp.com/subSignIn.php Log in on the web page Subscriber's choice for Business: sign-in. On the Web page: Subscriber's Choice: your profile summary - - use Edit Profile to update appropriate sections. Note: In addition to the individual alerts/notifications for the selected operating systems/products, subscribers will automatically receive one copy of alerts for non-operating system categories (i.e., a subscriber who signs up for all six operating system alerts will only receive one copy of all the non-operating system alerts). HP-UX SPECIFIC SECURITY BULLETINS*: To review previously published Security Bulletins for HP-UX: http://itrc.hp.com/cki/bin/doc.pl/screen=ckiSecurityBulletin Security Patch Check revision B.02.00 analyzes all HP-issued security bulletins to give you a subset of recommended actions that potentially affect your particular HP-UX system. For more information: REPORT: To report a potential security vulnerability with any HP supported product, send Email to: security-alert@hp.com. It is strongly recommended that security related information being communicated to HP be encrypted using PGP, especially exploit information. To obtain the security-alert PGP key please send an e-mail message to security-alert@hp.com with the Subject of 'get key' (no quotes). System management and security procedures must be reviewed frequently to maintain system integrity. HP is continually reviewing and enhancing the security features of software products to provide customers with current secure solutions. "HP is broadly distributing this Security Bulletin in order to bring to the attention of users of the affected HP products the important security information contained in this Bulletin. HP recommends that all users determine the applicability of this information to their individual situations and take appropriate action. HP does not warrant that this information is necessarily accurate or complete for all user situations and, consequently, HP will not be responsible for any damages resulting from user's use or disregard of the information provided in this Bulletin. To the extent permitted by law, HP disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose, title and non-infringement." (c)Copyright 2004 Hewlett-Packard Development Company, L.P. Hewlett-Packard Company shall not be liable for technical or editorial errors or omissions contained herein. The information provided is provided "as is" without warranty of any kind. To the extent permitted by law, neither HP or its affiliates, subcontractors or suppliers will be liable for incidental, special or consequential damages including downtime cost; lost profits; damages relating to the procurement of substitute products or services; or damages for loss of data, or software restoration. The information in this document is subject to change without notice. Hewlett-Packard Company and the names of Hewlett-Packard products referenced herein are trademarks of Hewlett-Packard Company in the United States and other countries. Other product and company names mentioned herein may be trademarks of their respective owners. [***** End HPSBUX0303-249 *****] _______________________________________________________________________________ CIAC wishes to acknowledge the contributions of Hewlett-Packard 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) N-050: Sun sendmail(1M) ".forward" Constructs Vulnerability N-051: Red Hat Updated OpenSSL Packages Fix Timing Attack N-052: PeopleSoft PeopleTools Remote Command Execution Vulnerability N-053: Increased Activity Targeting Microsoft Windows Shares N-054: Unchecked Buffer in Windows Component Could Cause Web Server Compromise N-055: Samba smbd Buffer Overrun Vulnerability N-056: Red Hat Updated 2.4 Kernel Fix for ptrace Vulnerability N-057: Cryptographic weaknesses in Kerberos v4 protocol N-058: Vulnerabilities in Webmin/Usermin N-059: Integer overflow in Sun RPC XDR library routines