Vulnerability Note VU#798611

Oracle 9iAS contains cross-site scripting vulnerability in "htp.print"

Original Release date: 06 Mar 2002 | Last revised: 06 Mar 2002

Overview

Oracle 9i Application Servers are vulnerable to a cross-site scripting vulnerability. The server may inadvertently include malicious HTML tags or script(JavaScript, VBScript, Java, etc.) in a dynamically generated page based on unvalidated input from untrustworthy sources. This can be a problem when a web server does not adequately ensure that generated pages are properly encoded to prevent unintended execution of scripts, and when input is not validated to prevent malicious HTML from being presented to the user.

Description

On Oracle 9i Application Servers, it is possible to use a "cross-site" scripting technique to inject malicious script (JavaScript, VBScript, etc.) or HTML into a web page. Specifically, default access to the "htp" PL/SQL package can be used to exploit this vulnerability. This package is used to export HTML and HTML tags.


The essence of cross-site scripting is that an intruder causes a legitimate web server to send a page to a victim's web browser that contains malicious script or HTML of the intruder's choosing. The malicious script runs with the privileges of a legitimate script originating from the legitimate web server.

Oracle 9i Application Servers, and several other server applications are vulnerable to such an technique via various methods. For more details on Cross-Site Scripting please see CERT Advisory CA-2000-02.

Impact

The victim will be presented with information which the compromised site did not wish their visitors to be subjected. This could be used to "sniff" sensitive data from within the web page, including passwords, credit card numbers, and any arbitrary information the user inputs.

Solution

Oracle has released an alert to address this issue (Section 1-e). Oracle has released a the following patches for the following systems at http://metalink.oracle.com:

Oracle9iAS, v1.0.2.x

Platform Patch Number

Sun Solaris 2209455
Windows 2209455

Oracle9i Database, Release 9.0.1

Platform Patch Number

Sun Solaris 2209455
Windows 2209455

Oracle8i Database, Release 8.1.7.x

Platform Patch Number

Sun Solaris 2209455
Windows 2209455

A web master may change the default error page to not include the file name passed in by any user. The client may disable JavaScript (or VBScript or other scripting languages), but it doesn't address the problem of simply inserting malicious HTML, and it can cause undesired functionality.

Systems Affected (Learn More)

VendorStatusDate NotifiedDate Updated
OracleAffected08 Feb 200206 Mar 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

Our thanks to David Litchfield for discovering this instance of a Cross-Site Scripting vulnerability.

This document was written by Jason Rafail.

Other Information

  • CVE IDs: Unknown
  • CERT Advisory: CA-2000-02
  • Date Public: 06 Feb 2002
  • Date First Published: 06 Mar 2002
  • Date Last Updated: 06 Mar 2002
  • Severity Metric: 4.22
  • Document Revision: 18

Feedback

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