Allegro Software RomPager 'Misfortune Cookie' (CVE-2014-9222) Authentication Bypass - Metasploit
This page contains detailed information about how to use the auxiliary/admin/http/allegro_rompager_auth_bypass metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: Allegro Software RomPager 'Misfortune Cookie' (CVE-2014-9222) Authentication Bypass
Module: auxiliary/admin/http/allegro_rompager_auth_bypass
Source code: modules/auxiliary/admin/http/allegro_rompager_auth_bypass.rb
Disclosure date: 2014-12-17
Last modification time: 2022-01-23 15:28:32 +0000
Supported architecture(s): -
Supported platform(s): -
Target service / protocol: http, https
Target network port(s): 80, 443, 3000, 8000, 8008, 8080, 8443, 8880, 8888
List of CVEs: CVE-2014-9222
This module exploits HTTP servers that appear to be vulnerable to the 'Misfortune Cookie' vulnerability which affects Allegro Software Rompager versions before 4.34 and can allow attackers to authenticate to the HTTP service as an administrator without providing valid credentials.
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/admin/http/allegro_rompager_auth_bypass
msf auxiliary(allegro_rompager_auth_bypass) > show targets
... a list of targets ...
msf auxiliary(allegro_rompager_auth_bypass) > set TARGET target-id
msf auxiliary(allegro_rompager_auth_bypass) > show options
... show and set options ...
msf auxiliary(allegro_rompager_auth_bypass) > exploit
Required Options
- RHOSTS: The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
Knowledge Base
Vulnerable devices
The following devices and firmware versions are known to be vulnerable:
- Azmoon AZ-D140W - 2.11.89.0(RE2.C29)3.11.11.52_PMOFF.1
- Billion BiPAC 5102S - Av2.7.0.23 (UE0.B1C)
- Billion BiPAC 5102S - Bv2.7.0.23 (UE0.B1C)
- Billion BiPAC 5200 - 2.11.84.0(UE2.C2)3.11.11.6
- Billion BiPAC 5200 - 2_11_62_2_ UE0.C2D_3_10_16_0
- Billion BiPAC 5200A - 2_10_5 _0(RE0.C2)3_6_0_0
- Billion BiPAC 5200A - 2_11_38_0 (RE0.C29)3_10_5_0
- Billion BiPAC 5200GR4 - 2.11.91.0(RE2.C29)3.11.11.52
- Billion BiPAC 5200SRD - 2.10.5.0 (UE0.C2C) 3.6.0.0
- Billion BiPAC 5200SRD - 2.12.17.0_UE2.C3_3.12.17.0
- Billion BiPAC 5200SRD - 2_11_62_2(UE0.C3D)3_11_11_22
- D-Link DSL-2520U - Z1 1.08 DSL-2520U_RT63261_Middle_East_ADSL
- D-Link DSL-2600U - Z1_DSL-2600U
- D-Link DSL-2600U - Z2_V1.08_ras
- TP-Link TD-8616 - V2_080513
- TP-Link TD-8816 - V4_100528_Russia
- TP-Link TD-8816 - V4_100524
- TP-Link TD-8816 - V5_100528_Russia
- TP-Link TD-8816 - V5_100524
- TP-Link TD-8816 - V5_100903
- TP-Link TD-8816 - V6_100907
- TP-Link TD-8816 - V7_111103
- TP-Link TD-8816 - V7_130204
- TP-Link TD-8817 - V5_100524
- TP-Link TD-8817 - V5_100702_TR
- TP-Link TD-8817 - V5_100903
- TP-Link TD-8817 - V6_100907
- TP-Link TD-8817 - V6_101221
- TP-Link TD-8817 - V7_110826
- TP-Link TD-8817 - V7_130217
- TP-Link TD-8817 - V7_120509
- TP-Link TD-8817 - V8_140311
- TP-Link TD-8820 - V3_091223
- TP-Link TD-8840T - V1_080520
- TP-Link TD-8840T - V2_100525
- TP-Link TD-8840T - V2_100702_TR
- TP-Link TD-8840T - V2_090609
- TP-Link TD-8840T - V3_101208
- TP-Link TD-8840T - V3_110221
- TP-Link TD-8840T - V3_120531
- TP-Link TD-W8101G - V1_090107
- TP-Link TD-W8101G - V1_090107
- TP-Link TD-W8101G - V2_100819
- TP-Link TD-W8101G - V2_101015_TR
- TP-Link TD-W8101G - V2_101101
- TP-Link TD-W8101G - V3_110119
- TP-Link TD-W8101G - V3_120213
- TP-Link TD-W8101G - V3_120604
- TP-Link TD-W8151N - V3_120530
- TP-Link TD-W8901G - V1_080522
- TP-Link TD-W8901G - V1,2_080522
- TP-Link TD-W8901G - V2_090113_Turkish
- TP-Link TD-W8901G - V3_140512
- TP-Link TD-W8901G - V3_100603
- TP-Link TD-W8901G - V3_100702_TR
- TP-Link TD-W8901G - V3_100901
- TP-Link TD-W8901G - V6_110119
- TP-Link TD-W8901G - V6_110915
- TP-Link TD-W8901G - V6_120418
- TP-Link TD-W8901G - V6_120213
- TP-Link TD-W8901GB - V3_100727
- TP-Link TD-W8901GB - V3_100820
- TP-Link TD-W8901N - V1_111211
- TP-Link TD-W8951ND - V1_101124,100723,100728
- TP-Link TD-W8951ND - V1_110907
- TP-Link TD-W8951ND - V1_111125
- TP-Link TD-W8951ND - V3.0_110729_FI
- TP-Link TD-W8951ND - V3_110721
- TP-Link TD-W8951ND - V3_20110729_FI
- TP-Link TD-W8951ND - V4_120511
- TP-Link TD-W8951ND - V4_120607
- TP-Link TD-W8951ND - V4_120912_FL
- TP-Link TD-W8961NB - V1_110107
- TP-Link TD-W8961NB - V1_110519
- TP-Link TD-W8961NB - V2_120319
- TP-Link TD-W8961NB - V2_120823
- TP-Link TD-W8961ND - V1_100722,101122
- TP-Link TD-W8961ND - V1_101022_TR
- TP-Link TD-W8961ND - V1_111125
- TP-Link TD-W8961ND - V2_120427
- TP-Link TD-W8961ND - V2_120710_UK
- TP-Link TD-W8961ND - V2_120723_FI
- TP-Link TD-W8961ND - V3_120524,120808
- TP-Link TD-W8961ND - V3_120830
- ZyXEL P-660R-T3 - 3.40(BOQ.0)C0
- ZyXEL P-660RU-T3 - 3.40(BJR.0)C0
Module usage
This is an example run against TP-Link TD-8817 router:
msf > use auxiliary/admin/http/allegro_rompager_auth_bypass
msf auxiliary(allegro_rompager_auth_bypass) > show options
Module options (auxiliary/admin/http/allegro_rompager_auth_bypass):
Name Current Setting Required Description
---- --------------- -------- -----------
Proxies no A proxy chain of format type:host:port[,type:host:port][...]
RHOST 192.168.1.1 yes The target address
RPORT 80 yes The target port
SSL false no Negotiate SSL/TLS for outgoing connections
TARGETURI / yes URI to test
VHOST no HTTP server virtual host
msf auxiliary(allegro_rompager_auth_bypass) > set rhost 192.168.1.1
rhost => 192.168.1.1
msf auxiliary(allegro_rompager_auth_bypass) > run
[+] Detected device:TP-Link TD-8817
[-] Bad response
[-] Bad response
[+] Good response, please check host, authentication should be disabled
[*] Auxiliary module execution completed
Go back to menu.
Msfconsole Usage
Here is how the admin/http/allegro_rompager_auth_bypass auxiliary module looks in the msfconsole:
msf6 > use auxiliary/admin/http/allegro_rompager_auth_bypass
msf6 auxiliary(admin/http/allegro_rompager_auth_bypass) > show info
Name: Allegro Software RomPager 'Misfortune Cookie' (CVE-2014-9222) Authentication Bypass
Module: auxiliary/admin/http/allegro_rompager_auth_bypass
License: Metasploit Framework License (BSD)
Rank: Normal
Disclosed: 2014-12-17
Provided by:
Jon Hart <[email protected]>
Jan Trencansky <[email protected]>
Lior Oppenheim
Check supported:
No
Basic options:
Name Current Setting Required Description
---- --------------- -------- -----------
Proxies no A proxy chain of format type:host:port[,type:host:port][...]
RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
RPORT 80 yes The target port (TCP)
SSL false no Negotiate SSL/TLS for outgoing connections
TARGETURI / yes URI to test
VHOST no HTTP server virtual host
Description:
This module exploits HTTP servers that appear to be vulnerable to
the 'Misfortune Cookie' vulnerability which affects Allegro Software
Rompager versions before 4.34 and can allow attackers to
authenticate to the HTTP service as an administrator without
providing valid credentials.
References:
https://nvd.nist.gov/vuln/detail/CVE-2014-9222
http://mis.fortunecook.ie
http://mis.fortunecook.ie/misfortune-cookie-suspected-vulnerable.pdf
http://mis.fortunecook.ie/too-many-cooks-exploiting-tr069_tal-oppenheim_31c3.pdf
Module Options
This is a complete list of options available in the admin/http/allegro_rompager_auth_bypass auxiliary module:
msf6 auxiliary(admin/http/allegro_rompager_auth_bypass) > show options
Module options (auxiliary/admin/http/allegro_rompager_auth_bypass):
Name Current Setting Required Description
---- --------------- -------- -----------
Proxies no A proxy chain of format type:host:port[,type:host:port][...]
RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
RPORT 80 yes The target port (TCP)
SSL false no Negotiate SSL/TLS for outgoing connections
TARGETURI / yes URI to test
VHOST no HTTP server virtual host
Advanced Options
Here is a complete list of advanced options supported by the admin/http/allegro_rompager_auth_bypass auxiliary module:
msf6 auxiliary(admin/http/allegro_rompager_auth_bypass) > show advanced
Module advanced options (auxiliary/admin/http/allegro_rompager_auth_bypass):
Name Current Setting Required Description
---- --------------- -------- -----------
DOMAIN WORKSTATION yes The domain to use for Windows authentication
DigestAuthIIS true no Conform to IIS, should work for most servers. Only set to false for non-IIS servers
FingerprintCheck true no Conduct a pre-exploit fingerprint verification
ForceAttempt false no Force exploit attempt for all known cookies
HttpClientTimeout no HTTP connection and receive timeout
HttpPassword no The HTTP password to specify for authentication
HttpRawHeaders no Path to ERB-templatized raw headers to append to existing headers
HttpTrace false no Show the raw HTTP requests and responses
HttpTraceColors red/blu no HTTP request and response colors for HttpTrace (unset to disable)
HttpTraceHeadersOnly false no Show HTTP headers only in HttpTrace
HttpUsername no The HTTP username to specify for authentication
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)
UserAgent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) no The User-Agent header to use for all requests
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 admin/http/allegro_rompager_auth_bypass module can do:
msf6 auxiliary(admin/http/allegro_rompager_auth_bypass) > show actions
Auxiliary actions:
Name Description
---- -----------
Evasion Options
Here is the full list of possible evasion options supported by the admin/http/allegro_rompager_auth_bypass auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):
msf6 auxiliary(admin/http/allegro_rompager_auth_bypass) > show evasion
Module evasion options:
Name Current Setting Required Description
---- --------------- -------- -----------
HTTP::header_folding false no Enable folding of HTTP headers
HTTP::method_random_case false no Use random casing for the HTTP method
HTTP::method_random_invalid false no Use a random invalid, HTTP method for request
HTTP::method_random_valid false no Use a random, but valid, HTTP method for request
HTTP::pad_fake_headers false no Insert random, fake headers into the HTTP request
HTTP::pad_fake_headers_count 0 no How many fake headers to insert into the HTTP request
HTTP::pad_get_params false no Insert random, fake query string variables into the request
HTTP::pad_get_params_count 16 no How many fake query string variables to insert into the request
HTTP::pad_method_uri_count 1 no How many whitespace characters to use between the method and uri
HTTP::pad_method_uri_type space no What type of whitespace to use between the method and uri (Accepted: space, tab, apache)
HTTP::pad_post_params false no Insert random, fake post variables into the request
HTTP::pad_post_params_count 16 no How many fake post variables to insert into the request
HTTP::pad_uri_version_count 1 no How many whitespace characters to use between the uri and version
HTTP::pad_uri_version_type space no What type of whitespace to use between the uri and version (Accepted: space, tab, apache)
HTTP::uri_dir_fake_relative false no Insert fake relative directories into the uri
HTTP::uri_dir_self_reference false no Insert self-referential directories into the uri
HTTP::uri_encode_mode hex-normal no Enable URI encoding (Accepted: none, hex-normal, hex-noslashes, hex-random, hex-all, u-normal, u-all, u-random)
HTTP::uri_fake_end false no Add a fake end of URI (eg: /%20HTTP/1.0/../../)
HTTP::uri_fake_params_start false no Add a fake start of params to the URI (eg: /%3fa=b/../)
HTTP::uri_full_url false no Use the full URL for all HTTP requests
HTTP::uri_use_backslashes false no Use back slashes instead of forward slashes in the uri
HTTP::version_random_invalid false no Use a random invalid, HTTP version for request
HTTP::version_random_valid false no Use a random, but valid, HTTP version for request
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.
Bad response
Here is a relevant code snippet related to the "Bad response" error message:
239: )
240: if res != nil and res.code <= 302
241: print_good('Good response, please check host, authentication should be disabled')
242: break
243: else
244: print_error('Bad response')
245: end
246: }
247: else
248: print_error("No matching values for fingerprint #{model}")
249: end
No matching values for fingerprint <MODEL>
Here is a relevant code snippet related to the "No matching values for fingerprint <MODEL>" error message:
243: else
244: print_error('Bad response')
245: end
246: }
247: else
248: print_error("No matching values for fingerprint #{model}")
249: end
250: else
251: print_error('Unknown device')
252: end
253: end
Unknown device
Here is a relevant code snippet related to the "Unknown device" error message:
244: print_error('Bad response')
245: end
246: }
247: else
248: print_error("No matching values for fingerprint #{model}")
249: end
250: else
251: print_error('Unknown device')
252: end
253: end
254: end
Go back to menu.
Related Pull Requests
- #14769 Merged Pull Request: Handle nil versions in preparation for rubygems 4
- #14733 Merged Pull Request: Add latest Rubocop rules
- #14213 Merged Pull Request: Add disclosure date rubocop linting rule - enforce iso8601 disclosure dates
- #11865 Merged Pull Request: expand utility for allegro_rompager_auth_bypass
- #8338 Merged Pull Request: Fix msf/core and self.class msftidy warnings
- #7753 Merged Pull Request: Add auxiliary RomPager misfortune cookie authentication bypass
References
- CVE-2014-9222
- http://mis.fortunecook.ie
- http://mis.fortunecook.ie/misfortune-cookie-suspected-vulnerable.pdf
- http://mis.fortunecook.ie/too-many-cooks-exploiting-tr069_tal-oppenheim_31c3.pdf
See Also
Check also the following modules related to this module:
- auxiliary/scanner/http/allegro_rompager_misfortune_cookie
- auxiliary/admin/http/grafana_auth_bypass
- auxiliary/admin/http/iis_auth_bypass
- auxiliary/admin/http/netgear_pnpx_getsharefolderlist_auth_bypass
- auxiliary/admin/ldap/vmware_vcenter_vmdir_auth_bypass
- auxiliary/admin/networking/cisco_dcnm_auth_bypass
- auxiliary/admin/networking/cisco_secure_acs_bypass
- auxiliary/admin/networking/cisco_vpn_3000_ftp_bypass
- auxiliary/admin/vnc/realvnc_41_bypass
- auxiliary/gather/samsung_browser_sop_bypass
- auxiliary/scanner/http/cisco_ios_auth_bypass
- auxiliary/scanner/http/dir_webdav_unicode_bypass
- auxiliary/scanner/http/intel_amt_digest_bypass
- auxiliary/scanner/http/ms09_020_webdav_unicode_bypass
- auxiliary/scanner/http/rewrite_proxy_bypass
- auxiliary/scanner/http/verb_auth_bypass
- auxiliary/scanner/misc/dahua_dvr_auth_bypass
- auxiliary/scanner/ssh/libssh_auth_bypass
- auxiliary/admin/http/dlink_dir_300_600_exec_noauth
- auxiliary/admin/http/hikvision_unauth_pwd_reset_cve_2017_7921
- auxiliary/admin/http/netgear_auth_download
- auxiliary/admin/sap/sap_configservlet_exec_noauth
- auxiliary/gather/http_pdf_authors
- auxiliary/gather/peplink_bauth_sqli
- auxiliary/pdf/foxit/authbypass
- auxiliary/scanner/db2/db2_auth
- auxiliary/scanner/http/tplink_traversal_noauth
- auxiliary/scanner/mysql/mysql_authbypass_hashdump
- auxiliary/scanner/vmware/vmauthd_login
- auxiliary/scanner/vmware/vmauthd_version
- auxiliary/scanner/vnc/vnc_none_auth
- auxiliary/scanner/winrm/winrm_auth_methods
- auxiliary/scanner/http/fortimail_login_bypass_detection
Authors
- Jon Hart <jon_hart[at]rapid7.com>
- Jan Trencansky <jan.trencansky[at]gmail.com>
- Lior Oppenheim
Version
This page has been produced using Metasploit Framework version 6.2.23-dev. For more modules, visit the Metasploit Module Library.
Go back to menu.