X
Tap here to go to the mobile version of the site.

Safely share files online with encrypted links that “self-destruct.” Try Firefox Send.

Give hackers a swift kick in the cookies. See if your data has been affected by a breach with Firefox Monitor. Try it now.

Access your history, passwords and open tabs wherever you are with Sync. Connect a second device.

Support Forum

How to recover passwords from logins.json

Posted

Hi,

I upgraded from FF 57 to 64. All my saved logins are unavailable. The logins.json is still there, filled with details with all the encrypted creds I expect. Prefs shows there are no saved logins and there is no longer a master password set (there was).

As I understand it key3.db used to hold the master password, but now this is in key4.db. key4.db has been created during installation but clearly does not give access.

I have tried deleting key4.db and restarting, hoping an automatic migration would rerun. key4.db was recreated but no change.

Stopped AV file and web protection (Avast). No change.

Run FF 57 again, with and without key4.db. No change.

Restored key3.db, logins.json, cert8.db from backup, run FF 57 again. No change.

Possibly unrelated oddity: shortly after upgrading and before I noticed the password issue, FF64 refused to connect to *any* https site (I think it said authority was not recognised), including Mozilla, with no way of ignoring the error. Other browsers were fine with the same sites. Restarted AV and FF 64 and it worked again.

Is there a way to recover creds? I do know the master password.

Thanks for any help.

Hi, I upgraded from FF 57 to 64. All my saved logins are unavailable. The logins.json is still there, filled with details with all the encrypted creds I expect. Prefs shows there are no saved logins and there is no longer a master password set (there was). As I understand it key3.db used to hold the master password, but now this is in key4.db. key4.db has been created during installation but clearly does not give access. I have tried deleting key4.db and restarting, hoping an automatic migration would rerun. key4.db was recreated but no change. Stopped AV file and web protection (Avast). No change. Run FF 57 again, with and without key4.db. No change. Restored key3.db, logins.json, cert8.db from backup, run FF 57 again. No change. Possibly unrelated oddity: shortly after upgrading and before I noticed the password issue, FF64 refused to connect to *any* https site (I think it said authority was not recognised), including Mozilla, with no way of ignoring the error. Other browsers were fine with the same sites. Restarted AV and FF 64 and it worked again. Is there a way to recover creds? I do know the master password. Thanks for any help.
Quote

Additional System Details

Application

  • User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3652.0 Safari/537.36

More Information

FredMcD
  • Top 10 Contributor
3984 solutions 55565 answers

https://www.ghacks.net/2018/07/18/how-to-export-firefox-passwords-in-firefox-57/ ++++++++++++++++++++++++++++++++++++ http://www.nirsoft.net/utils/passwordfox.html (Win) PasswordFox v1.58 - Extract the usernames/passwords stored in Firefox Copyright (c) 2008 - 2017 Nir Sofer

Note: Some anti-virus show false positive. ++++++++++++++++++++++++++++++++++ Easily export your passwords from Firefox. https://github.com/kspearrin/ff-password-exporter

Export your passwords from Firefox in a portable CSV or JSON format. It works on Windows, macOS, and Linux. +++++++++++++++++++++++++++++++++++ 3 Tools to Decrypt and Recover Passwords Saved in Firefox • Raymond CC https://www.raymond.cc/blog/how-to-find-hidden-passwords-in-firefox/ +++++++++++++++++++++++++++++++++++ https://www.ghacks.net/2018/07/18/how-to-export-firefox-passwords-in-firefox-57/ ++++++++++++++++++++++++++++++++++++ https://github.com/kspearrin/ff-password-exporter

https://www.ghacks.net/2018/07/18/how-to-export-firefox-passwords-in-firefox-57/ ++++++++++++++++++++++++++++++++++++ http://www.nirsoft.net/utils/passwordfox.html (Win) PasswordFox v1.58 - Extract the usernames/passwords stored in Firefox Copyright (c) 2008 - 2017 Nir Sofer Note: Some anti-virus show false positive. ++++++++++++++++++++++++++++++++++ Easily export your passwords from Firefox. https://github.com/kspearrin/ff-password-exporter Export your passwords from Firefox in a portable CSV or JSON format. It works on Windows, macOS, and Linux. +++++++++++++++++++++++++++++++++++ 3 Tools to Decrypt and Recover Passwords Saved in Firefox • Raymond CC https://www.raymond.cc/blog/how-to-find-hidden-passwords-in-firefox/ +++++++++++++++++++++++++++++++++++ https://www.ghacks.net/2018/07/18/how-to-export-firefox-passwords-in-firefox-57/ ++++++++++++++++++++++++++++++++++++ https://github.com/kspearrin/ff-password-exporter
Was this helpful to you?
Quote
FredMcD
  • Top 10 Contributor
3984 solutions 55565 answers

Firefox uses the logins.json and key3.db for login data. With v58+ the key4.db file is used.

Corrected Error  :-/

Firefox uses the '''logins.json''' and '''key3.db''' for login data. With v58+ the '''key4.db''' file is used. Corrected Error :-/

Modified by FredMcD

Was this helpful to you?
Quote
jscher2000
  • Top 10 Contributor
8105 solutions 66211 answers

In new installations of Firefox, logins.json and key4.db are paired. It sounds like the migration from logins.json+key3.db to logins.json+key4.db did not work, but I'm not sure why or how to trigger a re-run.

