-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
rbw client fails to access entries with failed to decrypt: failed to decrypt encrypted secret: invalid mac
#4775
Comments
Did you also used the new mobile beta native client using that account? If so, which device? iOS or Android? Or which other clients did you used to create new entries? |
I have not tried the new beta yet. Most likely would've created new entries on either the web or Android client. Not sure if I've actually used rbw to add or edit entries yet. I mostly use Edit: I have used |
And do other clients still work? They show all the ciphers/entries? |
Yes I haven't noticed any issues in the web and Android clients. |
Well, i do not want to bounce you around, but then i think it must be something in the rbw client. Best would be if you are able to pinpoint the issue to a specific item in the vault and look in the database if something is off compared to others. |
No worries.
😅 |
I also tried the new app and now I can't use any client. EDIT: Browser extension just shows a very limited amount of entries |
Sorry, overread the error message above a bit. Mine is "Cryptography error, The cipher's MAC doesn't match the expected value. |
Well, that is a possible known issue with the native iOS client. |
I'm having a real issue here not having any access, not even cached on the devices I was logged in :/ |
You should restore a backup, or somehow delete the cipher from the database which is causing this issue. |
I need my passwords to get access to backups restore 🤦 (yep will change that). |
Probably the last one you edited, and then probably the one you did via the iOS Native client.
If you need to know your users uuid, check the |
Thank you so much @BlackDex for your fast answers. Not sure which entries I deleted now but I guess I will find out one day. |
Hehe, you can at least now access your backup, and maybe even compare the databases and see which entries are removed. You should be able to copy that row over to the active database and it should be there again. It would also help to determine the possible issue with rbw or Vaultwarden. There might be something in the broken database which might help. |
I actually just remember at least one of the entries (deleted 2) and I did some saving the entry and sharing to an organisation at the same time. The entry also was quite important. So the row I just deleted could be copied back and it should work? |
I wouldn't copy back the entry you deleted, at least not from the broken export at least. For me, and probably the It might be something in the In theory, you should be able to share those entries without any issue, since all is stored encrypted, and without your keys we can't do anything with those items at all. If you want to share it with us, and make it a bit safer you could do the following. As an example.
See there are 3 segments divided by a
Just keep the first 4 and last 4 characters (exclude the Original: {"AutofillOnPageLoad":null,"Password":"2.21/WbpkcdSJZyzXm/gXiIg==|Wk7Edj2n0uQr94zZjZ3yKw==|lToHSjibPuMJEUNq7TgJre8myqMqzVv374ClyKi8jtE=","PasswordRevisionDate":null,"Totp":"2.Qv+JRctNvGfGrOxIvOOY3Q==|rShmdcGEvMUtYDbKpmgwyw==|qpNTmgt8sQgBIUPWX4g2bZHKd6EmRks40kYcHho7guc=","Uris":[{"Match":null,"Uri":"2.9nTXxMkgLvZ6pQo9GoSZkw==|Jyozx3h2bk5raDO/uaVf3g==|BMeHHYweAUeORDFXufKmtVQXWsjdyC4EQ47PK645+5g="}],"Username":"2.17BMes1tmTjPYwr7TsXZjw==|XH1sQjklg8Lr8ae+mXitzg==|ZP2jO9bS7fwaM7rxoN74YCJCTYFNgFwQPiPpER+LQJ4="} Safer: {"AutofillOnPageLoad":null,"Password":"2.21...XiIg==|Wk7E...3yKw==|lToH...8jtE=","PasswordRevisionDate":null,"Totp":"2.Qv...OY3Q==|rShm...gwyw==|qpNT...7guc=","Uris":[{"Match":null,"Uri":"2.9n...SZkw==|Jyoz...Vf3g==|BMeH...5+5g="}],"Username":"2.17...XZjw==|XH1s...itzg==|ZP2j...LQJ4="} That might help use pinpoint the specific issue which caused all the clients to break down. |
Though this only works when updated I guess? I just created the entry yesterday so it will not be in a backup. Is there a manual way I could decrypt the data to at least get raw data to manually enter back into my working vault as I actually would need at least an information from the "Notes" section of that entry to reset my password there. I will look at the steps you provided later to hopefully give you some information about it. |
I just did a quick test, and for me it seems to at least still be accessible via the web-vault. You probably do not want to touch the You can modify the records as follow, one by one. {"autofillOnPageLoad":null,"password":null,"passwordRevisionDate":null,"totp":null,"uris":[],"username":null}
And if it all still fails, try to revert all the above and update The only UI issue would be, that if the username is not able to be decrypted, you can not click on the vault entry. Edit: |
Sorry, you seem to have misread. I have not tried the new Bitwarden beta app. You haven't mentioned using rbw, either. I think you're having a different issue? At least the troubleshooting steps seem to be useful for the rbw issue as well 😅 |
@polyzen Still, the same applies for you, we need to know which cipher record is causing the issue, and what the difference is between the record with an issue, and a record without an issue. If you are able to provide that info, that would be great. |
@BlackDex I could be wrong but I think the difference is that Vaultwarden supports cipher key encryption #3990 and rbw does not (yet). At least that seems to be the difference between working entries and not-working ones. I'm not sure if this can be replicated generally or is specific to my setup because I've been testing the new OT: Two issues I've encountered with |
I actually think the key's are not working for us either. I could be wrong also, but haven't seen those being added on new entries actually. Not on 5 or 6. |
With Have you checked if the new clients are producing items with cipher key encryption? |
Ill have to recheck, reverted and replaced some of my test databases, so no clue anymore which had newer entries actually. I do have a few with keys, but those are older. |
Hey @BlackDex, So the "broken entry" just has values in "data" and "name".
When trying to login after changing the value of the "name" column to "unencrypted_name" this gave a red error message at the top right saying "An Error has occured: Error saving device"
The "data" column just had "username" in it. Nothing else. I changed that to to be The only other column filled is "key". As the db neither worked with the suggested changes to "data" or "name" (assuming I understood everything correctly) here are the values to hopefully help you finding the issue. name = Happy to help if there is anything else I can do. |
Ok, then i think @stefan0xC is correct, and some clients might not be able to handle them, like rbw. |
So, i quickly checked and it looks like since the v2024.7.x client versions they are now using cipher key encryption by default if the server version is 2024.2.0 or newer. Since our web-vault does not yet uses this version creating items via that route does not create the special So, using any client which isn't able to decrypt this will fail. Therefor I'm going to close this issue as this has nothing to do with Vaultwarden it self, but more with |
Thank you all 🙏. I had updated to Bitwarden Mobile 2024.7.0 on the 16th, and now found one entry that I (accidentally?) updated the day of/before I ran into this issue. AFAICT I had re-saved it with no changes. |
Saving an entry, no matter if you change it or not, will always push the cipher with newly encrypted data i think. |
Subject of the issue
rbw client fails to access entries with the error
failed to decrypt: failed to decrypt encrypted secret: invalid mac
:doy/rbw#163
A user there stated "it may be your database schema didn't get updated on your account. I would suggest going to their project and figure out how to export and reimport fresh."
Deployment environment
Your environment (Generated via diagnostics page)
Config (Generated via diagnostics page)
Show Running Config
Environment settings which are overridden:
Steps to reproduce
rbw get <entry>
Expected behaviour
Receive the associated password
Actual behaviour
Receive the error:
Troubleshooting data
Some details may be found here: doy/rbw#163
A fresh account does not receive this error.
The text was updated successfully, but these errors were encountered: