Vulnerabilities > CVE-2004-0637 - Code Injection vulnerability in Oracle Oracle8I and Oracle9I
Attack vector
NETWORK Attack complexity
LOW Privileges required
SINGLE Confidentiality impact
PARTIAL Integrity impact
PARTIAL Availability impact
PARTIAL Summary
Oracle Database Server 8.1.7.4 through 9.2.0.4 allows local users to execute commands with additional privileges via the ctxsys.driload package, which is publicly accessible.
Vulnerable Configurations
Part | Description | Count |
---|---|---|
Application | 6 |
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Leverage Executable Code in Non-Executable Files An attack of this type exploits a system's trust in configuration and resource files, when the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high. The attack can be directed at a client system, such as causing buffer overrun through loading seemingly benign image files, as in Microsoft Security Bulletin MS04-028 where specially crafted JPEG files could cause a buffer overrun once loaded into the browser. Another example targets clients reading pdf files. In this case the attacker simply appends javascript to the end of a legitimate url for a pdf (http://www.gnucitizen.org/blog/danger-danger-danger/) http://path/to/pdf/file.pdf#whatever_name_you_want=javascript:your_code_here The client assumes that they are reading a pdf, but the attacker has modified the resource and loaded executable javascript into the client's browser process. The attack can also target server processes. The attacker edits the resource or configuration file, for example a web.xml file used to configure security permissions for a J2EE app server, adding role name "public" grants all users with the public role the ability to use the administration functionality. The server trusts its configuration file to be correct, but when they are manipulated, the attacker gains full control.
- Manipulating User-Controlled Variables This attack targets user controlled variables (DEBUG=1, PHP Globals, and So Forth). An attacker can override environment variables leveraging user-supplied, untrusted query variables directly used on the application server without any data sanitization. In extreme cases, the attacker can change variables controlling the business logic of the application. For instance, in languages like PHP, a number of poorly set default configurations may allow the user to override variables.
Exploit-Db
description | Oracle Database Server 8.1.7/9.0.x ctxsys.driload Access Validation Vulnerability. CVE-2004-0637 . Remote exploits for multiple platform |
id | EDB-ID:24567 |
last seen | 2016-02-02 |
modified | 2004-09-03 |
published | 2004-09-03 |
reporter | Alexander Kornbrust |
source | https://www.exploit-db.com/download/24567/ |
title | Oracle Database Server 8.1.7/9.0.x ctxsys.driload Access Validation Vulnerability |
Nessus
NASL family Databases NASL id ORACLE_CREATE_JOB_VULN.NASL description The remote Oracle Database, according to its version number, contains a remote command execution vulnerability that may allow an attacker who can execute SQL statements with certain privileges to execute arbitrary commands on the remote host. last seen 2020-06-01 modified 2020-06-02 plugin id 14641 published 2004-09-02 reporter This script is (C) 2004-2016 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/14641 title Oracle Database Multiple Remote Vulnerabilities (Mar 2005) code # # (C) Tenable Network Security, Inc. # if (NASL_LEVEL < 2200) exit(0); include("compat.inc"); if (description) { script_id(14641); script_version ("1.35"); script_cvs_date("Date: 2018/07/16 14:09:13"); script_cve_id( "CVE-2004-0637", "CVE-2004-0638", "CVE-2004-1362", "CVE-2004-1363", "CVE-2004-1364", "CVE-2004-1365", "CVE-2004-1366", "CVE-2004-1367", "CVE-2004-1368", "CVE-2004-1369", "CVE-2004-1370", "CVE-2004-1371" ); script_bugtraq_id( 10871, 11091, 11100, 11099, 11120 ); script_name(english: "Oracle Database Multiple Remote Vulnerabilities (Mar 2005)"); script_set_attribute(attribute:"synopsis", value: "The remote database server is affected by multiple vulnerabilities." ); script_set_attribute(attribute:"description", value: "The remote Oracle Database, according to its version number, contains a remote command execution vulnerability that may allow an attacker who can execute SQL statements with certain privileges to execute arbitrary commands on the remote host." ); # http://web.archive.org/web/20041108030501/http://www.oracle.com/technology/deploy/security/pdf/2004alert68.pdf script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?e1d0c17a" ); script_set_attribute(attribute:"solution", value: "Apply vendor-supplied patches." ); script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P"); script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C"); script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available"); script_set_attribute(attribute:"exploit_available", value:"true"); script_set_attribute(attribute:"exploit_framework_core", value:"true"); script_set_attribute(attribute:"exploithub_sku", value:"EH-10-031"); script_set_attribute(attribute:"exploit_framework_exploithub", value:"true"); script_cwe_id(22, 94, 119, 200, 255); script_set_attribute(attribute:"plugin_publication_date", value: "2004/09/02"); script_set_attribute(attribute:"vuln_publication_date", value: "2004/09/01"); script_set_attribute(attribute:"patch_publication_date", value: "2004/09/24"); script_set_attribute(attribute:"plugin_type", value:"remote"); script_set_attribute(attribute:"cpe", value:"cpe:/a:oracle:database_server"); script_end_attributes(); script_summary(english: "Checks the version of the remote Database"); script_category(ACT_GATHER_INFO); script_family(english: "Databases"); script_copyright(english: "This script is (C) 2004-2016 Tenable Network Security, Inc."); script_dependencie("oracle_tnslsnr_version.nasl"); script_require_ports("Services/oracle_tnslsnr"); exit(0); } include('global_settings.inc'); if ( report_paranoia < 1 ) exit(0); port = get_kb_item("Services/oracle_tnslsnr"); if ( isnull(port)) exit(0); version = get_kb_item(string("oracle_tnslsnr/",port,"/version")); if (version) { if (ereg(pattern:".*Version (8\.(0\.([0-5]\.|6\.[0-3])|1\.([0-6]\.|7\.[0-4]))|9\.(0\.(0\.|1\.[0-5]|2\.[0-3]|3\.[0-1]|4\.[0-1])|2\.0\.[0-5])|10\.(0\.|1\.0\.[0-2]))", string:version)) security_hole(port); }
NASL family Databases NASL id ORACLE_DATABASE_MULTIPLE_VULNS.NASL description The remote Oracle Database, according to its version number, is vulnerable to several flaws, ranging from information disclosure about the remote host to code execution. last seen 2020-06-01 modified 2020-06-02 plugin id 16209 published 2005-01-19 reporter This script is (C) 2005-2016 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/16209 title Oracle Database Multiple Vulnerabilities (January 2005 CPU) code # # (C) Tenable Network Security, Inc. # include("compat.inc"); if (description) { script_id(16209); script_version ("1.31"); script_cve_id( "CVE-2004-0637", "CVE-2004-0638", "CVE-2004-1362", "CVE-2004-1363", "CVE-2004-1364", "CVE-2004-1365", "CVE-2004-1366", "CVE-2004-1367", "CVE-2004-1368", "CVE-2004-1369", "CVE-2004-1370", "CVE-2004-1371" ); script_bugtraq_id( 12301, 10871, 11120, 11099, 11100, 11091, 12296 ); script_name(english:"Oracle Database Multiple Vulnerabilities (January 2005 CPU)"); script_set_attribute(attribute:"synopsis", value: "The remote host has an application that is affected by multiple vulnerabilities." ); script_set_attribute(attribute:"description", value: "The remote Oracle Database, according to its version number, is vulnerable to several flaws, ranging from information disclosure about the remote host to code execution." ); # https://www.oracle.com/technetwork/topics/security/cpu-jan-2005-advisory-129526.pdf script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?976ed6e6" ); script_set_attribute(attribute:"solution", value: "Apply the appropriate patch according to the January 2005 Oracle Critical Patch Update advisory." ); script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P"); script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C"); script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available"); script_set_attribute(attribute:"exploit_available", value:"true"); script_set_attribute(attribute:"exploit_framework_core", value:"true"); script_set_attribute(attribute:"exploithub_sku", value:"EH-10-031"); script_set_attribute(attribute:"exploit_framework_exploithub", value:"true"); script_cwe_id(22, 94, 119, 200, 255); script_set_attribute(attribute:"plugin_publication_date", value: "2005/01/19"); script_set_attribute(attribute:"patch_publication_date", value: "2005/01/18"); script_cvs_date("Date: 2018/11/15 20:50:21"); script_set_attribute(attribute:"plugin_type", value:"remote"); script_set_attribute(attribute:"cpe", value:"cpe:/a:oracle:database_server"); script_end_attributes(); script_summary(english: "Checks the version of the remote Database"); script_category(ACT_GATHER_INFO); script_family(english: "Databases"); script_copyright(english: "This script is (C) 2005-2016 Tenable Network Security, Inc."); script_dependencie("oracle_tnslsnr_version.nasl"); script_require_ports("Services/oracle_tnslsnr"); exit(0); } include('global_settings.inc'); if ( report_paranoia < 1 ) exit(0); port = get_kb_item("Services/oracle_tnslsnr"); if ( isnull(port)) exit(0); version = get_kb_item(string("oracle_tnslsnr/",port,"/version")); if (version) { iversion = split(version, sep:'.', keep:FALSE); if ( int(iversion[0]) == 8 ) { if (int(iversion[1]) == 0 ) # 8.0.6.3 { if ( int(iversion[2]) < 6 || ( int(iversion[2]) == 6 && int(iversion[3]) <= 3) ) security_hole ( 0 ); } else if ( int(iversion[1]) == 1 ) # 8.1.7.4 { if ( int(iversion[2]) < 7 || ( int(iversion[2]) == 7 && int(iversion[3]) <= 4 ) ) security_hole ( 0 ); } } else if ( int(iversion[0]) == 9 ) { if ( int(iversion[1]) == 0 ) # 9.0.1.5 { if ( int(iversion[2]) < 1 || ( int(iversion[1]) == 1 && int(iversion[2]) <=5 ) ) security_hole ( 0 ); } else if (int(iversion[1]) == 2 ) # 9.2.0.6 { if ( int(iversion[2]) == 0 && int(iversion[3]) <= 6 ) security_hole ( 0 ); } } else if ( int(iversion[0]) == 10 ) { # 10.1.0.3.1 if ( int(iversion[1]) == 1 ) { if ( int(iversion[2]) == 0 && int(iversion[3]) < 3 ) security_hole( 0 ); if ( !isnull(iversion[4]) ) { if ( int(iversion[2]) == 0 && int(iversion[3]) == 3 && int(iversion[4]) <= 1 ) security_hole( 0 ); } else if ( int(iversion[2]) == 0 && int(iversion[3]) == 3 ) security_hole ( 0 ); } } }