search menu icon-carat-right cmu-wordmark

CERT Coordination Center

Oracle9i Database TNS Listener vulnerable to buffer overflow via SERVICE_NAME parameter

Vulnerability Note VU#630091

Original Release Date: 2002-06-04 | Last Revised: 2002-06-13

Overview

A buffer overflow vulnerability exists in the TNS Listener component of Oracle9i Database. This vulnerability could allow an unauthenticated, remote attacker to execute arbitrary code with the privileges of the TNS Listener process or cause a denial of service.

Description

Oracle9i Database authenticates and manages database connections via Oracle Transparent Network Substrate (TNS ) Listeners. According to a report by NGSSoftware, a buffer overflow condition occurs when a TNS Listener process attempts to log an error condition caused by a TNS request containing an overly long SERVICE_NAME parameter. An attacker may be able to exploit this vulnerability by sending a specially crafted TNS request to a vulnerable Oracle Listener.

According Oracle Security Alert #34, Microsoft Windows and IBM VM versions of Oracle9i Database (9.0.x) are affected by this vulnerability.

Impact

An unauthenticated remote attacker could execute arbitrary code or cause a denial of service on a vulnerable system. Oracle Listener processes may run with SYSTEM privileges on Windows NT and Windows 2000 systems.

Solution


Apply a Patch

Oracle Security Alert #34 provides information on patches that address this vulnerability.


Restrict Access

Where possible, limit access to trusted users, hosts, and networks. Use firewall or router ACLs (access control lists) to restrict connections to the port used by Oracle TNS Listeners, 1521/tcp by default. Enable the Oracle Net feature called "TCP valid node checking" by modifying $ORACLE_HOME/NETWORK/ADMIN/SQLNET.ORA ($ORACLE_HOME/NETWORK/ADMIN/PROTOCOL.ORA in Oracle8i and prior releases) as follows:

tcp.validnode_checking = YES
tcp.invited_nodes = {list of IP addresses}
tcp.excluded_nodes = {list of IP addresses}

Note that restricting access to Oracle TNS Listeners will not prevent exploitation of this vulnerability.

Vendor Information

630091
 

Oracle Affected

Notified:  May 31, 2002 Updated: June 13, 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

Oracle has released Oracle Security Alert #34.

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

The CERT/CC thanks David Litchfield of NGSSoftware for information used in this document.

This document was written by Art Manion.

Other Information

CVE IDs: CVE-2002-0965
Severity Metric: 11.66
Date Public: 2002-05-27
Date First Published: 2002-06-04
Date Last Updated: 2002-06-13 22:57 UTC
Document Revision: 34

Sponsored by CISA.