Lucene search

K
nessusThis script is Copyright (C) 2019 and is owned by Tenable, Inc. or an Affiliate thereof.BIND9_CVE-2018-5738.NASL
HistoryFeb 15, 2019 - 12:00 a.m.

ISC BIND Allow-Recursion Vulnerability

2019-02-1500:00:00
This script is Copyright (C) 2019 and is owned by Tenable, Inc. or an Affiliate thereof.
www.tenable.com
1331

According to its self-reported version, the instance of ISC BIND 9 running on the remote name server is 9.9.12, 9.10.7, 9.11.3, 9.12.0 prior to or equal to 9.12.1-P2, development release 9.13.0, 9.9.12-S1, 9.11.3-S1, or 9.11.3-S2. It is, therefore, affected by an allow-recursion vulnerability which exists in the named.conf due to a regression issue introduced by change #4777.

An unauthenticated, remote attacker can exploit this to cause undesirable behavior such as a degradation or denial of service, DNS reflection attacks, or potentially leak private information about what queries have been performed.

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

include("compat.inc");

if (description)
{
  script_id(122240);
  script_version("1.3");
  script_cvs_date("Date: 2019/10/31 15:18:51");

  script_cve_id("CVE-2018-5738");

  script_name(english:"ISC BIND Allow-Recursion Vulnerability");
  script_summary(english:"Checks the version of BIND.");

  script_set_attribute(attribute:"synopsis", value:
"The remote name server is affected by an allow-recursion vulnerability.");
  script_set_attribute(attribute:"description", value:
"According to its self-reported version, the instance of ISC BIND 9
running on the remote name server is 9.9.12, 9.10.7, 9.11.3, 9.12.0
prior to or equal to 9.12.1-P2, development release 9.13.0, 9.9.12-S1,
9.11.3-S1, or 9.11.3-S2.  It is, therefore, affected by an allow-recursion
vulnerability which exists in the named.conf due to a regression issue
introduced by change #4777.

An unauthenticated, remote attacker can exploit this to cause
undesirable behavior such as a degradation or denial of service,
DNS reflection attacks, or potentially leak private information
about what queries have been performed.");
  script_set_attribute(attribute:"see_also", value:"https://kb.isc.org/docs/AA-01616");
  script_set_attribute(attribute:"solution", value:
"Upgrade to ISC BIND version 9.9.13 / 9.10.8 / 9.11.4 / 9.12.2  
or later or apply the workaround as per the vendor advisory.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N");
  script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2018-5738");

  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");

  script_set_attribute(attribute:"vuln_publication_date", value:"2018/06/12");
  script_set_attribute(attribute:"patch_publication_date", value:"2018/06/12");
  script_set_attribute(attribute:"plugin_publication_date", value:"2019/02/15");

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

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

  script_copyright(english:"This script is Copyright (C) 2019 and is owned by Tenable, Inc. or an Affiliate thereof.");

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

  exit(0);
}

include("vcf.inc");
include("vcf_extras.inc");

if (report_paranoia < 2) audit(AUDIT_PARANOID); # patch can be applied

vcf::bind::initialize();

app_info = vcf::get_app_info(app:"BIND", port:53, kb_ver:"bind/version", service:TRUE, proto:"UDP");

constraints = [
  { "min_version" : "9.9.12", "fixed_version" : "9.9.13" },
  { "min_version" : "9.10.7", "fixed_version" : "9.10.8" },
  { "min_version" : "9.11.3", "fixed_version" : "9.11.4" },
  { "min_version" : "9.12.0", "max_version" : "9.12.1-P2", "fixed_version" : "9.12.2" },
  { "min_version" : "9.9.12-S1", "fixed_version" : "9.9.13" },
  { "min_version" : "9.10.7-S1", "fixed_version" : "9.10.8" },
  { "min_version" : "9.11.3-S1", "max_version" : "9.11.3-S2", "fixed_version" : "9.12.2" },
];
constraints = vcf::bind::filter_constraints(constraints:constraints, version:app_info.version);

vcf::check_version_and_report(app_info:app_info, constraints:constraints, severity:SECURITY_WARNING);

VendorProductVersionCPE
iscbindcpe:/a:isc:bind