Skip to content

"claim vault ownership" fails with error: Unknown letter: "=" #403

@overheadhunter

Description

@overheadhunter

Please agree to the following

Summary

crypto.ts: decryptWithAdminPassword incorrectly uses base64nopad for salt

System Setup

- Hub: 1.5.0-alpha2
- Keycloak: N/A
- Cryptomator (Desktop/Android/iOS): N/A

Steps to Reproduce

  1. Created Vault with Hub 1.4.0-beta2
  2. With different User: Claim Ownership of said vault with 1.5.0-alpha2

Expected Behavior

ownership claimed successfully

Actual Behavior

claim ownership dialog shows error

Unknown letter: "=". Allowed: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/

Reproducibility

Always

Relevant Log Output

Authentication of vault foo failed. Error: Unknown letter: "=". Allowed: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/
    at index.js:88:27
    at Array.map (<anonymous>)
    at decode (index.js:84:26)
    at index.js:54:37
    at Object.decode (index.js:54:35)
    at Xe.decryptWithAdminPassword (crypto.ts:115:27)
    at w (ClaimVaultOwnershipDialog.vue:106:57)
    at ClaimVaultOwnershipDialog.vue:12:60

Anything else?

No response

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions