Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encryption passphrase is forgotten and needs to be inserted again #257

Closed
boris-bc opened this issue Mar 21, 2023 · 6 comments
Closed

Encryption passphrase is forgotten and needs to be inserted again #257

boris-bc opened this issue Mar 21, 2023 · 6 comments
Labels

Comments

@boris-bc
Copy link

System Information

  • Extension Version: 2.2.6.4550
  • App Version: N/A
  • Browser and Version: Vivaldi 5.7.2921.63 (Stable channel) (x86_64)
  • Client OS and Version: macOS Ventura 13.2.1 (22D68)

Steps to reproduce

  1. Enable password encryption on the server
  2. Enter the encryption passphrase in the extension to unlock the passwords - all works fine
  3. Sleep the computer (without quitting the browser) or just quit the browser
  4. Start the computer or the browser - the extension will ask for the passphrase
  5. There is no way to save the passphrase in the extension
  6. This forces to use simple passphrase to remember

Expected result

The extension should remember the passphrase and not ask to enter it again.

Actual result

The extension keeps asking for the pasphrase.

Browser log

Browser log background.js:2 Could not establish connection. Receiving end does not exist. Error: Could not establish connection. Receiving end does not exist. at I (background.js:2:748828) Object Error: Could not establish connection. Receiving end does not exist. at I (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:748828) _addError @ background.js:2 background.js:2 Could not establish connection. Receiving end does not exist. Error: Could not establish connection. Receiving end does not exist. at I (background.js:2:748828) Object Error: Could not establish connection. Receiving end does not exist. at I (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:748828) _addError @ background.js:2 background.js:2 Could not establish connection. Receiving end does not exist. Error: Could not establish connection. Receiving end does not exist. at I (background.js:2:748828) Object Error: Could not establish connection. Receiving end does not exist. at I (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:748828) _addError @ background.js:2 background.js:2 Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist. at I (background.js:2:748828) background.js:2 Could not establish connection. Receiving end does not exist. Error: Could not establish connection. Receiving end does not exist. at I (background.js:2:748828) Object Error: Could not establish connection. Receiving end does not exist. at I (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:748828) _addError @ background.js:2 background.js:2 Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist. at I (background.js:2:748828) background.js:2 Could not establish connection. Receiving end does not exist. Error: Could not establish connection. Receiving end does not exist. at I (background.js:2:748828) Object Error: Could not establish connection. Receiving end does not exist. at I (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:748828) _addError @ background.js:2 background.js:2 Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist. at I (background.js:2:748828) background.js:2 A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received at I (background.js:2:748828) Object Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received at I (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:748828) _addError @ background.js:2 background.js:2 A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received at I (background.js:2:748828) Object Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received at I (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:748828) _addError @ background.js:2 background.js:2 A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received at I (background.js:2:748828) Object Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received at I (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:748828) _addError @ background.js:2 background.js:2 A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received at I (background.js:2:748828) Object Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received at I (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:748828) _addError @ background.js:2 nextcloud/index.php/apps/passwords/api/1.0/session/keepalive:1 Failed to load resource: net::ERR_INTERNET_DISCONNECTED background.js:2 Failed to fetch TypeError: Failed to fetch at O._executeRequest (background.js:2:572614) at O.send (background.js:2:570831) at Object._keepalive (background.js:2:774829) at background.js:2:773491 Object TypeError: Failed to fetch at O._executeRequest (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:572614) at O.send (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:570831) at Object._keepalive (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:774829) at chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:773491 _addError @ background.js:2 nextcloud/index.php/apps/passwords/api/1.0/password/delete:1 Failed to load resource: the server responded with a status of 412 (Precondition failed) background.js:2 PreconditionFailedError: HTTP 412 - Precondition failed at g.getClass (background.js:2:556722) at f.getClass (background.js:2:616251) at O._getHttpError (background.js:2:573303) at O._processJsonResponse (background.js:2:572728) at O.send (background.js:2:571261) at async n.delete (background.js:2:558213) at async i.execute (PasswordDelete.js:1:572) at async Object._executeController (background.js:2:864525) at async Array. (background.js:2:859783) at async Object._notifyListeners (background.js:2:823084) delete @ background.js:2 background.js:2 HTTP 412 - Precondition failed PreconditionFailedError: HTTP 412 - Precondition failed at g.getClass (background.js:2:556722) at f.getClass (background.js:2:616251) at O._getHttpError (background.js:2:573303) at O._processJsonResponse (background.js:2:572728) at O.send (background.js:2:571261) at async n.delete (background.js:2:558213) at async i.execute (PasswordDelete.js:1:572) at async Object._executeController (background.js:2:864525) at async Array. (background.js:2:859783) at async Object._notifyListeners (background.js:2:823084) Object PreconditionFailedError: HTTP 412 - Precondition failed at g.getClass (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:556722) at f.getClass (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:616251) at O._getHttpError (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:573303) at O._processJsonResponse (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:572728) at O.send (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:571261) at async n.delete (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:558213) at async i.execute (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/PasswordDelete.js:1:572) at async Object._executeController (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:864525) at async Array. (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:859783) at async Object._notifyListeners (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:823084) _addError @ background.js:2 background.js:2 Could not establish connection. Receiving end does not exist. Error: Could not establish connection. Receiving end does not exist. at I (background.js:2:748828) Object Error: Could not establish connection. Receiving end does not exist. at I (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:748828) _addError @ background.js:2 background.js:2 Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist. at I (background.js:2:748828) background.js:2 Could not establish connection. Receiving end does not exist. Error: Could not establish connection. Receiving end does not exist. at I (background.js:2:748828) Object Error: Could not establish connection. Receiving end does not exist. at I (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:748828) _addError @ background.js:2 background.js:2 Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist. at I (background.js:2:748828) nextcloud/index.php/apps/passwords/api/1.0/password/create:1 Failed to load resource: the server responded with a status of 412 (Precondition failed) background.js:2 PreconditionFailedError: HTTP 412 - Precondition failed at g.getClass (background.js:2:556722) at f.getClass (background.js:2:616251) at O._getHttpError (background.js:2:573303) at O._processJsonResponse (background.js:2:572728) at O.send (background.js:2:571261) at async n.create (background.js:2:557435) at async Object.createPassword (background.js:2:762167) at async Object.processTask (background.js:2:761697) at async Object.createItem (background.js:2:761373) create @ background.js:2 background.js:2 HTTP 412 - Precondition failed PreconditionFailedError: HTTP 412 - Precondition failed at g.getClass (background.js:2:556722) at f.getClass (background.js:2:616251) at O._getHttpError (background.js:2:573303) at O._processJsonResponse (background.js:2:572728) at O.send (background.js:2:571261) at async n.create (background.js:2:557435) at async Object.createPassword (background.js:2:762167) at async Object.processTask (background.js:2:761697) at async Object.createItem (background.js:2:761373) Object PreconditionFailedError: HTTP 412 - Precondition failed at g.getClass (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:556722) at f.getClass (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:616251) at O._getHttpError (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:573303) at O._processJsonResponse (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:572728) at O.send (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:571261) at async n.create (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:557435) at async Object.createPassword (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:762167) at async Object.processTask (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:761697) at async Object.createItem (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:761373) _addError @ background.js:2 background.js:2 Could not establish connection. Receiving end does not exist. Error: Could not establish connection. Receiving end does not exist. at I (background.js:2:748828) Object Error: Could not establish connection. Receiving end does not exist. at I (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:748828) _addError @ background.js:2 _generated_background_page.html:1 Uncaught (in promise) n background.js:2 Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist. at I (background.js:2:748828) nextcloud/index.php/apps/passwords/api/1.0/password/create:1 Failed to load resource: the server responded with a status of 412 (Precondition failed) background.js:2 PreconditionFailedError: HTTP 412 - Precondition failed at g.getClass (background.js:2:556722) at f.getClass (background.js:2:616251) at O._getHttpError (background.js:2:573303) at O._processJsonResponse (background.js:2:572728) at O.send (background.js:2:571261) at async n.create (background.js:2:557435) at async Object.createPassword (background.js:2:762167) at async Object.processTask (background.js:2:761697) at async Object.processTask (background.js:2:761890) at async Object.createItem (background.js:2:761373) create @ background.js:2 background.js:2 HTTP 412 - Precondition failed PreconditionFailedError: HTTP 412 - Precondition failed at g.getClass (background.js:2:556722) at f.getClass (background.js:2:616251) at O._getHttpError (background.js:2:573303) at O._processJsonResponse (background.js:2:572728) at O.send (background.js:2:571261) at async n.create (background.js:2:557435) at async Object.createPassword (background.js:2:762167) at async Object.processTask (background.js:2:761697) at async Object.processTask (background.js:2:761890) at async Object.createItem (background.js:2:761373) Object PreconditionFailedError: HTTP 412 - Precondition failed at g.getClass (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:556722) at f.getClass (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:616251) at O._getHttpError (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:573303) at O._processJsonResponse (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:572728) at O.send (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:571261) at async n.create (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:557435) at async Object.createPassword (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:762167) at async Object.processTask (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:761697) at async Object.processTask (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:761890) at async Object.createItem (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:761373) _addError @ background.js:2 background.js:2 Could not establish connection. Receiving end does not exist. Error: Could not establish connection. Receiving end does not exist. at I (background.js:2:748828) Object Error: Could not establish connection. Receiving end does not exist. at I (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:748828) _addError @ background.js:2 _generated_background_page.html:1 Uncaught (in promise) n background.js:2 Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist. at I (background.js:2:748828) nextcloud/index.php/apps/passwords/api/1.0/password/create:1 Failed to load resource: the server responded with a status of 412 (Precondition failed) background.js:2 PreconditionFailedError: HTTP 412 - Precondition failed at g.getClass (background.js:2:556722) at f.getClass (background.js:2:616251) at O._getHttpError (background.js:2:573303) at O._processJsonResponse (background.js:2:572728) at O.send (background.js:2:571261) at async n.create (background.js:2:557435) at async Object.createPassword (background.js:2:762167) at async Object.processTask (background.js:2:761697) at async Object.processTask (background.js:2:761890) at async Object.processTask (background.js:2:761890) create @ background.js:2 background.js:2 HTTP 412 - Precondition failed PreconditionFailedError: HTTP 412 - Precondition failed at g.getClass (background.js:2:556722) at f.getClass (background.js:2:616251) at O._getHttpError (background.js:2:573303) at O._processJsonResponse (background.js:2:572728) at O.send (background.js:2:571261) at async n.create (background.js:2:557435) at async Object.createPassword (background.js:2:762167) at async Object.processTask (background.js:2:761697) at async Object.processTask (background.js:2:761890) at async Object.processTask (background.js:2:761890) Object PreconditionFailedError: HTTP 412 - Precondition failed at g.getClass (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:556722) at f.getClass (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:616251) at O._getHttpError (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:573303) at O._processJsonResponse (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:572728) at O.send (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:571261) at async n.create (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:557435) at async Object.createPassword (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:762167) at async Object.processTask (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:761697) at async Object.processTask (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:761890) at async Object.processTask (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:761890) _addError @ background.js:2 _generated_background_page.html:1 Uncaught (in promise) n nextcloud/index.php/apps/passwords/api/1.0/password/create:1 Failed to load resource: the server responded with a status of 412 (Precondition failed) background.js:2 PreconditionFailedError: HTTP 412 - Precondition failed at g.getClass (background.js:2:556722) at f.getClass (background.js:2:616251) at O._getHttpError (background.js:2:573303) at O._processJsonResponse (background.js:2:572728) at O.send (background.js:2:571261) at async n.create (background.js:2:557435) at async Object.createPassword (background.js:2:762167) at async Object.processTask (background.js:2:761697) at async Object.processTask (background.js:2:761890) at async Object.processTask (background.js:2:761890) create @ background.js:2 background.js:2 HTTP 412 - Precondition failed PreconditionFailedError: HTTP 412 - Precondition failed at g.getClass (background.js:2:556722) at f.getClass (background.js:2:616251) at O._getHttpError (background.js:2:573303) at O._processJsonResponse (background.js:2:572728) at O.send (background.js:2:571261) at async n.create (background.js:2:557435) at async Object.createPassword (background.js:2:762167) at async Object.processTask (background.js:2:761697) at async Object.processTask (background.js:2:761890) at async Object.processTask (background.js:2:761890) Object PreconditionFailedError: HTTP 412 - Precondition failed at g.getClass (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:556722) at f.getClass (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:616251) at O._getHttpError (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:573303) at O._processJsonResponse (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:572728) at O.send (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:571261) at async n.create (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:557435) at async Object.createPassword (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:762167) at async Object.processTask (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:761697) at async Object.processTask (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:761890) at async Object.processTask (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:761890) _addError @ background.js:2 nextcloud/index.php/apps/passwords/api/1.0/password/create:1 Failed to load resource: the server responded with a status of 412 (Precondition failed) background.js:2 PreconditionFailedError: HTTP 412 - Precondition failed at g.getClass (background.js:2:556722) at f.getClass (background.js:2:616251) at O._getHttpError (background.js:2:573303) at O._processJsonResponse (background.js:2:572728) at O.send (background.js:2:571261) at async n.create (background.js:2:557435) at async Object.createPassword (background.js:2:762167) at async Object.processTask (background.js:2:761697) at async Object.processTask (background.js:2:761890) at async Object.processTask (background.js:2:761890) create @ background.js:2 background.js:2 HTTP 412 - Precondition failed PreconditionFailedError: HTTP 412 - Precondition failed at g.getClass (background.js:2:556722) at f.getClass (background.js:2:616251) at O._getHttpError (background.js:2:573303) at O._processJsonResponse (background.js:2:572728) at O.send (background.js:2:571261) at async n.create (background.js:2:557435) at async Object.createPassword (background.js:2:762167) at async Object.processTask (background.js:2:761697) at async Object.processTask (background.js:2:761890) at async Object.processTask (background.js:2:761890) Object PreconditionFailedError: HTTP 412 - Precondition failed at g.getClass (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:556722) at f.getClass (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:616251) at O._getHttpError (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:573303) at O._processJsonResponse (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:572728) at O.send (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:571261) at async n.create (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:557435) at async Object.createPassword (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:762167) at async Object.processTask (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:761697) at async Object.processTask (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:761890) at async Object.processTask (chrome-extension://mhajlicjhgoofheldnmollgbgjheenbi/js/background.js:2:761890) _addError @ background.js:2 nextcloud/index.php/apps/passwords/api/1.0/password/list:1 Failed to load resource: the server responded with a status of 412 (Precondition failed) nextcloud/index.php/apps/passwords/api/1.0/folder/list:1 Failed to load resource: the server responded with a status of 412 (Precondition failed) nextcloud/index.php/apps/passwords/api/1.0/tag/list:1 Failed to load resource: the server responded with a status of 412 (Precondition failed)
@boris-bc boris-bc added the bug label Mar 21, 2023
@marius-wieschollek
Copy link
Owner

After some time of no contact with the server, the session is ended and the extension needs to restart the authentication process. The extension has no secure way of storing the encryption passphrase and therefore asks for it every time.

Duplicate of #174

@boris-bc
Copy link
Author

boris-bc commented Mar 21, 2023 via email

@boris-bc
Copy link
Author

boris-bc commented Mar 21, 2023 via email

@marius-wieschollek
Copy link
Owner

If you mean the android app from joleaf, it uses Androids KeyStore functionality to store the passphrase in a secure way.

@boris-bc
Copy link
Author

boris-bc commented Mar 21, 2023 via email

@marius-wieschollek
Copy link
Owner

I haven't checked the code of the iOS app, but it likely works in a similar manner.
The webextension can only use the APi provided by the browser which currently does not provide a secure way to store the data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants