HTTP Client LAN IP Address Gather - Metasploit


This page contains detailed information about how to use the auxiliary/gather/browser_lanipleak metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.

Module Overview


Name: HTTP Client LAN IP Address Gather
Module: auxiliary/gather/browser_lanipleak
Source code: modules/auxiliary/gather/browser_lanipleak.rb
Disclosure date: 2013-09-05
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-6849

This module retrieves a browser's network interface IP addresses using WebRTC.

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/browser_lanipleak
msf auxiliary(browser_lanipleak) > exploit

Go back to menu.

Msfconsole Usage


Here is how the gather/browser_lanipleak auxiliary module looks in the msfconsole:

msf6 > use auxiliary/gather/browser_lanipleak

msf6 auxiliary(gather/browser_lanipleak) > show info

       Name: HTTP Client LAN IP Address Gather
     Module: auxiliary/gather/browser_lanipleak
    License: Metasploit Framework License (BSD)
       Rank: Normal
  Disclosed: 2013-09-05

Provided by:
  Daniel Roesler
  Dhiraj Mishra

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 retrieves a browser's network interface IP addresses 
  using WebRTC.

References:
  https://nvd.nist.gov/vuln/detail/CVE-2018-6849
  http://net.ipcalf.com/
  https://datarift.blogspot.in/p/private-ip-leakage-using-webrtc.html

Module Options


This is a complete list of options available in the gather/browser_lanipleak auxiliary module:

msf6 auxiliary(gather/browser_lanipleak) > show options

Module options (auxiliary/gather/browser_lanipleak):

   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 gather/browser_lanipleak auxiliary module:

msf6 auxiliary(gather/browser_lanipleak) > show advanced

Module advanced options (auxiliary/gather/browser_lanipleak):

   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/browser_lanipleak module can do:

msf6 auxiliary(gather/browser_lanipleak) > 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 gather/browser_lanipleak auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):

msf6 auxiliary(gather/browser_lanipleak) > 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.

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.

<CLI.PEERHOST>: Received malformed IP address


Here is a relevant code snippet related to the "<CLI.PEERHOST>: Received malformed IP address" error message:

137:	      begin
138:	        ip = request.body
139:	        if ip =~ /\A([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})\z/
140:	          print_good("#{cli.peerhost}: Found IP address: #{ip}")
141:	        else
142:	          print_error("#{cli.peerhost}: Received malformed IP address")
143:	        end
144:	      rescue
145:	        print_error("#{cli.peerhost}: Received malformed reply")
146:	      end
147:	    else

<CLI.PEERHOST>: Received malformed reply


Here is a relevant code snippet related to the "<CLI.PEERHOST>: Received malformed reply" error message:

140:	          print_good("#{cli.peerhost}: Found IP address: #{ip}")
141:	        else
142:	          print_error("#{cli.peerhost}: Received malformed IP address")
143:	        end
144:	      rescue
145:	        print_error("#{cli.peerhost}: Received malformed reply")
146:	      end
147:	    else
148:	      print_error("#{cli.peerhost}: Unhandled method: #{request.method}")
149:	    end
150:	  end

<CLI.PEERHOST>: Unhandled method: <REQUEST.METHOD>


Here is a relevant code snippet related to the "<CLI.PEERHOST>: Unhandled method: <REQUEST.METHOD>" error message:

141:	        else
142:	          print_error("#{cli.peerhost}: Received malformed IP address")
143:	        end
144:	      rescue
145:	        print_error("#{cli.peerhost}: Received malformed reply")
146:	      end
147:	    else
148:	      print_error("#{cli.peerhost}: Unhandled method: #{request.method}")
149:	    end
150:	  end
151:	end

Go back to menu.


References


See Also


Check also the following modules related to this module:

Authors


  • Daniel Roesler
  • Dhiraj Mishra

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.