Lucene search

K
nessusThis script is Copyright (C) 2008-2018 Tenable Network Security, Inc.DNSMASQ_MULTIPLE_DOS.NASL
HistorySep 08, 2008 - 12:00 a.m.

dnsmasq < 2.45 Multiple Remote DoS

2008-09-0800:00:00
This script is Copyright (C) 2008-2018 Tenable Network Security, Inc.
www.tenable.com
30

The remote host is running dnsmasq, a DHCP and DNS server.

The version of dnsmasq installed on the remote host reports itself as 2.43. This version reportedly is affected by 3 denial of service issues :

  • The application can crash when an unknown client attempts to renew a DHCP lease.

  • The application may crash when a host which doesn’t have a lease does a β€˜DHCPINFORM’.

  • There is a crash vulnerability in the netlink code.

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

include("compat.inc");

if (description)
{
 script_id(34111);
 script_version("1.18");
 script_cvs_date("Date: 2018/07/10 14:27:31");

 script_cve_id("CVE-2008-3350");
 script_bugtraq_id(31017);

 script_name(english:"dnsmasq < 2.45 Multiple Remote DoS");
 script_summary(english:"Checks the version of dnsmasq");

 script_set_attribute(attribute:"synopsis", value:
"The remote DNS / DHCP service is affected by multiple denial of
service vulnerabilities.");
 script_set_attribute(attribute:"description", value:
"The remote host is running dnsmasq, a DHCP and DNS server.

The version of dnsmasq installed on the remote host reports itself as
2.43. This version reportedly is affected by 3 denial of service
issues :

  - The application can crash when an unknown client
    attempts to renew a DHCP lease.

  - The application may crash when a host which doesn't
    have a lease does a 'DHCPINFORM'.

  - There is a crash vulnerability in the netlink code.");
 script_set_attribute(attribute:"see_also", value:"http://www.thekelleys.org.uk/dnsmasq/CHANGELOG");
 script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?e8cca54d");
 script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?5db6c7d4");
 script_set_attribute(attribute:"solution", value:"Upgrade to dnsmasq 2.45 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_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L");
 script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/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:"plugin_publication_date", value:"2008/09/08");

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

 script_category(ACT_GATHER_INFO);
 script_copyright(english:"This script is Copyright (C) 2008-2018 Tenable Network Security, Inc.");
 script_family(english:"DNS");

 script_dependencie("dns_version.nasl");
 script_require_keys("dns_server/version", "Settings/ParanoidReport");
 script_require_ports("Services/dns", 53);

 exit(0);
}

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

app_name = "dnsmasq";

port = get_kb_item("Services/udp/dns");
if (!port) port = 53;

if (report_paranoia < 2) audit(AUDIT_PARANOID);

# dnsmasq replies to BIND.VERSION
version = get_kb_item_or_exit("dns_server/version");
version = tolower(version);
display_version = version;

if (version !~ "dnsmasq-(v)?")
  audit(AUDIT_NOT_LISTEN, app_name, port);

version = ereg_replace(pattern:"^dnsmasq-(v)?(.*)$", replace:"\2", string:version);

if (version == '2')
  audit(AUDIT_VER_NOT_GRANULAR, app_name, port, display_version);

if (version =~ "^(2\.43([^0-9]|$))$")
{
  report = '\n' +
    '\n  Installed version : ' + display_version +
    '\n  Fixed version     : dnsmasq-2.45' +
    '\n';
  security_report_v4(port:53, proto:"udp", severity:SECURITY_WARNING, extra:report);
}
else audit(AUDIT_LISTEN_NOT_VULN, app_name, port, display_version, 'udp');
VendorProductVersionCPE
thekelleysdnsmasqcpe:/a:thekelleys:dnsmasq