Lucene search
+L

FannyBMP or DementiaWheel Detection Registry Check

🗓️ 26 Jan 2021 17:42:59Reported by William M.Type 
metasploit
 metasploit
🔗 www.rapid7.com👁 211 Views

Search for FannyBMP or DementiaWheel related registry keys, exploit CVE-2010-2568

Related
Code
ReporterTitlePublishedViews
Family
githubexploit
GithubExploit
Exploit for CVE-2010-2568
26 Feb 202609:41
–githubexploit
attackerkb
attackerkb
CVE-2010-2568
22 Jul 201000:00
–attackerkb
attackerkb
attackerkb
CVE-2010-2772
22 Jul 201000:00
–attackerkb
bdu_fstec
BDU FSTEC
Windows File Execution Arbitrary Code
7 Sep 202100:00
–bdu_fstec
circl
Circl
CVE-2010-2568
18 Jul 201000:00
–circl
cisa_kev
CISA KEV Catalog
Microsoft Windows Remote Code Execution Vulnerability
15 Sep 202200:00
–cisa_kev
checkpoint_advisories
Check Point Advisories
Microsoft Windows Shell LNK File Parsing Code Execution (MS10-046; CVE-2010-2568)
18 Jul 201000:00
–checkpoint_advisories
checkpoint_advisories
Check Point Advisories
Microsoft Windows LNK PIF Code Execution - Ver2 (CVE-2010-2568)
3 Mar 201400:00
–checkpoint_advisories
cve
CVE
CVE-2010-2568
22 Jul 201010:00
–cve
cvelist
Cvelist
CVE-2010-2568
22 Jul 201010:00
–cvelist
Rows per page
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

class MetasploitModule < Msf::Post
  include Msf::Post::Common
  include Msf::Post::Windows::Registry
  include Msf::Auxiliary::Report

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'FannyBMP or DementiaWheel Detection Registry Check',
        'Description' => %q{
          This module searches for the Fanny.bmp worm related reg keys.
          fannybmp is a worm that exploited zero day vulns
          (more specifically, the LNK Exploit CVE-2010-2568).
          Which allowed it to spread even if USB Autorun was turned off.
          This is the same exploit that was used in StuxNet.
        },
        'License' => MSF_LICENSE,
        'Author' => ['William M.'],
        'Platform' => ['win'],
        'SessionTypes' => ['meterpreter', 'shell'],
        'References' => [
          ['URL', 'https://securelist.com/a-fanny-equation-i-am-your-father-stuxnet/68787'],
          ['CVE', '2010-2568']
        ],
        'Notes' => {
          'Stability' => [CRASH_SAFE],
          'SideEffects' => [],
          'Reliability' => []
        }
      )
    )
  end

  def run
    artifacts =
      [
        'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MediaResources\"acm"',
        'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MediaResources\acm\ECELP4',
        'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MediaResources\acm\ECELP4\Driver',
        'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MediaResources\acm\ECELP4\filter2',
        'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MediaResources\acm\ECELP4\filter3',
        'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MediaResources\acm\ECELP4\filter8'
      ]

    matches = {}
    print_status('Searching the registry for Fanny.bmp artifacts.')
    artifacts.each do |key|
      key, _, value = key.rpartition('\\')
      has_key = registry_enumkeys(key)
      has_val = registry_enumvals(key)
      next unless has_key&.include?(value) || has_val&.include?(value)

      print_good("Target #{key}\\#{value} found in registry.")
      matches[key] = value
    end

    unless matches.empty?
      report_vuln(
        host: session.session_host,
        name: name,
        info: "Target keys found in registry:\n#{matches.map { |k, v| "#{k}: #{v}\n" }.join}",
        refs: references,
        exploited_at: Time.now.utc
      )
    end
    print_status('Done.')
  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