iDefense Security Advisory 10.29.08 http://labs.idefense.com/intelligence/vulnerabilities/ Oct 29, 2008 I. BACKGROUND The WebLogic Apache Connector is module for the Apache httpd server. It is used to proxy requests from Apache to a backend WebLogic server. For more information, see the vendor's site found at the following link. http://edocs.bea.com/wls/docs60/adminguide/apache.html II. DESCRIPTION Remote exploitation of a stack based buffer overflow vulnerability in Oracle Corp.'s WebLogic Server Apache Connector could allow an attacker to execute arbitrary code with the privileges of the affected service. A stack based buffer overflow vulnerability exists in the Apache Connector of Oracle (formerly BEA) WebLogic Server. When parsing a request with an invalid parameter the module uses a string without properly validating its length. This string is copied into a fixed sized stack buffer. This results in a stack based buffer overflow. III. ANALYSIS Exploitation of this vulnerability results in the execution of arbitrary code with the privileges of the affected service, usually SYSTEM. The vulnerability is a stack based buffer overflow, and many of the modules are not compiled with SAFESEH enabled, so it is trivial to exploit resulting in attacker supplied code being executed. IV. DETECTION iDefense has confirmed the existence of this vulnerability in WebLogic Server Apache Connector version 10.0. Previous versions may also be affected. V. WORKAROUND Editing the httpd.conf file and adding 'LimitRequestFieldsize 4000' in the global configuration area will prevent exploitation. However, users will be unable to submit request parameters that are longer than 4000 bytes. VI. VENDOR RESPONSE Oracle has released a Critical Patch Update (CPU) for October 2008 which addresses these issues. For more information, consult their advisory at the following URL. http://www.oracle.com/technology/deploy/security/critical-patch-updates/cpuoct2008.html VII. CVE INFORMATION The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2008-4008 to this issue. This is a candidate for inclusion in the CVE list (http://cve.mitre.org/), which standardizes names for security problems. VIII. DISCLOSURE TIMELINE 07/31/2008 Initial Vendor Notification 08/01/2008 Initial Vendor Reply 08/29/2008 Additional Vendor Feedback 10/29/2008 Coordinated Public Disclosure IX. CREDIT This vulnerability was discovered by Sean Larsson and Joshua J. Drake of iDefense Labs. Get paid for vulnerability research http://labs.idefense.com/methodology/vulnerability/vcp.php Free tools, research and upcoming events http://labs.idefense.com/ X. LEGAL NOTICES Copyright © 2008 iDefense, Inc. Permission is granted for the redistribution of this alert electronically. It may not be edited in any way without the express written consent of iDefense. If you wish to reprint the whole or any part of this alert in any other medium other than electronically, please e-mail customerservice@idefense.com for permission. Disclaimer: The information in the advisory is believed to be accurate at the time of publishing based on currently available information. Use of the information constitutes acceptance for use in an AS IS condition. There are no warranties with regard to this information. Neither the author nor the publisher accepts any liability for any direct, indirect, or consequential loss or damage arising from use of, or reliance on, this information.