SIPDroid Extension Grabber - Metasploit


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

Module Overview


Name: SIPDroid Extension Grabber
Module: auxiliary/scanner/sip/sipdroid_ext_enum
Source code: modules/auxiliary/scanner/sip/sipdroid_ext_enum.rb
Disclosure date: -
Last modification time: 2018-09-15 18:54:45 +0000
Supported architecture(s): -
Supported platform(s): -
Target service / protocol: -
Target network port(s): -
List of CVEs: -

This module exploits a leak of extension/SIP Gateway on SIPDroid 1.6.1 beta, 2.0.1 beta, 2.2 beta (tested in Android 2.1 and 2.2 - official Motorola release) (other versions may be affected).

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/scanner/sip/sipdroid_ext_enum
msf auxiliary(sipdroid_ext_enum) > show targets
    ... a list of targets ...
msf auxiliary(sipdroid_ext_enum) > set TARGET target-id
msf auxiliary(sipdroid_ext_enum) > show options
    ... show and set options ...
msf auxiliary(sipdroid_ext_enum) > 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 scanner/sip/sipdroid_ext_enum auxiliary module looks in the msfconsole:

msf6 > use auxiliary/scanner/sip/sipdroid_ext_enum

msf6 auxiliary(scanner/sip/sipdroid_ext_enum) > show info

       Name: SIPDroid Extension Grabber
     Module: auxiliary/scanner/sip/sipdroid_ext_enum
    License: Metasploit Framework License (BSD)
       Rank: Normal

Provided by:
  Anibal Aguiar <[email protected]>

Check supported:
  No

Basic options:
  Name      Current Setting  Required  Description
  ----      ---------------  --------  -----------
  FNLPORT   59159            yes       The final probe port
  RHOSTS                     yes       The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
  RPORT                      no        Remote port to probe
  STRTPORT  59150            yes       The start probe port

Description:
  This module exploits a leak of extension/SIP Gateway on SIPDroid 
  1.6.1 beta, 2.0.1 beta, 2.2 beta (tested in Android 2.1 and 2.2 - 
  official Motorola release) (other versions may be affected).

References:
  http://www.securityfocus.com/bid/47710
  https://seclists.org/fulldisclosure/2011/May/83

Module Options


This is a complete list of options available in the scanner/sip/sipdroid_ext_enum auxiliary module:

msf6 auxiliary(scanner/sip/sipdroid_ext_enum) > show options

Module options (auxiliary/scanner/sip/sipdroid_ext_enum):

   Name      Current Setting  Required  Description
   ----      ---------------  --------  -----------
   FNLPORT   59159            yes       The final probe port
   RHOSTS                     yes       The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
   RPORT                      no        Remote port to probe
   STRTPORT  59150            yes       The start probe port

Advanced Options


Here is a complete list of advanced options supported by the scanner/sip/sipdroid_ext_enum auxiliary module:

msf6 auxiliary(scanner/sip/sipdroid_ext_enum) > show advanced

Module advanced options (auxiliary/scanner/sip/sipdroid_ext_enum):

   Name       Current Setting  Required  Description
   ----       ---------------  --------  -----------
   CHOST                       no        The local client address
   CPORT                       no        The local client port
   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 scanner/sip/sipdroid_ext_enum module can do:

msf6 auxiliary(scanner/sip/sipdroid_ext_enum) > show actions

Auxiliary actions:

   Name  Description
   ----  -----------

Evasion Options


Here is the full list of possible evasion options supported by the scanner/sip/sipdroid_ext_enum auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):

msf6 auxiliary(scanner/sip/sipdroid_ext_enum) > show evasion

Module evasion options:

   Name  Current Setting  Required  Description
   ----  ---------------  --------  -----------

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.

Ringing message received but no user/gateway sent...


Here is a relevant code snippet related to the "Ringing message received but no user/gateway sent..." error message:

87:	              origin = /o=\w+\@[\w+\.]+/.match(msg[0])
88:	
89:	              if not origin.nil?
90:	                print_good(/\w+\@[\w+\.]+/.match(origin.to_s).to_s)
91:	              else
92:	                print_status("Ringing message received but no user/gateway sent...")
93:	              end
94:	
95:	              data = create_probe(datastore['RHOST'], 'CANCEL', @branch, @tag, @callid)
96:	              udp_sock.put(data)
97:	              strtport = fnlport + 1

Tested all ports got no response, try a bigger port range.


Here is a relevant code snippet related to the "Tested all ports got no response, try a bigger port range." error message:

102:	          end
103:	        end
104:	      rescue ::Exception => e
105:	        disconnect_udp
106:	        if strtport == fnlport
107:	          print_status("Tested all ports got no response, try a bigger port range.")
108:	        end
109:	      ensure
110:	        if strtport == fnlport and not rcv.nil?
111:	          print_status("Tested all ports got no response, try a bigger port range.")
112:	        end

Tested all ports got no response, try a bigger port range.


Here is a relevant code snippet related to the "Tested all ports got no response, try a bigger port range." error message:

106:	        if strtport == fnlport
107:	          print_status("Tested all ports got no response, try a bigger port range.")
108:	        end
109:	      ensure
110:	        if strtport == fnlport and not rcv.nil?
111:	          print_status("Tested all ports got no response, try a bigger port range.")
112:	        end
113:	        disconnect_udp
114:	        strtport += 1
115:	      end
116:	    end

Go back to menu.


References


See Also


Check also the following modules related to this module:

Authors


Anibal Aguiar <anibal.aguiar[at]gmail.com>

Version


This page has been produced using Metasploit Framework version 6.2.4-dev. For more modules, visit the Metasploit Module Library.

Go back to menu.