Lucene search

K
nessusThis script is Copyright (C) 2010-2021 Tenable Network Security, Inc.ADMANAGER_PLUS_COMPUTERNAME_XSS.NASL
HistoryJun 02, 2010 - 12:00 a.m.

ManageEngine ADManager Plus 'computerName' Parameter XSS

2010-06-0200:00:00
This script is Copyright (C) 2010-2021 Tenable Network Security, Inc.
www.tenable.com
22

4.3 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

PARTIAL

Availability Impact

NONE

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

0.003 Low

EPSS

Percentile

68.3%

The version of ADManager Plus running on the remote web server has a cross-site scripting vulnerability. Input to the ‘computerName’ parameter of ‘/jsp/admin/tools/remote_share.jsp’ is not properly sanitized.

A remote attacker could exploit this by tricking a user into requesting a maliciously crafted URL, resulting in the execution of arbitrary script code.

#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#


include('deprecated_nasl_level.inc');
include('compat.inc');


if (description)
{
  script_id(46787);
  script_version("1.11");
  script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/19");

  script_cve_id("CVE-2010-5050");
  script_bugtraq_id(40355);
  script_xref(name:"Secunia", value:"39901");

  script_name(english:"ManageEngine ADManager Plus 'computerName' Parameter XSS");
  script_summary(english:"Attempts a non-persistent XSS");

  script_set_attribute(
    attribute:"synopsis",
    value:
"A web application on the remote host has a cross-site scripting
vulnerability."
  );
  script_set_attribute(
    attribute:"description",
    value:
"The version of ADManager Plus running on the remote web server has a
cross-site scripting vulnerability.  Input to the 'computerName'
parameter of '/jsp/admin/tools/remote_share.jsp' is not properly
sanitized.

A remote attacker could exploit this by tricking a user into
requesting a maliciously crafted URL, resulting in the execution of
arbitrary script code."
  );
  script_set_attribute(attribute:"solution", value:"There is no known solution at this time.");
 script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N");
 script_set_cvss_temporal_vector("CVSS2#E:H/RL:U/RC:C");
 script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
 script_set_attribute(attribute:"exploit_available", value:"false");
 script_cwe_id(20, 74, 79, 442, 629, 711, 712, 722, 725, 750, 751, 800, 801, 809, 811, 864, 900, 928, 931, 990);

  script_set_attribute(attribute:"vuln_publication_date", value:"2010/05/25");
  script_set_attribute(attribute:"plugin_publication_date", value:"2010/06/02");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_end_attributes();

  script_category(ACT_ATTACK);
  script_family(english:"CGI abuses : XSS");

  script_copyright(english:"This script is Copyright (C) 2010-2021 Tenable Network Security, Inc.");

  script_dependencies("admanager_plus_detect.nasl");
  script_exclude_keys("Settings/disable_cgi_scanning");
  script_require_ports("Services/www", 8080);
  script_require_keys("www/admanager_plus");

  exit(0);
}


include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");
include("http.inc");
include("webapp_func.inc");


port = get_http_port(default:8080);
install = get_install_from_kb(appname:'admanager_plus', port:port, exit_on_fail:TRUE);

dir = install['dir']+'/jsp/admin/tools/';
cgi = 'remote_share.jsp';
xss = '</title><script>alert(\''+SCRIPT_NAME+'-'+unixtime()+'\')</script>';
expected_output = xss+'</title>';

exploited = test_cgi_xss(
  port:port,
  dirs:make_list(dir),
  cgi:cgi,
  qs:'computerName='+xss,
  pass_str:expected_output,
  ctrl_re:'<title>Remote Desktop Sharing - '
);

if (!exploited)
  exit(0, build_url(qs:dir+cgi, port:port) + " is not affected.");

4.3 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

PARTIAL

Availability Impact

NONE

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

0.003 Low

EPSS

Percentile

68.3%

Related for ADMANAGER_PLUS_COMPUTERNAME_XSS.NASL