|
__________________________________________________________ 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 ______________________________________________________________________________ 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 ______________________________________________________________________________ [***** Start HPSBUX0303-249 *****] Document ID: HPSBUX0303-249 Date Loaded: 20030317 Title: SSRT 3522 Sec. Vulnerability in Tomcat 3.3.1/Description> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 ----------------------------------------------------------------- Source: HEWLETT-PACKARD COMPANY SECURITY BULLETIN: HPSBUX0303-249 Originally issued: 17 March 2003 SSRT3522 Sec. Vulnerabilities in Tomcat 3.3.1 ----------------------------------------------------------------- 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. a) When used with JDK 1.3.1 or earlier: - it allows remote attackers to potentially list directories even with an index.html or other file present, or obtain unprocessed source code for a JSP file, via a URL containing a null character. - it uses trusted privileges when processing the web.xml file, which could allow remote attackers to read portions of some files through the web.xml file. b) With Cross-site scripting (XSS), in the (1) examples and (2) ROOT web applications for Jakarta Tomcat 3.x upto but not including 3.3.1a, allows remote attackers to potentially execute arbitrary web script. Note: No such potential vulnerability has been specified for Tomcat 4.x. More details are available at: <http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0042> <http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0043> <http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0044> IMPACT: Remote unauthorized access or potential code execution. PLATFORM: HP9000 Servers running HP-UX release 11.00, 11.11, 11.20, and 11.22 with versions of the following products are affected, and represented as: product-name, version (product-tag/bundle-tag) - hp apache-based web server, 1.3.27.00 or earlier (ApacheStrong/B9415AA) This product includes Tomcat 3.3.1. - hp apache-based web server, 2.0.43.00 or earlier (HPApache/B9416AA, HPApache/B9416BA) This product includes Tomcat 3.3.1. OV SIP 3.0 and 3.1 installations using Apache Tomcat 3.2.3. SOLUTION: For HP-UX releases 11.00, 11.11, 11.20 and 11.22 download new HP Apache product from <http://www.software.hp.com/>: For ApacheStrong/B9415AA download the following: - hp apache-based web server, 1.3.27.01 or later (ApacheStrong/B9415AA) This product includes Tomcat 3.3.1a. <http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/ cgi/displayProductInfo.pl?productNumber=B9415AA132701> For HPApache/B9416AA and HPApache/B9416BA download the following: - hp-ux tomcat-based servlet engine, v.1.0.01.01 or later (hpuxwsTOMCAT/hpuxwsTomcat) This product includes Tomcat 4.1.12. <http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/ cgi/displayProductInfo.pl?productNumber=HPUXWSSUITE> For OV SIP 3.0 and 3.1 installations manually upgrade see below. NOTE: No IPv6 solution is available at this time. This Security Bulletin will be updated when such becomes available. MANUAL ACTIONS: Yes - Update Install the product containing the fix. For customers with HPApache/B9416AA or HPApache/B9416BA installed, the fix requires migration to hpuxwsTOMCAT/hpuxwsTomcat and removing the affected products from the system. AVAILABILITY: Complete product bundles are available now on <http://www.software.hp.com/> ----------------------------------------------------------------- A. Background The Common Vulnerabilities and Exposures project <http://cve.mitre.org/> has identified multiple potential vulnerabilities in the Jakarta-Tomcat servlet engine (CAN-2003-0042, CAN-2003-0043, CAN-2003-0044). It affects the following HP product numbers/versions on HP-UX releases 11.00, 11.11, 11.20 and 11.22:: - hp apache-based web server, 1.3.27.00 or earlier (ApacheStrong/B9415AA) - hp apache-based web server, 2.0.43.00 or earlier (HPApache/B9416AA, HPApache/B9416BA) 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. For customers using ApacheStrong/B9415AA, HP has incorporated Tomcat 3.3.1a in the following product: - hp apache-based web server 1.3.27.01 or later http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/ displayProductInfo.pl?productNumber=B9415AA132701 For customers using HPApache/B9416AA and HPApache/B9416BA, HP has incorporated Tomcat 4.1.12 in the following product: - hp-ux tomcat-based servlet engine v.1.0.01.01 or later http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/ displayProductInfo.pl?productNumber=HPUXWSSUITE NOTE: No IPv6 solution is available at this time. This Security Bulletin will be updated when such becomes available. 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 using the previously mentioned links. - 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/B9416AA or HPApache/B9416BA installed, migrate to hpuxwsTOMCAT/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. NOTE: For OV SIP 3.0 and 3.1 users manually upgrade the Tomcat Application server as a workaround. This security bulletin will be updated when OV patches become available. Removing Tomcat Installation ---------------------------- If you rather remove Tomcat from your system than install 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. C. To subscribe to automatically receive future NEW HP Security Bulletins from the HP IT Resource Center via electronic mail, do the following: Use your browser to get to the HP IT Resource Center page at: http://itrc.hp.com Use the 'Login' tab at the left side of the screen to login using your ID and password. Use your existing login or the "Register" button at the left to create a login, in order to gain access to many areas of the ITRC. Remember to save the User ID assigned to you, and your password. In the left most frame select "Maintenance and Support". Under the "Notifications" section (near the bottom of the page), select "Support Information Digests". To -subscribe- to future HP Security Bulletins or other Technical Digests, click the check box (in the left column) for the appropriate digest and then click the "Update Subscriptions" button at the bottom of the page. or To -review- bulletins already released, select the link (in the middle column) for the appropriate digest. NOTE: Using your itrc account security bulletins can be found here: http://itrc.hp.com/cki/bin/doc.pl/screen=ckiSecurityBulletin To -gain access- to the Security Patch Matrix, select the link for "The Security Bulletins Archive". (near the bottom of the page) Once in the archive the third link is to the current Security Patch Matrix. Updated daily, this matrix categorizes security patches by platform/OS release, and by bulletin topic. Security Patch Check completely automates the process of reviewing the patch matrix for 11.XX systems. Please note that installing the patches listed in the Security Patch Matrix will completely implement a security bulletin _only_ if the MANUAL ACTIONS field specifies "No." The Security Patch Check tool can verify that a security bulletin has been implemented on HP-UX 11.XX systems providing that the fix is completely implemented in a patch with no manual actions required. The Security Patch Check tool cannot verify fixes implemented via a product upgrade. For information on the Security Patch Check tool, see: http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/ displayProductInfo.pl?productNumber=B6834AA The security patch matrix is also available via anonymous ftp: ftp://ftp.itrc.hp.com/export/patches/hp-ux_patch_matrix/ On the "Support Information Digest Main" page: click on the "HP Security Bulletin Archive". The PGP key used to sign this bulletin is available from several PGP Public Key servers. The key identification information is: 2D2A7D59 HP Security Response Team (Security Bulletin signing only) <security-alert@hp.com> Fingerprint = 6002 6019 BFC1 BC62 F079 862E E01F 3AFC 2D2A 7D59 If you have problems locating the key please write to security-alert@hp.com. Please note that this key is for signing bulletins only and is not the key returned by sending 'get key' to security-alert@hp.com. D. To report new security vulnerabilities, send email to security-alert@hp.com Please encrypt any exploit information using the security-alert PGP key, available from your local key server, or by sending a message with a -subject- (not body) of 'get key' (no quotes) to security-alert@hp.com. ----------------------------------------------------------------- (c)Copyright 2003 Hewlett-Packard Company Hewlett-Packard Company shall not be liable for technical or editorial errors or omissions contained herein. The information in this document is subject to change without notice. Hewlett-Packard Company and the names of HP products referenced herein are trademarks and/or service marks of Hewlett-Packard Company. Other product and company names mentioned herein may be trademarks and/or service marks of their respective owners. ________________________________________________________________ - -- -----BEGIN PGP SIGNATURE----- Version: PGP 8.0 iQA/AwUBPnYut+AfOvwtKn1ZEQLsnQCgwEtxGEiM2czTsmiESI5vX6/t79YAoNOh NK8cPf/cDs2QbRCZ/rIe5Hkp =Yx3s -----END PGP SIGNATURE----- -----End of Document ID: HPSBUX0303-249-------------------------------------- [***** 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