Lucene search
K

ISC BIND 9 libdns Regular Expression Handling DoS

🗓️ 29 Mar 2013 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 41 Views

ISC BIND 9 libdns Regular Expression Handling DoS. Remote BIND server prone to memory exhaustion via crafted regular expression

Related
Refs
Code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(65736);
  script_version("1.8");
  script_cvs_date("Date: 2018/06/27 18:42:25");

  script_cve_id("CVE-2013-2266");
  script_bugtraq_id(58736);

  script_name(english:"ISC BIND 9 libdns Regular Expression Handling DoS");
  script_summary(english:"Checks version of BIND");

  script_set_attribute(attribute:"synopsis", value:
"The remote name server is prone to a denial of service attack.");
  script_set_attribute(attribute:"description", value:
"According to its self-reported version number, the remote installation
of BIND can be forced to crash via memory exhaustion caused by specially
crafted regular expressions. 

Note this vulnerability only affects Unix and Unix-like systems when the
application has been compiled to include regular expression support. 

Further note that Nessus has only relied on the version itself and has
not attempted to determine whether or not the install is actually
affected.");
  script_set_attribute(attribute:"see_also", value:"http://www.isc.org/software/bind/advisories/cve-2013-2266");
  script_set_attribute(attribute:"see_also", value:"https://kb.isc.org/article/AA-00871");
  script_set_attribute(attribute:"see_also", value:"http://ftp.isc.org/isc/bind9/9.8.4-P2/CHANGES");
  script_set_attribute(attribute:"see_also", value:"http://ftp.isc.org/isc/bind9/9.9.2-P2/CHANGES");
  script_set_attribute(attribute:"solution", value:
"Upgrade to BIND 9.8.4-P2 / 9.8.5b2 / 9.9.2-P2 / 9.9.3b2 or later, or
apply the vendor-supplied patch.  Alternatively, the application can be
recompiled without regular expression support as a workaround.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:C");
  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_set_attribute(attribute:"vuln_publication_date", value:"2013/03/26");
  script_set_attribute(attribute:"patch_publication_date", value:"2013/03/26");
  script_set_attribute(attribute:"plugin_publication_date", value:"2013/03/29");

  script_set_attribute(attribute:"cpe", value:"cpe:/a:isc:bind");
  script_set_attribute(attribute:"potential_vulnerability", value:"true");
  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"DNS");

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

  script_dependencies("bind_version.nasl");
  script_require_keys("bind/version", "Settings/ParanoidReport");

  exit(0);
}

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


ver = get_kb_item_or_exit("bind/version");

if (report_paranoia < 2) audit(AUDIT_PARANOID);

# Check whether BIND is vulnerable, and recommend an upgrade.
# Vuln 9.8.0 < 9.8.4-P2 and 9.9.0 < 9.9.2-P2
# Also vuln: 9.8.5.x =< 9.8.5b1 and 9.9.3.x =< 9.9.3b1
fix = NULL;

# Vuln 9.7.x
if (ver =~ "^9\.7($|[^0-9])")
  fix = '9.8.4-P2 / 9.9.2-P2';
# Vuln 9.8.0 < 9.8.4-P2
else if (ver =~ "^9\.8\.([0-3]($|[^0-9])|4($|\.|a[1-9]|b[1-9]|rc[1-9]|-P[[01]($|[^0-9])))")
  fix = '9.8.4-P2';
# Vuln 9.8.5.x =< 9.8.5b1
else if (ver =~ "^9\.8\.5(a[1-9]|b1)($|[^0-9])")
  fix = '9.8.5b2';
# Vuln 9.9.0 < 9.9.2-P2
else if (ver =~ "^9\.9\.([0-1]($|[^0-9])|2($|\.|a[1-9]|b[1-9]|rc[1-9]|-P[01]($|[^0-9])))")
  fix = '9.9.2-P2';
# Vuln 9.9.3.x =< 9.9.3b1
else if (ver =~ "^9\.9\.3(a[1-9]|b1)($|[^0-9])")
  fix = '9.9.3b2';
else
  audit(AUDIT_LISTEN_NOT_VULN, "BIND", 53, ver, "UDP");

if (report_verbosity > 0)
{
  report =
    '\n  Installed version : ' + ver +
    '\n  Fixed version     : ' + fix +
    '\n';
  security_hole(port:53, proto:"udp", extra:report);
}
else security_hole(port:53, proto:"udp");

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

27 Jun 2018 18:42Current
6.5Medium risk
Vulners AI Score6.5
CVSS 27.8
EPSS0.44844
41