Closed Bug 1693785 Opened 5 years ago Closed 5 years ago

Unencrypted key4.db file lead to expose creds

Categories

(Toolkit :: Password Manager, defect)

Firefox 85
defect

Tracking

()

RESOLVED DUPLICATE of bug 1695998

People

(Reporter: sy3omda, Unassigned)

Details

Attachments

(1 file)

Attached video 2021-02-19_14-10-11.mp4 —

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.152 Safari/537.36

Steps to reproduce:

Hi,
I was writing bad usb scripts for testing purpose using Arduino and Digispark Attiny85 and I was imagining scenarios for what it capable to from victim PC using this Kit.
I managed to do things and the important part is stealing files which is responsible for storing user creds in Mozilla Firefox (key4.db, login.json ).
I KNOW key4.db will be encrypted by assigning Master Password (Primary) in Password manager inside Firefox setting BUT this is [AN OPTION] for Firefox users!
Which I think it shouldn`t be that way, as I’m using many browsers and most of theme encrypt the creds database files by DEFAULT because this is a security concern not a feature, user may enable it OR not!
An example for browsers doing this (Chrome, IE, Brave, …).
Of course I’m not comparing Firefox with others BUT as I moved recently to Firefox I do really care about my security and others as well.

Actual results:

The POC for proving this could be by comprising victim pc via any scenario (known CVE or other way) but I will provide my scenario which is require physical access for victim PC via input Bad USB (Attiny85) which is programed with script to steal user creds stored in (key4.db, login.json).
And send it to slack which I will download and decrypt using one of tools available on Github (FF Password Exporter) [https://github.com/kspearrin/ff-password-exporter].

As i reproduced this via Attiny85 script so i don't know if you have it or not, to attach the actual script so you an reproduce it.
But in case you have the kit let me know to send it to you.

PS: I don’t think this would title with a security best practice as it about protecting user’s credentials.
OS: Windows 10 (20H2), Linux (KDE Neon)
Browser: Firefox 85.0.2 (Latest)

Expected results:

Suggested Remediation:
Encrypt the files responsible for storing user creds by default.

Component: Untriaged → Password Manager
Product: Firefox → Toolkit

Thanks for filing this. As you point out, our current mitigation for this scenario is to use Primary Password. In the future we would like to move towards using the auth services the OS provides, which is better positioned to provide theses kind of assurances. We have bug 1641473 on file as our next step in this process.

Thanks Sam for your response.
as you explain you are aware of this, so i would like to share my experience and share the recommendation step for protecting creds saved by Password manager via using Primary Password as an essential step for using this toolkit.
Are you okay with this ?

(In reply to Emad Youssef from comment #3)

Thanks Sam for your response.
as you explain you are aware of this, so i would like to share my experience and share the recommendation step for protecting creds saved by Password manager via using Primary Password as an essential step for using this toolkit.
Are you okay with this ?

Yes that's fine. We have an existing article on using Primary Password on sumo. But feel free to write and publish your own.

I'm going to close this bug as a duplicate of bug 1695998, where we'll develop a plan to improve this situation.

:dveditz, can you open this bug?

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Flags: needinfo?(dveditz)
Resolution: --- → DUPLICATE
Group: firefox-core-security
Flags: needinfo?(dveditz)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: