Lucene search
+L

IPMI 2.0 Cipher Zero Authentication Bypass Scanner

🗓️ 20 Jun 2013 00:00:00Reported by Dan Farmer <[email protected]>, hdm <[email protected]>Type 
metasploit
 metasploit
🔗 www.rapid7.com👁 59 Views

IPMI 2.0 Cipher Zero Authentication Bypass Scanner identifies vulnerable IPMI 2.0-compatible systems to an authentication bypass vulnerability using cipher zero

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2013-4782
29 May 201815:50
circl
cve
CVE
CVE-2013-4782
8 Jul 201322:00
cve
cvelist
Cvelist
CVE-2013-4782
8 Jul 201322:00
cvelist
nessus
Tenable Nessus
IPMI Cipher Suite Zero Authentication Bypass
16 Jul 201300:00
nessus
nvd
NVD
CVE-2013-4782
8 Jul 201322:55
nvd
packetstorm
Packet Storm
IPMI 2.0 Cipher Zero Authentication Bypass Scanner
1 Sep 202400:00
packetstorm
pentestpartners
Pen Test Partners Blog
Backdoor in the Backplane. Doing IPMI security better
31 Mar 202505:13
pentestpartners
prion
Prion
Authentication flaw
8 Jul 201322:55
prion
redhatcve
RedhatCVE
CVE-2013-4782
22 May 202502:37
redhatcve
##
# 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::UDPScanner

  def initialize
    super(
      'Name' => 'IPMI 2.0 Cipher Zero Authentication Bypass Scanner',
      'Description' => %q|
        This module identifies IPMI 2.0-compatible systems that are vulnerable
        to an authentication bypass vulnerability through the use of cipher
        zero.
        |,
      'Author' => [ 'Dan Farmer <zen[at]fish2.com>', 'hdm' ],
      'License' => MSF_LICENSE,
      'References' => [
        ['CVE', '2013-4782'],
        ['URL', 'http://fish2.com/ipmi/cipherzero.html'],
        ['OSVDB', '93038'],
        ['OSVDB', '93039'],
        ['OSVDB', '93040'],

      ],
      'DisclosureDate' => '2013-06-20'
    )

    register_options(
      [
        Opt::RPORT(623)
      ]
    )
  end

  def scanner_prescan(batch)
    print_status("Sending IPMI requests to #{batch[0]}->#{batch[-1]} (#{batch.length} hosts)")
    @res = {}
  end

  def scan_host(ip)
    console_session_id = Rex::Text.rand_text(4)
    scanner_send(
      Rex::Proto::IPMI::Utils.create_ipmi_session_open_cipher_zero_request(console_session_id),
      ip, datastore['RPORT']
    )
  end

  def scanner_process(data, shost, sport)
    info = nil

    begin
      info = Rex::Proto::IPMI::Open_Session_Reply.new.read(data)
    rescue IOError, BinData::ValidityError => e
      # Truncated replies raise IOError ("data truncated") or EOFError (a subclass
      # of IOError); replies that fail a BinData assertion raise ValidityError.
      vprint_error("#{Rex::Socket.to_authority(shost, sport)} - IPMI - Malformed open session reply: #{e.class}: #{e.message}")
      return nil
    end

    return unless info && info.session_payload_type == Rex::Proto::IPMI::PAYLOAD_RMCPPLUSOPEN_REP

    # Ignore duplicate replies
    return if @res[shost]

    @res[shost] ||= info

    if info.error_code == 0
      print_good("#{Rex::Socket.to_authority(shost, sport)} - IPMI - VULNERABLE: Accepted a session open request for cipher zero")
      report_vuln(
        :host => shost,
        :port => datastore['RPORT'].to_i,
        :proto => 'udp',
        :sname => 'ipmi',
        :name => 'IPMI 2.0 RAKP Cipher Zero Authentication Bypass',
        :info => "Accepted a session open request for cipher zero",
        :refs => self.references
      )
    else
      vprint_status("#{Rex::Socket.to_authority(shost, sport)} - IPMI - NOT VULNERABLE: Rejected cipher zero with error code #{info.error_code}")
    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

20 Jun 2013 00:00Current
8.6High risk
Vulners AI Score8.6
CVSS 210
EPSS0.26016
59