Novell eDirectory iMonitor HTTP Protocol Stack (httpstk) Host HTTP Header Remote Overflow - Nessus

High   Plugin ID: 22903

This page contains detailed information about the Novell eDirectory iMonitor HTTP Protocol Stack (httpstk) Host HTTP Header Remote Overflow Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 22903
Name: Novell eDirectory iMonitor HTTP Protocol Stack (httpstk) Host HTTP Header Remote Overflow
Filename: edirectory_hostname_overflow.nasl
Vulnerability Published: 2006-10-23
This Plugin Published: 2006-10-23
Last Modification Time: 2021-01-19
Plugin Version: 1.28
Plugin Type: remote
Plugin Family: CGI abuses
Dependencies: http_version.nasl

Vulnerability Information


Severity: High
Vulnerability Published: 2006-10-23
Patch Published: 2006-10-23
CVE [?]: CVE-2006-5478
CPE [?]: cpe:/a:novell:edirectory

Synopsis

The remote web server is affected by a buffer overflow vulnerability.

Description

The installed version of Novell eDirectory on the remote host reportedly contains a buffer overflow that can be triggered with a specially crafted Host request header. An anonymous remote attacker may be able to leverage this flaw to execute code on the affected host, generally with super-user privileges.

Solution

Apply the eDirectory Post 8.7.3.8 FTF1 / 8.8.1 FTF1 patch as appropriate.

Public Exploits


Target Network Port(s): 8028
Target Asset(s): Services/www
Exploit Available: True (Metasploit Framework, Exploit-DB, Immunity Canvas, Core Impact)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the Novell eDirectory iMonitor HTTP Protocol Stack (httpstk) Host HTTP Header Remote Overflow vulnerability:

  1. Metasploit: exploit/windows/http/edirectory_host
    [Novell eDirectory NDS Server Host Header Overflow]
  2. Exploit-DB: exploits/windows/remote/16773.rb
    [EDB-16773: Novell eDirectory NDS Server - Host Header Overflow (Metasploit)]
  3. Exploit-DB: exploits/novell/remote/28837.rb
    [EDB-28837: Novell eDirectory 8.x - iMonitor HTTPSTK Buffer Overflow (3)]
  4. Immunity Canvas: CANVAS

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.

WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.

Risk Information


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

Go back to menu.

Plugin Source


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

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

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

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

  script_cve_id("CVE-2006-5478");
  script_bugtraq_id(20655);
  script_xref(name:"Secunia", value:"22519");

  script_name(english:"Novell eDirectory iMonitor HTTP Protocol Stack (httpstk) Host HTTP Header Remote Overflow");
  script_summary(english:"Send a special Host request header to eDirectory");

  script_set_attribute(
    attribute:"synopsis",
    value:"The remote web server is affected by a buffer overflow vulnerability."
  );
  script_set_attribute(
    attribute:"description",
    value:
"The installed version of Novell eDirectory on the remote host
reportedly contains a buffer overflow that can be triggered with a
specially crafted Host request header.  An anonymous remote attacker
may be able to leverage this flaw to execute code on the affected
host, generally with super-user privileges."
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://www.mnin.org/advisories/2006_novell_httpstk.pdf"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://seclists.org/fulldisclosure/2006/Oct/433"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"http://download.novell.com/patch/finder/"
  );
  script_set_attribute(
    attribute:"solution",
    value:
"Apply the eDirectory Post 8.7.3.8 FTF1 / 8.8.1 FTF1 patch as
appropriate."
  );
  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: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:"exploit_framework_core", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'Novell eDirectory NDS Server Host Header Overflow');
  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:'CANVAS');

  script_set_attribute(attribute:"plugin_publication_date", value: "2006/10/23");
  script_set_attribute(attribute:"patch_publication_date", value: "2006/10/23");
  script_set_attribute(attribute:"vuln_publication_date", value: "2006/10/23");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:novell:edirectory");
  script_end_attributes();

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

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

  script_dependencies("http_version.nasl");
  script_require_ports("Services/www", 8028);

  exit(0);
}

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


port = get_http_port(default:8028, embedded:TRUE);


# Make sure the server looks like eDirectory.
banner = get_http_banner (port:port);
if (!egrep(pattern:"Server: .*HttpStk/[0-9]+\.[0-9]+", string:banner))
  exit(0, "The web server on port "+port+" is not HttpStk.");


# Get the format of a normal host location

r = http_send_recv3(port:port, method:"GET", exit_on_fail: 1, item:"/nds",
  add_headers: make_array("Host", "nessus"), follow_redirect: 0);

