mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
[PM-9619] Fix broken vault upon saving empty URI (#10037)
* [PM-9619] Add null check for URI before validating checksum * [PM-9619] Prevent saving empty string login URIs
This commit is contained in:
@@ -69,6 +69,11 @@ export class Login extends Domain {
|
||||
if (this.uris != null) {
|
||||
view.uris = [];
|
||||
for (let i = 0; i < this.uris.length; i++) {
|
||||
// If the uri is null, there is nothing to decrypt or validate
|
||||
if (this.uris[i].uri == null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const uri = await this.uris[i].decrypt(orgId, encKey);
|
||||
// URIs are shared remotely after decryption
|
||||
// we need to validate that the string hasn't been changed by a compromised server
|
||||
|
||||
Reference in New Issue
Block a user