SkipNavigation
US-CERT
American Flag
  Vulnerability
Notes
Database

Search Vulnerability Notes

Vulnerability Notes Help Information


 
 View Notes By
  Name

ID Number

CVE Name

Date Public

Date Published

Date Updated

Severity Metric



 Other Documents
  Technical Alerts

Technical Bulletins

Alerts

Security Tips

Vulnerability Note VU#301059

Oracle TNS Listener Control Utility (LSNRCTL) contains format string vulnerability

Overview

The Oracle Listener Control Utility (LSNRCTL) contains a format string vulnerability that could allow an unauthenticated, remote attacker to execute arbitrary code or commands or cause a denial of service.

I. Description

Oracle Transparent Network Substrate (TNS ) Listeners are processes that receive connection requests from clients and return information for the clients to use to make database connections. The Listener Control Utility (LSNRCTL) is used to administer Listeners, and has the ability to establish an Oracle Net connection to remote Listeners. When used to administer a Listener, the Listener Control Utility parses the Listener's configuration file ($ORACLE_HOME/NETWORK/ADMIN/LISTENER.ORA for the default Listener).

The Listener Control Utility contains a format string vulnerability that could be exploited when the utility parses commands that are supplied directly to it or read from a Listener configuration file. By default, unauthenticated users can control Oracle Listeners and modify their configuration files. By inserting crafted entries containing format string specifiers into a Listener configuration file, an attacker could cause the Listener Control Utility to execute arbitrary code or commands or crash the utility, preventing its use by legitimate users. An attacker with sufficient privileges can supply crafted commands containing format string specifiers directly to a vulnerable Listener Control Utility.

In one possible scenario, an attacker could modify a Listener configuration file and wait for a legitimate user, such as a database administrator (DBA), to run the Listener Control Utility. Any code or commands supplied by the attacker would execute with the privileges of the user who ran the Listener Control Utility.

II. Impact

An unauthenticated remote attacker could execute arbitrary code or commands or cause a denial of service on a vulnerable system.

III. Solution

Apply a Patch

Apply the appropriate patch as referenced in Oracle Security Alert #40.

Restrict Access to the Listener Control Utility

Restrict access to Oracle Listeners to trusted users, hosts, and networks. Use firewall or router access control lists (ACLs) to restrict connections to the port(s) used by Oracle 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}
Configure Oracle listeners with encrypted passwords.

Set more restrictive file permissions on Listener configuration files ($ORACLE_HOME/NETWORK/ADMIN/LISTENER.ORA for the default Listener).

Disable the runtime modification of Oracle listener parameters by modifying $ORACLE_HOME/NETWORK/ADMIN/LISTENER.ORA as follows:
    ADMIN_RESTRICTIONS_listener_name=on
Note that these workarounds are designed to limit access; they may not prevent exploitation of this vulnerability.

Systems Affected

VendorStatusDate NotifiedDate Updated
Oracle CorporationVulnerable17-Sep-2002

References


http://www.nextgenss.com/advisories/ora-lsnrfmtstr.txt
http://www.nextgenss.com/vna/ora-lsnrctl.txt
http://otn.oracle.com/deploy/security/pdf/2002alert40rev1.pdf
http://otn.oracle.com/deploy/security/pdf/oow00/orahack.pdf
http://www.securityfocus.com/bid/5460
http://www.iss.net/security_center/static/9832.php
http://securitytracker.com/alerts/2002/Aug/1005037.html

Credit

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

This document was written by Art Manion.

Other Information

Date Public:2002-05-27
Date First Published:2002-06-04
Date Last Updated:2003-06-02
CERT Advisory: 
CVE-ID(s):CAN-2002-0857
NVD-ID(s):CAN-2002-0857
US-CERT Technical Alerts: 
Metric:11.48
Document Revision:47

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

 
Page Corner Image
Copyright 2002 Carnegie Mellon University
Disclaimers and copyright information
Get Adobe Reader Get Adobe Reader