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

error decrypting data.json when account belongs to an organization #32

Open
kpiris opened this issue Nov 25, 2024 · 3 comments
Open

error decrypting data.json when account belongs to an organization #32

kpiris opened this issue Nov 25, 2024 · 3 comments
Assignees

Comments

@kpiris
Copy link

kpiris commented Nov 25, 2024

When I try to decrypt the data.json file from a bitwarden cli test account I get the following error:

ERROR: MAC did not match. Protected Symmetric Key was not decrypted. (Password may be wrong)

This test account belongs to an organization, and if I purge the organization vault then I'm able to decrypt the data.json file just fine (to clarify: the account is still member of the organization, but it's vault is empty).

There has to be something about the org vault items decryption that's causing the error.

But I haven't been able to find out exactly what it is.

After some more testing I could reproduce the error with a single item in the organization vault that has an attachment. If I delete that attachment from the item, then I'm able to decrypt the data.json file again.

Thanks.

@GurpreetKang
Copy link
Owner

So it's the attachment that is causing the issue and not a general issue with having an item in an organization vault?

@GurpreetKang GurpreetKang self-assigned this Nov 25, 2024
@kpiris
Copy link
Author

kpiris commented Nov 25, 2024

That's what it seems.

If an item in the org vault has an attachments, then I get that error.

I remove the attachment from that item and then it decrypts ok.

I can also edit manually the data.json and delete the json values corresponding to the attachment and then it also decrypts ok.

If you do not have an organization where you can upload attachments I can provide you a data.json example file.

@GurpreetKang
Copy link
Owner

Thanks for confirming. I'll create a new test account and try to reproduce this myself. I'll reach out to you if I need it but I think I should be okay.

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

2 participants