Closed jvteleco closed 4 years ago
Checking the enpassJsonImporter.ts, I think the issue is when calling the processKvp(). When creating the aditional custom fields, by default type: FieldType = FieldType.Text , but should be changed when appropiate to "Hidden"? Ref: https://github.com/bitwarden/jslib/blob/2de8c5ed165f00e5d3a2b1dd92763176d6150782/src/importers/baseImporter.ts#L305
In private processLogin(cipher: CipherView, fields: any[]) :(https://github.com/bitwarden/jslib/blob/2de8c5ed165f00e5d3a2b1dd92763176d6150782/src/importers/enpassJsonImporter.ts#L64)
Line 80:
} else {
this.processKvp(cipher, field.label, field.value);
}
In my opinion, in this "else", there should be a check that if "sensitive = 1", then FieldType = FieldType.Hidden.
This change should also be done for processCard, processNote.
If anyone has the same issue, I have written a python converter script to modify the Bitwarden backup JSON. https://github.com/jvteleco/Enpass-JSON-to-Bitwarden-converter-fix
Fixed in next update. https://github.com/bitwarden/jslib/pull/98
Thanks, that was fast! Will give it a try on next release.
Hi, I am using the web version to import the Enpass JSON below. It imports correctly the first password, but if you have extra custom fields with password/sensitive activated, they are imported as visible fields, not hidden with *****. The field labeled as "old password" is the one that is not being imported "correctly". Have not tried the Windows app to see if it has also the same problem. Will do later.
Thanks