search menu icon-carat-right cmu-wordmark

CERT Coordination Center

Apache discloses source code via POST requests to a location with WebDAV and CGI enabled

Vulnerability Note VU#910713

Original Release Date: 2002-10-29 | Last Revised: 2002-11-19

Overview

There is an information leakage in Apache that results from an interaction between WebDAV and CGI.

Description

Apache version 2.0.42 allows remote attackers to obtain the source code of CGI scripts that are stored in locations for which both CGI and WebDAV are enabled. When a POST request is sent to a CGI script on an affected server, this vulnerability will cause the source code of the script to be returned to the attacker.

Impact

Remote attackers can obtain the source code of CGI scripts located on affected servers.

Solution

Apply a patch from your vendor

This vulnerability was addressed in Apache version 2.0.43, available at http://httpd.apache.org/download.cgi. For vendor-specific information regarding this issue, please see the Systems Affected section of this document.

Vendor Information

910713
 

Apache Affected

Notified:  September 26, 2002 Updated: October 29, 2002

Status

Affected

Vendor Statement

We have not received a statement from the vendor.

Vendor Information

The vendor has not provided us with any further information regarding this vulnerability.

Addendum

This vulnerability was addressed in Apache version 2.0.43, available at http://httpd.apache.org/download.cgi.

If you have feedback, comments, or additional information about this vulnerability, please send us email.

Hewlett-Packard Company Affected

Notified:  October 28, 2002 Updated: November 19, 2002

Status

Affected

Vendor Statement

Document ID:  HPSBUX0210-224
Date Loaded:  20021029
     Title:  Sec. Vulnerability in Apache

-----------------------------------------------------------------
 Source: HEWLETT-PACKARD COMPANY
 SECURITY BULLETIN: HPSBUX0210-224
 Originally issued: 30 Oct 2002
 SSRT 2393 Apache Vulnerabilities
-----------------------------------------------------------------

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:  Vulnerability regarding ownership permissions of System V
         shared memory based scoreboards.  The fix resulted in the
         new ShmemUIDisUser directive. (CERT Vul. Note VU#825353
         and CVE CAN-2002-0839)

          Cross-site scripting vulnerability in the default error
         page when using wildcard DNS. (CERT Vul. Note VU#240329
         and CVE CAN-2002-0840)

          Vulnerability regarding some possible overflows in ab.c
         which could be exploited by a malicious server.
         (CERT Vul. Note VU#858881 and CVE CAN-2002-0843)

          Fix the exposure of CGI source when a POST request is sent
         to a location where both DAV and CGI are enabled.
         (CERT Vul. Note VU#910713 and CVE CAN-2002-1156)

IMPACT:   Potential for increased privilege, denial of service (DoS),
         or execution of arbitrary code.

PLATFORM: HP9000 Servers running HP-UX release 11.00, 11.11, 11.20,
         and 11.22 with versions 1.3.26.05 or 2.0.39.05 and earlier,
         of the HP Apache product installed are affected.

SOLUTION: For HP-UX releases 11.00, 11.11, 11.20 and 11.22 as well
         as release 11.11 running IPv6, download new HP Apache
         product (1.3.27.00 or 2.0.43.00 or later) from
         http://www.software.hp.com.

MANUAL ACTIONS: Yes - Update
                      Install repaired binary upgrading to
                      Apache 2.0.43.00 or Apache 1.3.27.00.

AVAILABILITY: Complete product bundles are available now on
             http://www.software.hp.com.

 ------------------------------------------------------------------
A. Background
  The Common Vulnerabilities and Exposures project (cve.mitre.org)
  has identified multiple vulnerabilities in the Apache HTTP
  Server.  It affects the following HP product numbers:

     B9415AA Apache 1.3.x  HP-UX releases 11.00 and 11.11
    B9416AA Apache 2.x    HP-UX releases 11.00 and 11.11
    B9415AA Apache 1.3.x  HP-UX releases 11.20 and 11.22
    B9416AA Apache 2.x    HP-UX releases 11.20 and 11.22
    B9416BA Apache 2.x    IPv6 HP-UX release 11.11

   With this release HP has upgraded to Apache 2.0.43 and
  Apache 1.3.27, and fixes certain known vulnerabilities in the
  Apache HTTP Server.
  The release incorporates fix for the following problems:
    CAN-2002-0839 : Apache 1.3.26
    CAN-2002-0840 : Apache 1.3.26 and Apache 2.0.39
    CAN-2002-0843 : Apache 1.3.26 and Apache 2.0.39
    CAN-2002-1156 : Apache 2.0.39
  More details on this information can be found at
  http://www.apache.org.
  The CVE issues can be found at http://cve.mitre.org

   The Apache Group has released Apache 2.0.43 and Apache
  1.3.27 as the best known version that fixes the problems
  identified in the above mentioned CVE issues.

   Before updating, make sure to stop any previous HP Apache binary.
  Otherwise, the previous binary will continue running, preventing
  the new one from automatically starting, although the
  installation would be successful.

    The command to stop the HP Apache binary is:
       for 1.3.26:
           /opt/apache/bin/apachectl stop
       for 2.0.39:
           /opt/hpapache2/bin/apachectl stop

    HP Apache automatically starts upon installation if port 80
   is available.

    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.

 B. Fixing the problem
   The fixes for all HP-UX versions are in the form of new product
   bundles, instead of patches.  To retrieve them, go to
       http://www.software.hp.com/ISS_products_list.html

    Install HP Apache versions 1.3.27.00 or 2.0.43.00 or later.

    Note: OpenView Network Node Manager (NNM) customers should not
         install these versions.  The version of Apache delivered
         with NNM is under investigation.  This bulletin will be
         updated when more information is available.


 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.

    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.

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

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

 ________________________________________________________________
-----End of Document ID:  HPSBUX0210-224--------------------------------------

Vendor Information

The vendor has not provided us with any further information regarding this vulnerability.

Addendum

The CERT/CC has no additional comments at this time.

If you have feedback, comments, or additional information about this vulnerability, please send us email.


CVSS Metrics

Group Score Vector
Base
Temporal
Environmental

References

Acknowledgements

This document was written by Jeffrey P. Lanza and is based upon information provided by Apache.org.

Other Information

CVE IDs: CVE-2002-1156
Severity Metric: 16.88
Date Public: 2002-09-26
Date First Published: 2002-10-29
Date Last Updated: 2002-11-19 22:19 UTC
Document Revision: 11

Sponsored by CISA.