Lucene search

K
nessusThis script is Copyright (C) 2009-2018 Tenable Network Security, Inc.EDIRECTORY_LDAP_NULL_BASE_DOS.NASL
HistoryNov 06, 2009 - 12:00 a.m.

Novell eDirectory < 8.8.5 ftf1/8.7.3.10 ftf2 NULL Base DN DoS

2009-11-0600:00:00
This script is Copyright (C) 2009-2018 Tenable Network Security, Inc.
www.tenable.com
8

5 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

PARTIAL

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

0.024 Low

EPSS

Percentile

90.1%

The remote host is running eDirectory, a directory service software from Novell.

The installed version of eDirectory is affected by a denial of service issue. By sending a search request with an undefined BaseDN, it may be possible for an attacker to make the directory server unresponsive.

#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(42412);
  script_version("1.11");
  script_cvs_date("Date: 2018/11/15 20:50:21");

  script_cve_id("CVE-2009-3862");
  script_bugtraq_id(36902);

  script_name(english:"Novell eDirectory < 8.8.5 ftf1/8.7.3.10 ftf2 NULL Base DN DoS");
  script_summary(english:"Checks version from an ldap search");
 
  script_set_attribute(attribute:"synopsis", value:
"The remote directory service is affected by a denial of service
vulnerability.");
  script_set_attribute(attribute:"description", value:
"The remote host is running eDirectory, a directory service software
from Novell. 

The installed version of eDirectory is affected by a denial of service
issue. By sending a search request with an undefined BaseDN, it may be
possible for an attacker to make the directory server unresponsive.");
  script_set_attribute(attribute:"see_also", value:"https://www.zerodayinitiative.com/advisories/ZDI-09-075/");
  script_set_attribute(attribute:"see_also", value:"https://support.microfocus.com/kb/doc.php?id=7004721");
  script_set_attribute(attribute:"solution", value:
"Upgrade to eDirectory 8.8.5 ftf1 / 8.7.3.10 ftf2 or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P");
  script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"false");
  script_cwe_id(287);

  script_set_attribute(attribute:"vuln_publication_date", value:"2009/11/02");
  script_set_attribute(attribute:"patch_publication_date", value:"2009/10/21");
  script_set_attribute(attribute:"plugin_publication_date",value:"2009/11/06");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:novell:edirectory");
  script_end_attributes();
 
  script_category(ACT_GATHER_INFO);
  script_family(english:"Denial of Service");
  script_copyright(english:"This script is Copyright (C) 2009-2018 Tenable Network Security, Inc.");

  script_dependencies("ldap_search.nasl");
  script_require_ports("Services/ldap", 389);

  exit(0);
}

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

ldap_port = get_service(svc: 'ldap', default: 389, exit_on_fail: 1);
edir_ldap = get_kb_item_or_exit("LDAP/"+ldap_port+"/vendorVersion", exit_code: 1);

if("Novell eDirectory" >< edir_ldap)
{
  edir_product = strstr(edir_ldap,"Novell eDirectory");
  edir_product = edir_product - strstr(edir_product , "(");
}
else
  exit(0,"The remote directory service does not appear to be from Novell.");

info = NULL;

if ("Novell eDirectory 8.8" >< edir_ldap)
{
 # KB entries
 # LDAP Agent for Novell eDirectory 8.8 SP5 (20219.14) - unpatched
 # LDAP Agent for Novell eDirectory 8.8 SP5 (20501.00) - patched
 
 if(ereg(pattern:"^LDAP Agent for Novell eDirectory 8.8 *SP[0-4][^0-9]",string:edir_ldap) || 
    ereg(pattern:"^LDAP Agent for Novell eDirectory 8.8 *\(([0-9]+)\.([0-9]+)\)$",string:edir_ldap))
    info = string(" ",edir_product," is installed on the remote host.\n");

 else if (ereg(pattern:"LDAP Agent for Novell eDirectory 8.8 SP5",string:edir_ldap))
  { 
    build = NULL;
    matches = eregmatch(pattern:"^LDAP Agent for Novell eDirectory 8.8 *SP5 *\(([0-9]+)\.([0-9]+)\)$",string:edir_ldap);
    build = matches[1];

    if(isnull(build) || int(build) < 20501) 
      info = string(" ",edir_product," is installed on the remote host.\n");
  } 
}
else if ("LDAP Agent for Novell eDirectory 8.7.3.10 " >< edir_ldap)
{
  build = rev = NULL;
  matches = eregmatch(pattern:"^LDAP Agent for Novell eDirectory 8.7.3.10 *\(([0-9]+)\.([0-9]+)\)$",string:edir_ldap);
  build = matches[1];
  rev = matches[2];

  if((isnull(build) || (int(build) < 10557) ) ||
     (int(build) == 10557 && isnull(rev)) || 
     (int(build) == 10557 && int(rev) < 28) 
    )
   info = string(" ",edir_product," is installed on the remote host.\n");
}
else if (ereg(pattern:"^LDAP Agent for Novell eDirectory ([0-7]\.|8\.([0-6][^0-9]|7\.([0-2][^0-9]|3[^.0-9]|3\.[0-9][^0-9])))",string:edir_ldap))
  info = string(" ",edir_product," is installed on the remote host.\n");

if(!isnull(info))
{
  if (report_verbosity > 0)
  {       
    report = string(
      "\n",
      info
    );
    security_warning(port:ldap_port, extra:report);
  }
  else security_warning(ldap_port);
}
else exit(0, "The installed version of Novell eDirectory "+ edir_product + " is not vulnerable." );
VendorProductVersionCPE
novelledirectorycpe:/a:novell:edirectory

5 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

PARTIAL

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

0.024 Low

EPSS

Percentile

90.1%

Related for EDIRECTORY_LDAP_NULL_BASE_DOS.NASL