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

failed to log in to bitwarden instance: unimplemented cipherstring type: 0 #40

Closed
rjc opened this issue Feb 25, 2021 · 5 comments
Closed

Comments

@rjc
Copy link

rjc commented Feb 25, 2021

Hello,

After configuring my account email:

$ rbw config set email my.email@example.org

and running:

$ rbw login

I get the below error message:

rbw login: failed to log in to bitwarden instance: unimplemented cipherstring type: 0

This is using Bitwarden official cloud server. Web logon obviously works just fine.

What's odd is that, despite logon failing, I get confirmation emails to the contrary:

Subject: New Device Logged In From [...]

I get exactly the same error on OpenBSD with the official port/package (version 0.5.2) as well as on macOS Catalina (10.15.7) after running cargo install rbw (version 1.0.0).

@jonathannerat
Copy link

jonathannerat commented Feb 28, 2021

From looking at other issues here, I think this has to do with how some old passwords in your vault were encrypted with old cipherstring types that are now not available in the new versions of the backend.

Quoting @doy's comment on #2 to be more acurate:

ah, yeah, i only currently have support for the cryptographic algorithms that the current bitwarden clients use, but it looks like you still have some entries encrypted with an older version.

I solved this by Rotating my encryption key (be sure to read this, since this is a potentially dangerous operation).

Basically you need to:

  • Log out of all your clients
  • Re-download encrypted exports
  • Change (or keep the same password) from the vault settings, check the Rotate my encryption keys checkbox, and you're done.

@rjc
Copy link
Author

rjc commented Feb 28, 2021

Bingo! This indeed solved the problem. Thanks @jonathannerat!

Nothing to do with passwords in vault, though, as the first time I tried to log in, the vault was empty. Thinking that vault being empty might be the issue here, I created a single entry - no change. So it isn't about entries being encypted with an old key - as there were none to begin with - but the old encyption key itself was the culprit here.

Long story short - I crated Bitwarden account a long time ago, but never used it. After recent announcement made by LastPass, I decided to test Bitwarden properly :^)

@rjc rjc closed this as completed Feb 28, 2021
@doy
Copy link
Owner

doy commented Mar 1, 2021

thanks for digging into this!

@doy doy mentioned this issue Mar 1, 2021
@rjc
Copy link
Author

rjc commented Mar 1, 2021

@doy BTW, I've checked the other issues mentioning similar (the same?) problems but, given that I (thought I) had started with a clean slate, I dismissed them thinking my issue was new so, given that this re-surfaces at different times, for different users, how about changing the message from:

failed to log in to bitwarden instance: unimplemented cipherstring type: 0

to:

Please rotate your Encryption Key - https://bitwarden.com/help/article/account-encryption-key/

or some such?

@doy
Copy link
Owner

doy commented Mar 2, 2021

ah, yeah, that is a good idea - let me see if i can do that

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

No branches or pull requests

3 participants