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

Lost access to all messages after restoring from security key #26284

Closed
RalfJung opened this issue Oct 3, 2023 · 8 comments
Closed

Lost access to all messages after restoring from security key #26284

RalfJung opened this issue Oct 3, 2023 · 8 comments
Labels
A-E2EE A-E2EE-Key-Backup T-Defect X-Needs-Info This issue is blocked awaiting information from the reporter

Comments

@RalfJung
Copy link

RalfJung commented Oct 3, 2023

Steps to reproduce

  1. Backup the security key from the element web UI
  2. Delete all storage in the browser
  3. Log back in to element, and when prompted to restore the key, select the previously created backup

Outcome

What did you expect?

I am back exactly where I left the session before deleting the browser storage.

What happened instead?

I seem to have lost access to all my messages. It just says "Unable to decrypt message" everywhere. This is a disaster. I will have to switch to a different chat system (one that doesn't eat all my data despite creating a backup) if there is no way to solve this problem.

Operating system

Debian Linux

Browser information

Firefox 118.0.1

URL for webapp

No response

Application version

Riot version: 1.11.43 Olm version: 3.2.14

Homeserver

No response

Will you send logs?

No

@weeman1337
Copy link
Contributor

weeman1337 commented Oct 9, 2023

@RalfJung Thank you for opening an issue. There is another known issue that decryption only works after reload.

  • Do the messages show up if you reload the app?
  • Do the messages show up if you click „Restore from backup“ in security settings?

Also can you send logs after you entered the passphrase when the messages are not readable?

@weeman1337 weeman1337 added the X-Needs-Info This issue is blocked awaiting information from the reporter label Oct 9, 2023
@RalfJung
Copy link
Author

RalfJung commented Oct 9, 2023 via email

@RalfJung
Copy link
Author

RalfJung commented Oct 9, 2023

Do the messages show up if you click „Restore from backup“ in security settings?

There is no "Restore from Backup" in that screen:

image

I have no idea what that "connecting a session to a key backup" means. I created a backup early on when Element said there was something to backup, I don't think I have ever been in the security settings menu before. Is there more than one kind of backup? I did the one that Element guided me towards using, obviously assuming that that is all I have to backup.

@richvdh richvdh removed the X-Needs-Info This issue is blocked awaiting information from the reporter label Dec 4, 2023
@PascalinDe
Copy link

Hello (and thank you for all your great work!),

I'm experiencing a similar issue on our instance (Element version: 1.11.47, Olm version: 3.2.14).

Steps to reproduce

  1. set up both security phrase and security key
  2. log in, send some messages, receive some messages
  3. log out, clear browser data
  4. log back in
  5. verify session w/ either security phrase or security key (both seem to show the same behaviour)
  6. reload several times as proposed

Expected outcome

  • all messages from both me and other users are readable

Actual outcome

  • my messages are readable ✔️
  • messages that I received while I was still connected are readable ✔️
  • only some of the messages that I received while disconnected are readable, others cannot be decrypted, with seemingly no pattern ❌

We will be looking into this issue on our side, and I'll post any updates on what we find here - do you have any pointers where would be a good place to start looking? Thank you in advance!

@richvdh
Copy link
Member

richvdh commented Apr 3, 2024

Backup the security key from the element web UI

I don't really know what this means. Could you provide a screenshot?

Log back in to element, and when prompted to restore the key, select the previously created backup

Nor this. Again, please provide a screenshot if possible,

There is no "Restore from Backup" in that screen:

It sounds like your new session has not been verified, or if it has, the backup key is not stored in secret storage. This is a bit odd.

@richvdh richvdh added X-Needs-Info This issue is blocked awaiting information from the reporter A-E2EE A-E2EE-Key-Backup labels Apr 3, 2024
@RalfJung
Copy link
Author

RalfJung commented Apr 3, 2024

Sorry, I've stopped using element-web (and matrix altogether) so I can't provide screenshots.

@richvdh
Copy link
Member

richvdh commented Apr 3, 2024

Ok, I'm sorry it didn't work out for you.

@richvdh richvdh closed this as completed Apr 3, 2024
@hackysphere
Copy link

This is happening with a friend of mine, he had to delete backup completely, and is now seeing if that fixed the issue. He had to delete two backups, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-E2EE A-E2EE-Key-Backup T-Defect X-Needs-Info This issue is blocked awaiting information from the reporter
Projects
None yet
Development

No branches or pull requests

5 participants