Lucene search

K
openvasThis script is Copyright (C) 2010 Greenbone Networks GmbHOPENVAS:100744
HistoryAug 05, 2010 - 12:00 a.m.

LiteSpeed Web Server Source Code Information Disclosure Vulnerability

2010-08-0500:00:00
This script is Copyright (C) 2010 Greenbone Networks GmbH
plugins.openvas.org
33

0.906 High

EPSS

Percentile

98.8%

LiteSpeed Web Server is prone to a vulnerability that lets attackers
access source code files.

An attacker can exploit this vulnerability to retrieve certain files
from the vulnerable computer in the context of the webserver process.
Information obtained may aid in further attacks.

LiteSpeed Web Server versions prior to 4.0.15 are affected.

###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_lightspeed_40815.nasl 5390 2017-02-21 18:39:27Z mime $
#
# LiteSpeed Web Server Source Code Information Disclosure Vulnerability
#
# Authors:
# Michael Meyer <[email protected]>
#
# Copyright:
# Copyright (c) 2010 Greenbone Networks GmbH
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# (or any later version), as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
###############################################################################

tag_summary = "LiteSpeed Web Server is prone to a vulnerability that lets attackers
access source code files.

An attacker can exploit this vulnerability to retrieve certain files
from the vulnerable computer in the context of the webserver process.
Information obtained may aid in further attacks.

LiteSpeed Web Server versions prior to 4.0.15 are affected.";

tag_solution = "Updates are available. Please see the references for more information.";

if (description)
{
 script_id(100744);
 script_version("$Revision: 5390 $");
 script_tag(name:"last_modification", value:"$Date: 2017-02-21 19:39:27 +0100 (Tue, 21 Feb 2017) $");
 script_tag(name:"creation_date", value:"2010-08-05 13:46:20 +0200 (Thu, 05 Aug 2010)");
 script_tag(name:"cvss_base", value:"5.0");
 script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:N/A:N");
  script_cve_id("CVE-2010-2333");
 script_bugtraq_id(40815);

 script_name("LiteSpeed Web Server Source Code Information Disclosure Vulnerability");

 script_xref(name : "URL" , value : "https://www.securityfocus.com/bid/40815");
 script_xref(name : "URL" , value : "http://www.litespeedtech.com/latest/litespeed-web-server-4.0.15-released.html");
 script_xref(name : "URL" , value : "http://www.litespeedtech.com");

 script_tag(name:"qod_type", value:"remote_vul");
 script_category(ACT_ATTACK);
 script_family("Web Servers");
 script_copyright("This script is Copyright (C) 2010 Greenbone Networks GmbH");
 script_dependencies("gb_get_http_banner.nasl","webmirror.nasl");
 script_require_ports("Services/www", 80);
 script_mandatory_keys("LiteSpeed/banner");
 script_tag(name : "solution" , value : tag_solution);
 script_tag(name : "summary" , value : tag_summary);
 exit(0);
}

include("http_func.inc");
include("http_keepalive.inc");
include("global_settings.inc");
   
port = get_http_port(default:80);

if(!get_port_state(port))exit(0);
banner = get_http_banner(port:port);
if(!banner || "LiteSpeed" >!< banner)exit(0);

phps = get_kb_list("www/"+port+"/content/extensions/php");
if(!isnull(phps)) {
  phps = make_list(phps);
} else {
  phps = make_list("/index.php");
}  

foreach php (phps) {

  x++;
  url = php +"\x00.txt";

  if(buf = http_vuln_check(port:port,url:url,pattern:"<\?(php)?",check_header:TRUE)) {
   if("Content-Type: text/plain" >< buf) { 
     if(!http_vuln_check(port:port, url:php,pattern:"<\?(php)?")) {
       security_message(port:port);
       exit(0);
     }  
    }
  }  
  if(x>=3)exit(0);
}

exit(0);

0.906 High

EPSS

Percentile

98.8%