Lucene search
K

SheerDNS < 1.0.1 Multiple Vulnerabilities

🗓️ 14 Apr 2003 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 180 Views

SheerDNS versions below 1.0.1 have vulnerabilities allowing remote/local attacks and file access.

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

# Ref:
#  Date: Sun, 13 Apr 2003 18:00:13 +0200
#  From: Jedi/Sector One <[email protected]>
#  To: [email protected]
#  Subject: Multiple vulnerabilities in SheerDNS

include("compat.inc");

if(description)
{
 script_id(11535);
 script_version ("1.19");
 script_bugtraq_id(7335, 7336);
 
 script_name(english:"SheerDNS < 1.0.1 Multiple Vulnerabilities");
 
 script_set_attribute(attribute:"synopsis", value:
"The remote server is vulnerable to several flaws." );
 script_set_attribute(attribute:"description", value:
"The remote server seems to be running SheerDNS 1.0.0 or older.

This version is vulnerable to several flaws allowing :
	- A remote attacker to read certain files with predefined names
	  (A, PTR, CNAME, ...)

	- A local attacker to read the first line of arbitrary files with the 
	  privileges of the DNS server (typically root)

	- A local attacker to execute arbitrary code through a buffer overflow" );
 script_set_attribute(attribute:"solution", value:
"Upgrade to SheerDNS 1.0.1 or disable this service" );
 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_attribute(attribute:"exploitability_ease", value:"Exploits are available");
 script_set_attribute(attribute:"exploit_available", value:"true");


 script_set_attribute(attribute:"plugin_publication_date", value: "2003/04/14");
 script_set_attribute(attribute:"vuln_publication_date", value: "2003/04/13");
 script_cvs_date("Date: 2018/08/08 12:52:13");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_end_attributes();

 script_summary(english:"Determines if the remote DNS server handles malformed names");
 script_category(ACT_GATHER_INFO);
 script_copyright(english:"This script is Copyright (C) 2003-2018 Tenable Network Security, Inc.");
 script_family(english:"DNS");
 script_dependencies("dns_server.nasl");
 script_require_keys("DNS/udp/53");
 exit(0);
}

port = 53;
if (! get_udp_port_state(port)) exit(0, "UDP port "+port+" is not open.");


function check(str)
{ 
  local_var req, r, soc;

  req = raw_string(0x00, 0x04,
		 0x01, 0x00,
		 0x00, 0x01,
		 0x00, 0x00,
		 0x00, 0x00,
		 0x00, 0x00, 
		strlen(str)) + str +
 	raw_string(0x00, 0x00, 0x01, 0x00, 0x01);

 soc = open_sock_udp(53);
 if (!  soc ) exit(0);
 send(socket:soc, data:req);
 r = recv(socket:soc, length:4096);
 close(soc);

 return r;
}


r = check(str:"localhost");
if(!r)exit(0); # No reply -> quit
if("localhost" >!< r)exit(0); # Does not echo back the query -> quit

r = check(str:"../nessus");
if(!r)exit(0);	# No reply -> good
if("nessus" >< r)exit(0); # Did not modify the name -> good


security_warning(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

08 Aug 2018 12:52Current
6.5Medium risk
Vulners AI Score6.5
180