WebKitGTK+ WebKitFaviconDatabase DoS - Metasploit
This page contains detailed information about how to use the auxiliary/dos/http/webkitplus metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: WebKitGTK+ WebKitFaviconDatabase DoS
Module: auxiliary/dos/http/webkitplus
Source code: modules/auxiliary/dos/http/webkitplus.rb
Disclosure date: 2018-06-03
Last modification time: 2020-10-02 17:38:06 +0000
Supported architecture(s): -
Supported platform(s): -
Target service / protocol: -
Target network port(s): -
List of CVEs: CVE-2018-11646
This module exploits a vulnerability in WebKitFaviconDatabase when pageURL is unset. If successful, it could lead to application crash, resulting in denial of service.
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/http/webkitplus
msf auxiliary(webkitplus) > exploit
Knowledge Base
Vulnerable Application
This module exploits a vulnerability in WebKitFaviconDatabase
when pageURL
is unset.
If successful, it could lead to application crash, resulting in denial of service.
The webkitFaviconDatabaseSetIconForPageURL
and webkitFaviconDatabaseSetIconURLForPageURL
functions in UIProcess/API/glib/WebKitFaviconDatabase.cpp
in WebKit, as used in WebKitGTK+
through 2.21.3, mishandle an unset pageURL
, leading to an application crash.
Related links : * https://bugs.webkit.org/show_bug.cgi?id=186164 * https://datarift.blogspot.com/2018/06/cve-2018-11646-webkit.html
Backtrace using Fedora 27
#0 WTF::StringImpl::rawHash
at /usr/src/debug/webkitgtk4-2.18.0-2.fc27.x86_64/Source/WTF/wtf/text/StringImpl.h line 508
#1 WTF::StringImpl::hasHash
at /usr/src/debug/webkitgtk4-2.18.0-2.fc27.x86_64/Source/WTF/wtf/text/StringImpl.h line 514
#2 WTF::StringImpl::hash
at /usr/src/debug/webkitgtk4-2.18.0-2.fc27.x86_64/Source/WTF/wtf/text/StringImpl.h line 525
#3 WTF::StringHash::hash
at /usr/src/debug/webkitgtk4-2.18.0-2.fc27.x86_64/Source/WTF/wtf/text/StringHash.h line 73
#9 WTF::HashMap, WTF::HashTraits >::get
at /usr/src/debug/webkitgtk4-2.18.0-2.fc27.x86_64/Source/WTF/wtf/HashMap.h line 406
#10 webkitFaviconDatabaseSetIconURLForPageURL
at /usr/src/debug/webkitgtk4-2.18.0-2.fc27.x86_64/Source/WebKit/UIProcess/API/glib/WebKitFaviconDatabase.cpp line 193
#11 webkitFaviconDatabaseSetIconForPageURL
at /usr/src/debug/webkitgtk4-2.18.0-2.fc27.x86_64/Source/WebKit/UIProcess/API/glib/WebKitFaviconDatabase.cpp line 318
#12 webkitWebViewSetIcon
at /usr/src/debug/webkitgtk4-2.18.0-2.fc27.x86_64/Source/WebKit/UIProcess/API/glib/WebKitWebView.cpp line 1964
#13 WTF::Function::performCallbackWithReturnValue
at /usr/src/debug/webkitgtk4-2.18.0-2.fc27.x86_64/Source/WebKit/UIProcess/GenericCallback.h line 108
#15 WebKit::WebPageProxy::dataCallback
at /usr/src/debug/webkitgtk4-2.18.0-2.fc27.x86_64/Source/WebKit/UIProcess/WebPageProxy.cpp line 5083
#16 WebKit::WebPageProxy::finishedLoadingIcon
at /usr/src/debug/webkitgtk4-2.18.0-2.fc27.x86_64/Source/WebKit/UIProcess/WebPageProxy.cpp line 6848
#17 IPC::callMemberFunctionImpl::operator()
at /usr/src/debug/webkitgtk4-2.18.0-2.fc27.x86_64/Source/WTF/wtf/glib/RunLoopGLib.cpp line 68
#29 WTF::RunLoop::::_FUN(gpointer)
at /usr/src/debug/webkitgtk4-2.18.0-2.fc27.x86_64/Source/WTF/wtf/glib/RunLoopGLib.cpp line 70
#30 g_main_dispatch
at gmain.c line 3148
#31 g_main_context_dispatch
at gmain.c line 3813
#32 g_main_context_iterate
at gmain.c line 3886
#33 g_main_context_iteration
at gmain.c line 3947
#34 g_application_run
at gapplication.c line 2401
#35 main
at ../src/ephy-main.c line 432
Verification Steps
Start msfconsole
use auxiliary/dos/http/webkitplus
Set SRVHOST
Set SRVPORT
Set URIPATH
run (Server started)
Visit server URL in epiphany web browser which uses webkit.
Scenarios
msf auxiliary(dos/http/webkitplus) > show options
Module options (auxiliary/dos/http/webkitplus):
Name Current Setting Required Description
---- --------------- -------- -----------
SRVHOST 192.168.1.105 yes The local host to listen on. This must be an address on the local machine or 0.0.0.0
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
msf auxiliary(dos/http/webkitplus) > run
[*] Auxiliary module running as background job 0.
msf auxiliary(dos/http/webkitplus) >
[*] Using URL: http://192.168.1.105:8080/
[*] Server started.
msf auxiliary(dos/http/webkitplus) >
[*] Sending response
msf auxiliary(dos/http/webkitplus) >
Go back to menu.
Msfconsole Usage
Here is how the dos/http/webkitplus auxiliary module looks in the msfconsole:
msf6 > use auxiliary/dos/http/webkitplus
msf6 auxiliary(dos/http/webkitplus) > show info
Name: WebKitGTK+ WebKitFaviconDatabase DoS
Module: auxiliary/dos/http/webkitplus
License: Metasploit Framework License (BSD)
Rank: Normal
Disclosed: 2018-06-03
Provided by:
Dhiraj Mishra
Hardik Mehta
Zubin Devnani
Manuel Caballero
Available actions:
Name Description
---- -----------
WebServer Serve exploit via web server
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)
Description:
This module exploits a vulnerability in WebKitFaviconDatabase when
pageURL is unset. If successful, it could lead to application crash,
resulting in denial of service.
References:
https://www.exploit-db.com/exploits/44842
https://nvd.nist.gov/vuln/detail/CVE-2018-11646
https://bugs.webkit.org/show_bug.cgi?id=186164
https://datarift.blogspot.com/2018/06/cve-2018-11646-webkit.html
Module Options
This is a complete list of options available in the dos/http/webkitplus auxiliary module:
msf6 auxiliary(dos/http/webkitplus) > show options
Module options (auxiliary/dos/http/webkitplus):
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)
Auxiliary action:
Name Description
---- -----------
WebServer Serve exploit via web server
Advanced Options
Here is a complete list of advanced options supported by the dos/http/webkitplus auxiliary module:
msf6 auxiliary(dos/http/webkitplus) > show advanced
Module advanced options (auxiliary/dos/http/webkitplus):
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 dos/http/webkitplus module can do:
msf6 auxiliary(dos/http/webkitplus) > show actions
Auxiliary actions:
Name Description
---- -----------
WebServer Serve exploit via web server
Evasion Options
Here is the full list of possible evasion options supported by the dos/http/webkitplus auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):
msf6 auxiliary(dos/http/webkitplus) > show evasion
Module evasion options:
Name Current Setting Required Description
---- --------------- -------- -----------
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.
Related Pull Requests
- #14213 Merged Pull Request: Add disclosure date rubocop linting rule - enforce iso8601 disclosure dates
- #13443 Merged Pull Request: Add descriptions to auxiliary modules Actions
- #10156 Merged Pull Request: WebKit, as used in WebKitGTK+ Crash - CVE-2018-11646
References
- EDB-44842
- CVE-2018-11646
- https://bugs.webkit.org/show_bug.cgi?id=186164
- https://datarift.blogspot.com/2018/06/cve-2018-11646-webkit.html
See Also
Check also the following modules related to this module:
- auxiliary/dos/http/3com_superstack_switch
- auxiliary/dos/http/apache_commons_fileupload_dos
- auxiliary/dos/http/apache_mod_isapi
- auxiliary/dos/http/apache_range_dos
- auxiliary/dos/http/apache_tomcat_transfer_encoding
- auxiliary/dos/http/brother_debut_dos
- auxiliary/dos/http/cable_haunt_websocket_dos
- auxiliary/dos/http/canon_wireless_printer
- auxiliary/dos/http/dell_openmanage_post
- auxiliary/dos/http/f5_bigip_apm_max_sessions
- auxiliary/dos/http/flexense_http_server_dos
- auxiliary/dos/http/gzip_bomb_dos
- auxiliary/dos/http/hashcollision_dos
- auxiliary/dos/http/ibm_lotus_notes
- auxiliary/dos/http/ibm_lotus_notes2
- auxiliary/dos/http/marked_redos
- auxiliary/dos/http/metasploit_httphandler_dos
- auxiliary/dos/http/monkey_headers
- auxiliary/dos/http/ms15_034_ulonglongadd
- auxiliary/dos/http/nodejs_pipelining
- auxiliary/dos/http/novell_file_reporter_heap_bof
- auxiliary/dos/http/rails_action_view
- auxiliary/dos/http/rails_json_float_dos
- auxiliary/dos/http/slowloris
- auxiliary/dos/http/sonicwall_ssl_format
- auxiliary/dos/http/squid_range_dos
- auxiliary/dos/http/tautulli_shutdown_exec
- auxiliary/dos/http/ua_parser_js_redos
- auxiliary/dos/http/webrick_regex
- auxiliary/dos/http/wordpress_directory_traversal_dos
- auxiliary/dos/http/wordpress_long_password_dos
- auxiliary/dos/http/wordpress_xmlrpc_dos
- auxiliary/dos/http/ws_dos
Related Nessus plugins:
- Fedora 27 : webkitgtk4 (2018-aac3ca8936)
- openSUSE Security Update : webkit2gtk3 (openSUSE-2018-845)
- GLSA-201808-04 : WebkitGTK+: Multiple vulnerabilities
- SUSE SLED12 / SLES12 Security Update : webkit2gtk3 (SUSE-SU-2018:3387-1)
- openSUSE Security Update : webkit2gtk3 (openSUSE-2018-1288)
- SUSE SLED15 / SLES15 Security Update : webkit2gtk3 (SUSE-SU-2018:2075-1)
- Fedora 28 : webkit2gtk3 (2018-118b9abf99)
- openSUSE Security Update : webkit2gtk3 (openSUSE-2019-566)
Authors
- Dhiraj Mishra
- Hardik Mehta
- Zubin Devnani
- Manuel Caballero
Version
This page has been produced using Metasploit Framework version 6.1.27-dev. For more modules, visit the Metasploit Module Library.
Go back to menu.