Forget master password but have access to vault through chrome extention

Try the following procedure (which I’ve tested for version 2024.6.2 of the Chrome browser extension; minor adjustments may be necessary for other versions):

  1. Open and unlock the browser extension, and then use the pop-out button :arrow_upper_left: to open the browser extension in a floating browser window.

  2. With the floating browser extension window in focus, press F12 to open the DevTools window.

  3. In the DevTools window, select the Sources tab in the top navigation menu, then use the left-hand navigation tree to navigate to webpack://libstools/export/vault-exportvault-export-ui/src/componentsexport.component.ts, and click on the export.component.ts file to view its source code.

  4. Scroll to Line 251 (const userVerified = await this.verifyUser(); ) of the source code, and left-click once on the line number (251) in the left column to set a breakpoint. The line number should be highlighted as shown in the screenshot below:

  1. Go back to the floating browser extension window, and press F5 to refresh the window contents.

  2. In the floating browser extension window, go to Settings → Vault → Export vault.

  3. Set the File Format to .json, and click the Submit button in the upper right corner. If you prefer, you could also select the .json (Encrypted) file format, but only if you specify the Password-Protected Export Type when you get to the next screen.

  4. As you proceed with the export, you will see the notice “Paused” in the browser extension window, and the DevTools window will pop up into the foreground.

  5. In the DevTools window, select the Console tab in the top navigation menu, and at the > prompt in the console, type this.doExport() (lowercase, except for the capital E), then hit Enter.

  6. In the DevTools window, select the Sources tab in the top navigation menu, and then press F8 to resume code execution. Alternatively, you can also press the “play” :arrow_forward: button in the DevTools window or in the floating browser extension window.

  7. At this point, the export should be created in your Downloads folder (you should see a new file with a name like bitwarden_export_20240725183559 there), or the browser may prompt you for a location to save the file.

 

Let me know how it goes.

 


P.S. There used to be a much simpler method, as explained by @Quexten in this Reddit comment, but it doesn’t seem to work anymore.

2 Likes