News for hackers. Stuff that matters.
Re:Firefox Master Password System Has Been Poorly Secured fo... by jcranmer on Monday March 19, 2018 @08:37AM (#16617868)
Master passwords have a very narrow threat model that they are actually protecting against: it's protecting against people who have access to the password database (i.e., filesystem access) but not people who have access to ptrace-privileges (i.e., the ability to read the password directly out of process memory). Which pretty much means the only realistic use case is someone stole your laptop, but full-disk encryption is a much more relevant solution.

Mozilla has known for a very long time that the master password system isn't very effective. Even a decade ago, I remember them recommending not using it.

Re:Firefox Master Password System Has Been Poorly Secured fo... by signal11 on Monday March 19, 2018 @11:02AM (#16618861)
The “narrow threat model” actually applies to a very common social scenario where people share computers. For instance a family member might want to play Steam games, or print, or simply browse the web. Most people are not going to create a guest account for that. There passwords are then at risk if not adequately protected.

Even in work contexts, “hey can I use your computer to print something? Mine is frozen” is very common.

There was a similar discussion on the chromium tracker when they started storing passwords. I believe Chrome now use OS services (DPAPI on Windows and Keychain on MacOS) to protect passwords.

Re:Firefox Master Password System Has Been Poorly Secured fo... by gruez on Monday March 19, 2018 @04:07PM (#16622590)
workstation access + admin user[1] = game over from a security point of view.

at that point they can install a rootkit and bypass all your fancy DPAPI/keychain protections.

[1] before you say "but I got password on my sudo!", there's nothing preventing someone from aliasing sudo to

    sudo bash -c "/tmp/evil.sh; $*"
Re:Firefox Master Password System Has Been Poorly Secured fo... by vbezhenar on Monday March 19, 2018 @09:06AM (#16618021)
That's why my passwords in text file and I consider it fine. If someone breaks into my machine and I won't notice it, password will be keylogged anyway. The only true defense would be hardware-protected external password storage, but I'm not aware of any.
Re:Firefox Master Password System Has Been Poorly Secured fo... by pasta on Monday March 19, 2018 @10:22AM (#16618498)
People looking over your shoulders, you sending a screenshot where you forgot the open file in the background.

I agree a text file is 'secure' enough for you but a lot of password systems also hide the password in the UI which is a pro inho (I use KeePass).

Re:Firefox Master Password System Has Been Poorly Secured fo... by Ntrails on Monday March 19, 2018 @10:32AM (#16618584)
How often do you send screenshots on the internet without looking at them before you send? I mean, I know if I screenshot a browser for example some nerd will comment on all my bookmarks other tabs etc (because if it's someone else posting the screenshot the nerd is me).

A file in a place not immediately obvious to a casual browser without obvious references to what it is seems broadly fine to me. (I don't bother, Instead just re-use passwords because I'm a horrible person)

Re:Firefox Master Password System Has Been Poorly Secured fo... by paulryanrogers on Monday March 19, 2018 @09:08AM (#16618034)
Yubikey
Re:Firefox Master Password System Has Been Poorly Secured fo... by vbezhenar on Monday March 19, 2018 @09:24AM (#16618144)
Are you sure it can store passwords and decrypt them with required touch? What's its memory?
Re:Firefox Master Password System Has Been Poorly Secured fo... by gry on Monday March 19, 2018 @10:13AM (#16618437)
You can use a YubiKey for a portion of a master password. This is best used by manually typing "correct" and autocompleting the latter portion with plenty of entryop of the password/phrase "battery horse staple" from the key. This way, if someone steals the key, you've still got a secret.

You'll still need a password manager to store the unique passwords for your services.

https://www.yubico.com/support/knowledge-base/categories/art...

https://www.yubico.com/wp-content/uploads/2015/11/Yubico_Whi...

EDIT: Explanation

Re:Firefox Master Password System Has Been Poorly Secured fo... by vbezhenar on Tuesday March 20, 2018 @09:41AM (#16628430)
I think that advanced malware can intercept this master password and decrypt all data. I had in thought some hardware, which stores all passwords, reveals only metadata and to actually retrieve a single password, you have to physically interact with device (tap it, for example). In this case even if malware has full control over your PC, it can't retrieve all passwords, only those you've actually used.
Re:Firefox Master Password System Has Been Poorly Secured fo... by QasimK on Monday March 19, 2018 @08:48AM (#16617928)
Can I clarify the distinction between the two capabilities? Are you saying that if I download and execute e.g. “fake-meme-creator” which turns out to be malware for whatever reason, then it can read the filesystem as any normal process can, but it cannot access ptrace?

If this is the case, I’d consider it to be useful because in general I don’t trust apps as a rule.

Re:Firefox Master Password System Has Been Poorly Secured fo... by jcranmer on Monday March 19, 2018 @08:57AM (#16617976)
The way most systems are configured, your fake-meme-creator could access ptrace and the filesystem.
Re:Firefox Master Password System Has Been Poorly Secured fo... by s_gourichon on Monday March 19, 2018 @09:08AM (#16618033)
What is "most systems"? A few years ago this was true.

A decent distribution nowadays sets /proc/sys/kernel/yama/ptrace_scope to disallow any process to spy on other processes.

ptrace_scope was apparently introduced in 2011-2012, see https://github.com/torvalds/linux/commits/a2e5790d841658485d...

For more information:

https://www.kernel.org/doc/Documentation/security/Yama.txt

https://en.wikipedia.org/wiki/Ptrace

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin... (via https://wiki.ubuntu.com/SecurityTeam/Roadmap/KernelHardening... )

Re:Firefox Master Password System Has Been Poorly Secured fo... by cozzyd on Monday March 19, 2018 @09:51AM (#16618314)
Yeah but anyone developing will likely turn that off as it interferes with attaching gdb/strace/etc
Re:Firefox Master Password System Has Been Poorly Secured fo... by smacktoward on Monday March 19, 2018 @11:20AM (#16619022)
> Mozilla has known for a very long time that the master password system isn't very effective. Even a decade ago, I remember them recommending not using it.

A feature that users would be better off not using is a feature that should be removed, IMHO.

Re:Firefox Master Password System Has Been Poorly Secured fo... by magnat on Monday March 19, 2018 @10:27AM (#16618540)
> Which pretty much means the only realistic use case is someone stole your laptop

There is also case of "someone stole your backup", which is also quote realistic, especially when using third-party storage services.