Vulnerability Note VU#547459

Oracle 9iAS creates temporary files when processing JSP requests that are world-readable

Original Release date: 26 Feb 2002 | Last revised: 12 Mar 2002

Overview

Oracle Database Server version 9iAS makes JSP source code publicly available. The source code may be used by attackers to analyze proprietary business logic or uncover Oracle's network configuration, usernames, and/or passwords.

Description

When Oracle receives a request for JSP file, it compiles the file in a temporary directory under the "_pages" directory. The compilation of each JSP file results in a ".java" file, which contains Java bytecode and the original JSP source code. Since the "_pages" directory is publicly available over the Internet, any remote user can download the ".java" file and read the JSP source code.

Impact

An attacker may analyze JSP source code to determine Oracle usernames and passwords, database configuration, or other business logic that may be helpful for mounting more attacks.

Solution

The CERT/CC is currently unaware of a solution to this problem from the vendor.

The following workarounds were suggested by David Litchfield and have not been tested by CERT/CC.

Edit the httpd.conf file found in the $ORACLE_HOME$/apache/apache/conf directory.

To prevent access to the globals.jsa file add the following entry:

<Files ~ "^\globals.jsa">
    Order allow,deny
    Deny from all
</Files>

To prevent access to the .java pages add the following entry:

<Location /_pages>
    Order deny,allow
    Deny from all
</Location>

Note that if the JSP pages are stored in a aliased directory (i.e. not a subdirectory of "htdocs") then it is neccessary to add an entry of

<Location /dirname/_pages>
    Order deny,allow
    Deny from all
</Location>

when "dirname" is the name of the aliased directory.

Systems Affected (Learn More)

VendorStatusDate NotifiedDate Updated
OracleAffected07 Feb 200226 Feb 2002
If you are a vendor and your product is affected, let us know.

CVSS Metrics (Learn More)

Group Score Vector
Base N/A N/A
Temporal N/A N/A
Environmental N/A N/A

References

Credit

Thanks to David Litchfield for reporting this vulnerability.

This document was written by Shawn Van Ittersum.

Other Information

  • CVE IDs: Unknown
  • Date Public: 06 Feb 2002
  • Date First Published: 26 Feb 2002
  • Date Last Updated: 12 Mar 2002
  • Severity Metric: 11.25
  • Document Revision: 11

Feedback

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