[GH-ISSUE #159] Need to protect the server password #149

Closed
opened 2026-02-25 22:36:17 +03:00 by kerem · 14 comments
Owner

Originally created by @nachoparker on GitHub (Aug 30, 2018).
Original GitHub issue: https://github.com/floccusaddon/floccus/issues/159

Hello,

First, thank you for your hard work in this addon. I have been using it for a few days and it is really nice!!

The only bad thing I see about it is sadly a serious one. I downloaded the debug log and to my surprise there it was, my server's password.

A simple grep -r mypass in the ~/.mozilla folder showed me that any agent that manages read access to this folder will immediately gain access to my private cloud where I store all my sensitive private information.

What would be the best way to grant access without storing the password in plain text? Maybe the user could be required to generate a random tokens to decrypt the password that then would only be unencrypted in memory before being sent through HTTPS.

Thoughts?

Originally created by @nachoparker on GitHub (Aug 30, 2018). Original GitHub issue: https://github.com/floccusaddon/floccus/issues/159 Hello, First, thank you for your hard work in this addon. I have been using it for a few days and it is really nice!! The only bad thing I see about it is sadly a serious one. I downloaded the debug log and to my surprise there it was, my server's password. A simple `grep -r mypass` in the `~/.mozilla` folder showed me that any agent that manages read access to this folder will immediately gain access to my private cloud where I store all my sensitive private information. What would be the best way to grant access without storing the password in plain text? Maybe the user could be required to generate a random tokens to decrypt the password that then would only be unencrypted in memory before being sent through HTTPS. Thoughts?
kerem 2026-02-25 22:36:17 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@marcelklehr commented on GitHub (Aug 30, 2018):

Hey nacho! Thanks for your kind words :)
The password leakage you mention is actually a regression, as the passwords are persisted in an encrypted fashion if you set a n extension passphrase, but the logging mechanism doesn't care about that, yet. I'll get on it :)

<!-- gh-comment-id:417364613 --> @marcelklehr commented on GitHub (Aug 30, 2018): Hey nacho! Thanks for your kind words :) The password leakage you mention is actually a regression, as the passwords are persisted in an encrypted fashion if you set a n extension passphrase, but the logging mechanism doesn't care about that, yet. I'll get on it :)
Author
Owner

@nachoparker commented on GitHub (Aug 31, 2018):

Thank you! that was fast!

my password is still in cleartext in firefox/w24O4c.default/browser-extension-data/floccus@handmadeideas.org/storage.js, I think it should be somehow encrypted. Agree?

<!-- gh-comment-id:417549885 --> @nachoparker commented on GitHub (Aug 31, 2018): Thank you! that was fast! my password is still in cleartext in `firefox/w24O4c.default/browser-extension-data/floccus@handmadeideas.org/storage.js`, I think it should be somehow encrypted. Agree?
Author
Owner

@marcelklehr commented on GitHub (Aug 31, 2018):

Have you set a passphrase (Tick "secure your credentials") and restarted your browser? I think, that file is only written when you close the browser.

<!-- gh-comment-id:417612942 --> @marcelklehr commented on GitHub (Aug 31, 2018): Have you set a passphrase (Tick "secure your credentials") and restarted your browser? I think, that file is only written when you close the browser.
Author
Owner

@nachoparker commented on GitHub (Aug 31, 2018):

I have, but the password is still there

<!-- gh-comment-id:417652816 --> @nachoparker commented on GitHub (Aug 31, 2018): I have, but the password is still there
Author
Owner

@marcelklehr commented on GitHub (Aug 31, 2018):

Fooo. That's tough. Which adapter? Which firefox version?

<!-- gh-comment-id:417665660 --> @marcelklehr commented on GitHub (Aug 31, 2018): Fooo. That's tough. Which adapter? Which firefox version?
Author
Owner

@nachoparker commented on GitHub (Sep 1, 2018):

firefox 61.0.2

adapter? what is an adapter?

<!-- gh-comment-id:417817699 --> @nachoparker commented on GitHub (Sep 1, 2018): firefox 61.0.2 adapter? what is an adapter?
Author
Owner

@marcelklehr commented on GitHub (Sep 1, 2018):

Sorry. Which backend are you using? XBEL/WebDAV or Nextcloud Bookmarks? :)

<!-- gh-comment-id:417817957 --> @marcelklehr commented on GitHub (Sep 1, 2018): Sorry. Which backend are you using? XBEL/WebDAV or Nextcloud Bookmarks? :)
Author
Owner

@nachoparker commented on GitHub (Sep 1, 2018):

aah :D

NC bookmarks

<!-- gh-comment-id:417818007 --> @nachoparker commented on GitHub (Sep 1, 2018): aah :D NC bookmarks
Author
Owner

@marcelklehr commented on GitHub (Sep 1, 2018):

Which floccus version?

<!-- gh-comment-id:417818292 --> @marcelklehr commented on GitHub (Sep 1, 2018): Which floccus version?
Author
Owner

@nachoparker commented on GitHub (Sep 1, 2018):

floccus 3.0.6

<!-- gh-comment-id:417876644 --> @nachoparker commented on GitHub (Sep 1, 2018): floccus 3.0.6
Author
Owner

@marcelklehr commented on GitHub (Sep 2, 2018):

Aah, now I get it. The logs are not cleared, of course, so the existing log data that still contain the password are of course still there. You can uninstall and reinstall the extension to fix that. (You really had my questioning myself there :D)

EDIT: By deafult, the log rotates with a cycle of 2500 entries, so after a while your password will rotate out of the file ;)

<!-- gh-comment-id:417933634 --> @marcelklehr commented on GitHub (Sep 2, 2018): Aah, now I get it. The logs are not cleared, of course, so the existing log data that still contain the password are of course still there. You can uninstall and reinstall the extension to fix that. (You really had my questioning myself there :D) EDIT: By deafult, the log rotates with a cycle of 2500 entries, so after a while your password will rotate out of the file ;)
Author
Owner

@nachoparker commented on GitHub (Sep 2, 2018):

I don't know when it happened, but the password is now encrypted in storage.js. This file doesn't seem to be logs (which I deleted), but the user configuration. In any case seems to be solved.

I suggest you make password protection mandatory, non optional in order to protect your users. We all know that most people will not protect their passwords otherwise.

Many thanks for the help!

<!-- gh-comment-id:417934345 --> @nachoparker commented on GitHub (Sep 2, 2018): I don't know when it happened, but the password is now encrypted in `storage.js`. This file doesn't seem to be logs (which I deleted), but the user configuration. In any case seems to be solved. I suggest you make password protection mandatory, non optional in order to protect your users. We all know that most people will not protect their passwords otherwise. Many thanks for the help!
Author
Owner

@marcelklehr commented on GitHub (Sep 2, 2018):

I suggest you make password protection mandatory, non optional in order to protect your users. We all know that most people will not protect their passwords otherwise.

Good idea! :)

<!-- gh-comment-id:417935379 --> @marcelklehr commented on GitHub (Sep 2, 2018): > I suggest you make password protection mandatory, non optional in order to protect your users. We all know that most people will not protect their passwords otherwise. Good idea! :)
Author
Owner

@github-actions[bot] commented on GitHub (Mar 21, 2023):

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

<!-- gh-comment-id:1477739055 --> @github-actions[bot] commented on GitHub (Mar 21, 2023): This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/floccus#149
No description provided.