res = egrep(pattern: "^Location: https?://nessus:[0-9]+/nds", string: r[1]);
if (res == NULL)
  exit (0, "Could not find redirection in response from port "+port+".");

# Create a special host location string

v = eregmatch(string: res, pattern:"^Location: (https?://)nessus:([0-9]+)/nds");
if (isnull(v)) exit(1, "Could not parse Location header from port "+port+".");
http = v[1]; sport = v[2];

magic = crap(data:"A", length:62 - strlen(http) - strlen(sport));
r = http_send_recv3(method:"GET", item:"/nds", port:port, exit_on_fail: 1,
  add_headers: make_array("Host", magic), follow_redirect: 0);

res = egrep(pattern:"^Location:", string:r[1]);
if (res == NULL)
  exit (1, "Could not find Location line from port "+port+".");
v = eregmatch(string: res, pattern:"^Location: *(https?://A+:[0-9]+/nds)");
if (isnull(v)) exit(1, "Could not parse Location header from port "+port+".");
s = v[1];
# Patched version should skip 1 character in the port number
if (strlen(s) == 67)
  security_hole(port);

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

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

Go back to menu.

How to Run


Here is how to run the Novell eDirectory iMonitor HTTP Protocol Stack (httpstk) Host HTTP Header Remote Overflow 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 Novell eDirectory iMonitor HTTP Protocol Stack (httpstk) Host HTTP Header Remote Overflow plugin ID 22903.
  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 edirectory_hostname_overflow.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

/opt/nessus/bin/nasl -T - edirectory_hostname_overflow.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 edirectory_hostname_overflow.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: Secunia Advisory: See also: Similar and related Nessus plugins:
  • 61709 - Novell eDirectory < 8.8 SP6 Patch 5 Multiple Vulnerabilities
  • 63338 - Novell eDirectory 8.8.x Multiple Security Vulnerabilities
  • 31863 - Novell eDirectory Host Environment Service (dhost.exe) HTTP Connection Header DoS
  • 19428 - Novell eDirectory Server iMonitor Multiple Remote Overflows
  • 50690 - Novell GroupWise Document Viewer Agent Arbitrary File Download
  • 50694 - Novell GroupWise WebAccess Arbitrary File Download
  • 47581 - Novell 'modulemanager' Servlet Arbitrary File Upload (intrusive check)
  • 47582 - Novell 'modulemanager' Servlet Arbitrary File Upload (safe check)
  • 62968 - Novell Sentinel Log Manager Authentication Bypass
  • 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)
  • 65551 - Novell ZENworks Mobile Management MDM.php Local File Inclusion
  • 44875 - trixbox Cisco Phone Services PhoneDirectory.php ID Parameter SQL Injection
  • 76311 - Ericom AccessNow Server < 3.3.1.4095 Stack-Based Buffer Overflow
  • 11370 - Microsoft IIS fpcount.exe CGI Remote Overflow
  • 18123 - MailEnable HTTPMail Service Authorization Header Remote Overflow
  • 15564 - Ipswitch WhatsUp Gold _maincfgret.cgi Remote Overflow
  • 139377 - ManageEngine Desktop Central < 10 Build 10.0.533 Integer Overflow
  • 24910 - TestDirector (TD) for Mercury Quality Center SPIDERLib.Loader ActiveX Control (Spider90.ocx) ProgColor Property Overflow (2)
  • 24813 - Apache mod_jk Long URL Worker Map Stack Remote Overflow
  • 63563 - Nagios Core history.cgi Multiple Parameter Buffer Overflow
  • 29249 - HP OpenView Network Node Manager Multiple CGI Remote Overflows
  • 10564 - Microsoft IIS Phone Book Service /pbserver/pbserver.dll Remote Overflow
  • 17796 - PHP 4.x < 4.3.0 ZendEngine Integer Overflow
  • 60086 - PHP 5.4.x < 5.4.5 _php_stream_scandir Overflow
  • 69348 - PHP 5.5.x < 5.5.1 xml.c Buffer Overflow
  • 109579 - PHP 7.2.x < 7.2.5 Stack Buffer Overflow
  • 40552 - Spiceworks HTTP Response Accept Header Handling Overflow DoS
  • 110557 - VX Search HTTP POST Request Handling Remote Stack Buffer Overflow
  • 22309 - SAP DB / MaxDB WebDBM Client Database Name Remote Overflow
  • 25681 - SAP DB / MaxDB Web Server DBM_INTERN_TEST Event Buffer Overflow
  • 73499 - IBM WebSphere Portal Outside In Technology Multiple Overflows (PI07290)
  • 25117 - XAMPP ADOdb mssql_connect Remote Buffer Overflow

Version


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

Go back to menu.