IPMI 2.0 Cipher Zero Authentication Bypass Scanner - Metasploit
This page contains detailed information about how to use the auxiliary/scanner/ipmi/ipmi_cipher_zero metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: IPMI 2.0 Cipher Zero Authentication Bypass Scanner
Module: auxiliary/scanner/ipmi/ipmi_cipher_zero
Source code: modules/auxiliary/scanner/ipmi/ipmi_cipher_zero.rb
Disclosure date: 2013-06-20
Last modification time: 2021-01-28 10:35:25 +0000
Supported architecture(s): -
Supported platform(s): -
Target service / protocol: -
Target network port(s): 623
List of CVEs: CVE-2013-4782
This module identifies IPMI 2.0-compatible systems that are vulnerable to an authentication bypass vulnerability through the use of cipher zero.
Module Ranking and Traits
Module Ranking:
- normal: The exploit is otherwise reliable, but depends on a specific version and can't (or doesn't) reliably autodetect. More information about ranking can be found here.
Basic Usage
This module is a scanner module, and is capable of testing against multiple hosts.
msf > use auxiliary/scanner/ipmi/ipmi_cipher_zero
msf auxiliary(ipmi_cipher_zero) > show options
... show and set options ...
msf auxiliary(ipmi_cipher_zero) > set RHOSTS ip-range
msf auxiliary(ipmi_cipher_zero) > exploit
Other examples of setting the RHOSTS option:
Example 1:
msf auxiliary(ipmi_cipher_zero) > set RHOSTS 192.168.1.3-192.168.1.200
Example 2:
msf auxiliary(ipmi_cipher_zero) > set RHOSTS 192.168.1.1/24
Example 3:
msf auxiliary(ipmi_cipher_zero) > set RHOSTS file:/tmp/ip_list.txt
Required Options
- RHOSTS: The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
Knowledge Base
The ipmi_cipher_zero module is used to find IPMI 2.0-compatible systems that are vulnerable to an authentication bypass vulnerability through the use of IPMI cipher zero, which means no cipher is used at all.
Vulnerable Devices
This is an error in the IPMI 2.0 specification itself, so any device BMC fully implementing IPMI 2.0 will possibly have the vulnerable non-cipher enabled.
Verification Steps
Set RHOSTS to the target device or range and run:
msf > use auxiliary/scanner/ipmi/ipmi_cipher_zero
msf auxiliary(ipmi_cipher_zero) > set RHOSTS 192.168.1.2
RHOSTS => 192.168.1.2
msf auxiliary(ipmi_cipher_zero) > run
[*] Sending IPMI requests to 192.168.1.2->192.168.1.2 (1 hosts)
[*] 192.168.1.2:623 - IPMI - NOT VULNERABLE: Rejected cipher zero with error code 17
Go back to menu.
Msfconsole Usage
Here is how the scanner/ipmi/ipmi_cipher_zero auxiliary module looks in the msfconsole:
msf6 > use auxiliary/scanner/ipmi/ipmi_cipher_zero
msf6 auxiliary(scanner/ipmi/ipmi_cipher_zero) > show info
Name: IPMI 2.0 Cipher Zero Authentication Bypass Scanner
Module: auxiliary/scanner/ipmi/ipmi_cipher_zero
License: Metasploit Framework License (BSD)
Rank: Normal
Disclosed: 2013-06-20
Provided by:
Dan Farmer <[email protected]>
hdm <[email protected]>
Check supported:
No
Basic options:
Name Current Setting Required Description
---- --------------- -------- -----------
BATCHSIZE 256 yes The number of hosts to probe in each set
RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
RPORT 623 yes The target port (UDP)
THREADS 10 yes The number of concurrent threads
Description:
This module identifies IPMI 2.0-compatible systems that are
vulnerable to an authentication bypass vulnerability through the use
of cipher zero.
References:
https://nvd.nist.gov/vuln/detail/CVE-2013-4782
http://fish2.com/ipmi/cipherzero.html
OSVDB (93038)
OSVDB (93039)
OSVDB (93040)
Module Options
This is a complete list of options available in the scanner/ipmi/ipmi_cipher_zero auxiliary module:
msf6 auxiliary(scanner/ipmi/ipmi_cipher_zero) > show options
Module options (auxiliary/scanner/ipmi/ipmi_cipher_zero):
Name Current Setting Required Description
---- --------------- -------- -----------
BATCHSIZE 256 yes The number of hosts to probe in each set
RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
RPORT 623 yes The target port (UDP)
THREADS 10 yes The number of concurrent threads
Advanced Options
Here is a complete list of advanced options supported by the scanner/ipmi/ipmi_cipher_zero auxiliary module:
msf6 auxiliary(scanner/ipmi/ipmi_cipher_zero) > show advanced
Module advanced options (auxiliary/scanner/ipmi/ipmi_cipher_zero):
Name Current Setting Required Description
---- --------------- -------- -----------
CHOST no The local client address
CPORT no The local client port
ScannerMaxResends 10 yes The maximum times to resend a packet when out of buffers
ScannerRecvInterval 30 yes The maximum numbers of sends before entering the processing loop
ScannerRecvQueueLimit 100 yes The maximum queue size before breaking out of the processing loop
ScannerRecvWindow 15 yes The number of seconds to wait post-scan to catch leftover replies
ShowProgress true yes Display progress messages during a scan
ShowProgressPercent 10 yes The interval in percent that progress should be shown
VERBOSE false no Enable detailed status messages
WORKSPACE no Specify the workspace for this module
Auxiliary Actions
This is a list of all auxiliary actions that the scanner/ipmi/ipmi_cipher_zero module can do:
msf6 auxiliary(scanner/ipmi/ipmi_cipher_zero) > show actions
Auxiliary actions:
Name Description
---- -----------
Evasion Options
Here is the full list of possible evasion options supported by the scanner/ipmi/ipmi_cipher_zero auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):
msf6 auxiliary(scanner/ipmi/ipmi_cipher_zero) > show evasion
Module evasion options:
Name Current Setting Required Description
---- --------------- -------- -----------
Go back to menu.
Error Messages
This module may fail with the following error messages:
Check for the possible causes from the code snippets below found in the module source code. This can often times help in identifying the root cause of the problem.
<SHOST>:<SPORT> - IPMI - NOT VULNERABLE: Rejected cipher zero with error code <INFO.ERROR_CODE>
Here is a relevant code snippet related to the "<SHOST>:<SPORT> - IPMI - NOT VULNERABLE: Rejected cipher zero with error code <INFO.ERROR_CODE>" error message:
67: :proto => 'udp',
68: :sname => 'ipmi',
69: :name => 'IPMI 2.0 RAKP Cipher Zero Authentication Bypass',
70: :info => "Accepted a session open request for cipher zero",
71: :refs => self.references
72: )
73: else
74: vprint_status("#{shost}:#{sport} - IPMI - NOT VULNERABLE: Rejected cipher zero with error code #{info.error_code}")
75: end
76: end
77: end
Go back to menu.
Related Pull Requests
- #14696 Merged Pull Request: Zeitwerk rex folder
- #8716 Merged Pull Request: Print_Status -> Print_Good (And OCD bits 'n bobs)
- #8518 Merged Pull Request: update CVE reference in where modules report_vuln
- #8338 Merged Pull Request: Fix msf/core and self.class msftidy warnings
- #8184 Merged Pull Request: convert IPMI protocol and modules to bindata
- #6812 Merged Pull Request: Resolve #6807, remove all OSVDB references.
- #6655 Merged Pull Request: use MetasploitModule as a class name
- #6648 Merged Pull Request: Change metasploit class names
- #3483 Merged Pull Request: RAKP defines auth, not cipher-0 bypass, see below.
- #2525 Merged Pull Request: Change module boilerplate
- #2048 Merged Pull Request: Ipmi verbosity
- #2047 Merged Pull Request: Add IPMI modules
References
- CVE-2013-4782
- http://fish2.com/ipmi/cipherzero.html
- OSVDB (93038)
- OSVDB (93039)
- OSVDB (93040)
See Also
Check also the following modules related to this module:
- auxiliary/scanner/http/smt_ipmi_49152_exposure
- auxiliary/scanner/http/smt_ipmi_cgi_scanner
- auxiliary/scanner/http/smt_ipmi_static_cert_scanner
- auxiliary/scanner/http/smt_ipmi_url_redirect_traversal
- auxiliary/scanner/ipmi/ipmi_dumphashes
- auxiliary/scanner/ipmi/ipmi_version
- exploit/linux/http/smt_ipmi_close_window_bof
- auxiliary/admin/dcerpc/cve_2020_1472_zerologon
- exploit/unix/webapp/zeroshell_exec
- auxiliary/dos/mdns/avahi_portzero
- auxiliary/dos/ssl/dtls_changecipherspec
Related Nessus plugins:
Authors
- Dan Farmer <zen[at]fish2.com>
- hdm
Version
This page has been produced using Metasploit Framework version 6.1.24-dev. For more modules, visit the Metasploit Module Library.
Go back to menu.