Where did you find the backups?

Is there an "Old Firefox Data" folder on your desktop?

Do you run Kaspersky? There have been recent threads about unwanted Master Password prompts with Kaspersky, so there may have been some changes in how it interacts with Firefox.

In new installations of Firefox, logins.json and key4.db are paired. It sounds like the migration from logins.json+key3.db to logins.json+key4.db did not work, but I'm not sure why or how to trigger a re-run. Where did you find the backups? Is there an "Old Firefox Data" folder on your desktop? Do you run Kaspersky? There have been recent threads about unwanted Master Password prompts with Kaspersky, so there may have been some changes in how it interacts with Firefox.
Was this helpful to you?
Quote

Question owner

FredMcD said

Firefox uses the logins.json and key3.db for login data. With v58+ the key4.db file is not used.

Interesting, then, that there was no key4.db with my installation of v57 and installing/running actually v64 created one. But perhaps I misunderstand and key4.db is used for something else in v64.

Unfortunately, of the tools you suggest all but one is Windows only and the remaining one insists on there being a key4.db. So, no use there.

''FredMcD [[#answer-1184138|said]]'' <blockquote> Firefox uses the '''logins.json''' and '''key3.db''' for login data. With v58+ the '''key4.db''' file is not used. </blockquote> Interesting, then, that there was no key4.db with my installation of v57 and installing/running actually v64 created one. But perhaps I misunderstand and key4.db is used for something else in v64. Unfortunately, of the tools you suggest all but one is Windows only and the remaining one insists on there being a key4.db. So, no use there.
Was this helpful to you?
Quote

Question owner

jscher2000 said

Where did you find the backups?

Is there an "Old Firefox Data" folder on your desktop?

The backups are in Time Machine and there is no old FF data folder on the desktop.

jscher2000 said

Do you run Kaspersky?

No, I don't run Kaspersky. I did see people had problems with it so tried disabling my Avast in case that was causing a similar issue.

''jscher2000 [[#answer-1184145|said]]'' <blockquote> Where did you find the backups? <br><br> Is there an "Old Firefox Data" folder on your desktop? </blockquote> The backups are in Time Machine and there is no old FF data folder on the desktop. ''jscher2000 [[#answer-1184145|said]]'' <blockquote> Do you run Kaspersky? </blockquote> No, I don't run Kaspersky. I did see people had problems with it so tried disabling my Avast in case that was causing a similar issue.
Was this helpful to you?
Quote

Question owner

I did enter my OS details when I posted the question, but they don't seem to appear. Apologies for that.

I'm on MacOS 10.13.6.

I did enter my OS details when I posted the question, but they don't seem to appear. Apologies for that. I'm on MacOS 10.13.6.
Was this helpful to you?
Quote
FredMcD
  • Top 10 Contributor
3984 solutions 55565 answers

Helpful Reply

FredMcD said

With v58+ the key4.db file is used.

Sorry, I make a misteek, mistook, mischief . . . . Error.

After Firefox v58, the key3 is no longer used. Instead, the key4 file is used. Sorry  :-(

''FredMcD [[#answer-1184138|said]]'' <blockquote> With v58+ the '''key4.db''' file is used. </blockquote> Sorry, I make a misteek, mistook, mischief . . . . Error. After Firefox v58, the key3 is no longer used. Instead, the key4 file is used. Sorry :-(
Was this helpful to you? 1
Quote
cor-el
  • Top 10 Contributor
  • Moderator
16929 solutions 152863 answers

Helpful Reply

What files do you have in the Time Machine backup?

Are there logins.json and key4.db files from a time that the passwords worked?

If you have a matching logins.json and key4.db as backup then first try to place these files in a profile folder. If the backup includes key3.db then try this key file with logins.json and make sure to remove key4.db. You can also try this in a new profile.

What files do you have in the Time Machine backup? Are there logins.json and key4.db files from a time that the passwords worked? If you have a matching logins.json and key4.db as backup then first try to place these files in a profile folder. If the backup includes key3.db then try this key file with logins.json and make sure to remove key4.db. You can also try this in a new profile. *https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles
Was this helpful to you? 1
Quote

Question owner

FredMcD said

Sorry, I make a misteek, mistook, mischief . . . . Error.

Aha! That makes more sense - thanks for coughing to it :)

cor-el said

What files do you have in the Time Machine backup? ...

Although I'd already tried this, your reply prompted me to try again. I went one date further back in my backup history, restored logins.json and key3.db and re-ran FF57. The passwords were now deciphered and available. Shut down FF57, run FF64 and the migration apparently re-ran - the passwords are now deciphered and available in FF64.

So thank you, all, who prompted me to keep trying.

''FredMcD [[#answer-1184183|said]]'' <blockquote> Sorry, I make a misteek, mistook, mischief . . . . Error. </blockquote> Aha! That makes more sense - thanks for coughing to it :) ''cor-el [[#answer-1184195|said]]'' <blockquote> What files do you have in the Time Machine backup? ... </blockquote> Although I'd already tried this, your reply prompted me to try again. I went one date further back in my backup history, restored logins.json and key3.db and re-ran FF57. The passwords were now deciphered and available. Shut down FF57, run FF64 and the migration apparently re-ran - the passwords are now deciphered and available in FF64. So thank you, all, who prompted me to keep trying.
Was this helpful to you? 0
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.