Land logins API
Categories
(WebExtensions :: Experiments, defect, P5)
Tracking
(Not tracked)
People
(Reporter: andy+bugzilla, Unassigned)
References
Details
(Whiteboard: triaged)
Attachments
(2 files)
Updated•9 years ago
|
Updated•9 years ago
|
Comment 1•8 years ago
|
||
Reporter | ||
Updated•8 years ago
|
Comment 2•8 years ago
|
||
Comment 3•8 years ago
|
||
Comment hidden (mozreview-request) |
Comment 5•8 years ago
|
||
mozreview-review |
Comment hidden (mozreview-request) |
Comment 7•8 years ago
|
||
mozreview-review-reply |
Comment hidden (mozreview-request) |
Comment 9•8 years ago
|
||
mozreview-review |
Comment 10•8 years ago
|
||
Comment 11•8 years ago
|
||
Comment 12•8 years ago
|
||
Comment 13•8 years ago
|
||
Comment 14•8 years ago
|
||
Comment 16•8 years ago
|
||
Updated•8 years ago
|
Updated•8 years ago
|
Comment 17•8 years ago
|
||
Comment 18•8 years ago
|
||
Comment hidden (advocacy) |
Comment hidden (advocacy) |
Comment hidden (advocacy) |
Updated•7 years ago
|
Updated•7 years ago
|
Comment 24•6 years ago
|
||
We should decide whether this is happening, then maybe start over with fresh bugs.
Comment 26•6 years ago
•
|
||
+1 for happening
I need access to passwords storage for almost all my addons, but usually only to store passwords in a secure way and then read them back. I just want to store my own passwords that the user gave me in a secure way.
Bug 1285270 asks to read the password for one specific site, for addons that augment and use that site and to avoid double login. That's also fair, if that's clearly shown to the user in the permissions.
Accessing all existing passwords stored by other parties (browser, other addons) for any site is a whole different ball game and should be a separate permission than storing and reading my own passwords.
Comment 27•6 years ago
|
||
From my perspective this is happening, but I'd like to get in touch with a few stakeholders before we proceed. I feel there are different use cases to a logins API that we've tried to cover in one go:
- Provide a secure way for add-ons to store sensitive information, such as login tokens and passwords. This storage is add-on specific.
- Provide a way for add-ons to access passwords for websites and autofill.
My current thinking involves implementing (1) in a way that the sensitive data is only available to the add-on itself. I'm not set on which storage to use for this, but ideally it should be behind the same security mechanism Firefox uses (e.g. master passwords, or whatever the evolution of that will be).
For (2) I feel that the risk is too great to offer read access to this information. While there are certainly other ways to steal sensitive information that don't involve a passwords/logins permission, having an API that provides direct read access for developers without any hoops seems careless. What I could imagine is a write-only API that would allow add-ons to save information for websites, without obtaining access to it.
Comment 28•6 years ago
|
||
(In reply to Philipp Kewisch [:Fallen] [:📆] from comment #27)
- Provide a way for add-ons to access passwords for websites and autofill.
I would definitely be interested in this case, as one who previously had two add-ons doing this on Firefox, up until legacy add-ons were cut off.
For (2) I feel that the risk is too great to offer read access to this information. While there are certainly other ways to steal sensitive information that don't involve a passwords/logins permission, having an API that provides direct read access for developers without any hoops seems careless.
Does having to ask permission and let the user see that it can do this not count as some sort of hoop? Is there no way to mitigate the risk? FWIW, I would be in favor of having separate read and write permissions, so add-ons that only need write access can ask only for the less risky permission.
Comment 29•6 years ago
|
||
If the permission was to be asked, there would have to be safeguards built in, or Firefox would have to inform the user that giving permission is extremely risky and put in an "I know what I'm doing" checkbox. It seems rather inadequate as a hoop. An add-on would also need to be isolated from other add-ons so the add-on with the password permission can't pass the passwords off to some other (possibly nefarious) extension. So each extension should have it's own isolated access to the password list in the API.
One thought is that logins API could only be used by an extension if the user has set a master password (MP) on the login storage, and make it use the MP every time it wants to access it, even if the MP has already been entered in a given session. This would be like the additional MP entry needed to view passwords in the current UI. A dialogue to the effect of "[extension] wants to access your password list. Enter the master password to give permission. Press cancel and uninstall the extension if you do not expect this behavior."
Comment 30•6 years ago
|
||
To follow up on Philipp Kewish's comment (comment #27), there's a third use case that is also relevant for the logins API: allowing the user to store passwords in a secure location outside of Firefox - specifically, system password stores such as the Windows Credential Manager, macOS's Keychain, or the GNOME Keyring in various flavors of Linux.
I myself, before the old nsiLoginStorage API was deprecated, was using an extension that stored passwords in the macOS Keychain instead of Firefox's storage.
Comment 31•6 years ago
|
||
If you integrate the features of the good old Saved Password Editor
https://addons.thunderbird.net/de/thunderbird/addon/saved-password-editor/?src=userprofile
https://legacycollector.org/firefox-addons/60265/index.html
you may can reduce the requirements on this API
Comment 32•6 years ago
|
||
That would eliminate any need for that one add-on, sure. But not any others. My other relevant add-on allowed users to manage metadata (things like tags and notes) for logins; it used hashed usernames as lookup keys. There was also Password Exporter, which did exactly what the name implies, as well as importing them. Those also required full read access.
Updated•3 years ago
|
Comment 33•3 years ago
|
||
The severity field for this bug is relatively low, S3. However, the bug has 4 duplicates, 26 votes and 62 CCs.
:robwu, could you consider increasing the bug severity?
For more information, please visit auto_nag documentation.
Comment 34•3 years ago
|
||
The last needinfo from me was triggered in error by recent activity on the bug. I'm clearing the needinfo since this is a very old bug and I don't know if it's still relevant.
Comment 35•2 years ago
|
||
Ping status. Is there "Login Manager API" in Firefox?. Is there an API that allows access to saved logins in Firefox?
Description
•