OpenSSL TLS 1.1 and 1.2 AES-NI DoS - Metasploit
This page contains detailed information about how to use the auxiliary/dos/ssl/openssl_aesni metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: OpenSSL TLS 1.1 and 1.2 AES-NI DoS
Module: auxiliary/dos/ssl/openssl_aesni
Source code: modules/auxiliary/dos/ssl/openssl_aesni.rb
Disclosure date: 2013-02-05
Last modification time: 2020-10-02 17:38:06 +0000
Supported architecture(s): -
Supported platform(s): -
Target service / protocol: -
Target network port(s): 443
List of CVEs: CVE-2012-2686
The AES-NI implementation of OpenSSL 1.0.1c does not properly compute the length of an encrypted message when used with a TLS version 1.1 or above. This leads to an integer underflow which can cause a DoS. The vulnerable function aesni_cbc_hmac_sha1_cipher is only included in the 64-bit versions of OpenSSL. This module has been tested successfully on Ubuntu 12.04 (64-bit) with the default OpenSSL 1.0.1c package.
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
msf > use auxiliary/dos/ssl/openssl_aesni
msf auxiliary(openssl_aesni) > show targets
... a list of targets ...
msf auxiliary(openssl_aesni) > set TARGET target-id
msf auxiliary(openssl_aesni) > show options
... show and set options ...
msf auxiliary(openssl_aesni) > exploit
Required Options
- RHOSTS: The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
Go back to menu.
Msfconsole Usage
Here is how the dos/ssl/openssl_aesni auxiliary module looks in the msfconsole:
msf6 > use auxiliary/dos/ssl/openssl_aesni
msf6 auxiliary(dos/ssl/openssl_aesni) > show info
Name: OpenSSL TLS 1.1 and 1.2 AES-NI DoS
Module: auxiliary/dos/ssl/openssl_aesni
License: Metasploit Framework License (BSD)
Rank: Normal
Disclosed: 2013-02-05
Provided by:
Wolfgang Ettlinger <[email protected]>
Check supported:
No
Basic options:
Name Current Setting Required Description
---- --------------- -------- -----------
MAX_TRIES 300 yes Maximum number of tries
RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
RPORT 443 yes The target port (TCP)
Description:
The AES-NI implementation of OpenSSL 1.0.1c does not properly
compute the length of an encrypted message when used with a TLS
version 1.1 or above. This leads to an integer underflow which can
cause a DoS. The vulnerable function aesni_cbc_hmac_sha1_cipher is
only included in the 64-bit versions of OpenSSL. This module has
been tested successfully on Ubuntu 12.04 (64-bit) with the default
OpenSSL 1.0.1c package.
References:
https://nvd.nist.gov/vuln/detail/CVE-2012-2686
https://www.openssl.org/news/secadv/20130205.txt
Module Options
This is a complete list of options available in the dos/ssl/openssl_aesni auxiliary module:
msf6 auxiliary(dos/ssl/openssl_aesni) > show options
Module options (auxiliary/dos/ssl/openssl_aesni):
Name Current Setting Required Description
---- --------------- -------- -----------
MAX_TRIES 300 yes Maximum number of tries
RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
RPORT 443 yes The target port (TCP)
Advanced Options
Here is a complete list of advanced options supported by the dos/ssl/openssl_aesni auxiliary module:
msf6 auxiliary(dos/ssl/openssl_aesni) > show advanced
Module advanced options (auxiliary/dos/ssl/openssl_aesni):
Name Current Setting Required Description
---- --------------- -------- -----------
CHOST no The local client address
CPORT no The local client port
ConnectTimeout 10 yes Maximum number of seconds to establish a TCP connection
Proxies no A proxy chain of format type:host:port[,type:host:port][...]
SSL false no Negotiate SSL/TLS for outgoing connections
SSLCipher no String for SSL cipher - "DHE-RSA-AES256-SHA" or "ADH"
SSLVerifyMode PEER no SSL verification method (Accepted: CLIENT_ONCE, FAIL_IF_NO_PEER_CERT, NONE, PEER)
SSLVersion Auto yes Specify the version of SSL/TLS to be used (Auto, TLS and SSL23 are auto-negotiate) (Accepted: Auto, TLS, SSL23, SSL3, TLS1, TLS1.1, TLS1.2)
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 dos/ssl/openssl_aesni module can do:
msf6 auxiliary(dos/ssl/openssl_aesni) > show actions
Auxiliary actions:
Name Description
---- -----------
Evasion Options
Here is the full list of possible evasion options supported by the dos/ssl/openssl_aesni auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):
msf6 auxiliary(dos/ssl/openssl_aesni) > show evasion
Module evasion options:
Name Current Setting Required Description
---- --------------- -------- -----------
TCP::max_send_size 0 no Maxiumum tcp segment size. (0 = disable)
TCP::send_delay 0 no Delays inserted before every send. (0 = disable)
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.
No common ciphers!
Here is a relevant code snippet related to the "No common ciphers!" error message:
153: elsif cs == 0x0039 # DHE-RSA-AES256-SHA
154: p2 = p2_dhe
155: elsif cs == 0x0035 # AES256-SHA
156: p2 = p2_aes_sha
157: else
158: print_error("No common ciphers!")
159: return
160: end
161:
162: sock.put(p2)
163:
DoS unsuccessful.
Here is a relevant code snippet related to the "DoS unsuccessful." error message:
174: disconnect
175:
176: end
177:
178: if success == false
179: print_error("DoS unsuccessful.")
180: end
181: end
182:
183: def get_cipher_suite(resp)
184: offset = 0
Go back to menu.
Related Pull Requests
- #14213 Merged Pull Request: Add disclosure date rubocop linting rule - enforce iso8601 disclosure dates
- #8716 Merged Pull Request: Print_Status -> Print_Good (And OCD bits 'n bobs)
- #8338 Merged Pull Request: Fix msf/core and self.class msftidy warnings
- #6655 Merged Pull Request: use MetasploitModule as a class name
- #6648 Merged Pull Request: Change metasploit class names
- #6139 Merged Pull Request: Remove bad references (dead links)
- #5059 Merged Pull Request: Yard doc corrections
- #2525 Merged Pull Request: Change module boilerplate
- #1530 Merged Pull Request: Added CVE-2012-2686 module
- #1542 Merged Pull Request: Added CVE-2012-2686 module Edit
References
See Also
Check also the following modules related to this module:
- auxiliary/dos/ssl/dtls_changecipherspec
- auxiliary/dos/ssl/dtls_fragment_overflow
- auxiliary/scanner/ssl/openssl_ccs
- auxiliary/scanner/ssl/openssl_heartbleed
- auxiliary/server/openssl_altchainsforgery_mitm_proxy
- auxiliary/server/openssl_heartbeat_client_memory
- payload/cmd/unix/reverse_openssl
- auxiliary/scanner/ssl/bleichenbacher_oracle
- auxiliary/scanner/ssl/ssl_version
- exploit/windows/ssl/ms04_011_pct
Related Nessus plugins:
- Mac OS X 10.8.x < 10.8.5 Multiple Vulnerabilities
- Mac OS X Multiple Vulnerabilities (Security Update 2013-004)
Authors
- Wolfgang Ettlinger <wolfgang.ettlinger[at]gmail.com>
Version
This page has been produced using Metasploit Framework version 6.2.29-dev. For more modules, visit the Metasploit Module Library.
Go back to menu.