Lucene search
K

FTPGate Web Proxy Traversal Arbitrary File Access

🗓️ 05 Nov 1999 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 144 Views

Remote host is vulnerable to directory traversal, allowing arbitrary file access.

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

include("compat.inc");

if(description)
{
 script_id(10091);
 script_version ("1.24");
 script_cvs_date("Date: 2018/08/10 18:07:08");
 
 script_name(english:"FTPGate Web Proxy Traversal Arbitrary File Access");
 script_summary(english:"\..\..\file.txt");
 
 script_set_attribute(attribute:"synopsis", value:
"The remote host is affected by a directory traversal vulnerability." );
 script_set_attribute(attribute:"description", value:
"It is possible to read arbitrary files on the remote server by
prepending ../../ or ..\..\ in front of the file name." );
 script_set_attribute(attribute:"solution", value:
"Use another web proxy" );
 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/11/05");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_end_attributes();
 
 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_dependencie("http_version.nasl", "web_traversal.nasl");
 script_require_ports("Services/www", 8080);
 exit(0);
}

#
# The script code starts here
#

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

port = get_http_port(default: 8080);
if (get_kb_item(strcat("www/", port, "/generic_traversal"))) exit(0);

foreach d (make_list("windows", "winnt"))
{
  w = http_send_recv3(method:"GET", port: port,
    item:'..\\..\\..\\..\\..\\..\\'+d+'\\win.ini');
 if (isnull(w)) exit(1, "The web server did not answer");
 r = strcat(w[0], w[1], '\r\n', w[2]);
 if("[windows]" >< r || "[fonts]" >< r)
 {
   security_warning(port);
   exit(0);
  }
}

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