Skip to content
Info disclosure Disclosed report Intermediate

Tracking Bitwarden firefox addon users

Bitwarden's Firefox extension uses a per-user UUID in its moz-extension URL, and the password-save prompt loads a local resource from that URL. Any JavaScript on the page can read the UUID, letting third parties track users across sites and browsing modes.

kmodi Follow

Originally disclosed on HackerOne

  • Fixed in 11 hours
  • Disclosed after 40 days

Firefox web extension, generate a UUID for each web-extension and is specific to a user. Unlike chrome extensions. Which means whenever the user installs Bitwarden on Firefox, it generates a different extension ID for each user. You can check the extension ID by about:debugging -> under extensions.

The problem occurs when Bitwarden prompts the user with the message: Should Bitwarden remember this password for you?. [Screenshot attached]

This prompt is loaded as a local resource from moz-extension://UUID/bar.html?add=1, and this can be easily read by the website and any Javascript running on that page.

Impact

Now, because this is UUID is unique to each user, it is a potential userID which can be used for tracking a user:

  1. That a user is a Bitwarden user.
  2. Multiple accounts used by the user across normal windows, private windows, containers.
  3. Because this ID can also be read by a third-party javascript on the page: A.com/login.html has a third-party T.com B.com/login.html has a third-party T.com Now because T.com can also read the UUID for Bitwarden, T.com can on their backend track that it's the same user visiting A.com and B.com. It will not matter whether the user has third-party cookies disabled or not, or is using some tracking protection. Hence, Bitwarden infects the browser ecosystem and breaks the privacy protections / private browsing mode.

This ID is accessible and remains same irrespective of :

  • Private mode -Normal mode
  • After browser restart
  • Extension update.
  • Clearing History / Local storage

The only way to remove this UUID is by deleting and re-installing the extension.

I am happy to help you with more concrete examples if needed. As a demo:

  1. Firefox with Bitwarden extension installed.
  2. Visit the page: https://cdn.cliqz.com/browser-f/fun-demo/tracking-bw-users.html

This is a known issue with Firefox webextensions you can find the details here: https://bugzilla.mozilla.org/show_bug.cgi?id=1372288

As far as I can see, this needs to fixed at the extension level and not at Firefox level.

Please note, as of now I have only tested the resource loaded from this prompt. But this would be a problem anywhere the resource being loaded which is using the same pattern.

Attachments

bitwarden-prompt.png
bitwarden-prompt.png From the original on HackerOne

The original report as published on HackerOne, by kmodi. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Impact

A third-party script present on multiple sites could read the UUID and track the same user across sites and browsing modes, even with third-party cookies disabled or tracking protection enabled.

What the attacker needed

Firefox with Bitwarden extension installed; Victim visits a page with third-party script

The fix

The extension should avoid loading resources in a way that exposes the moz-extension UUID to page scripts.

How it was found

  1. Install the Bitwarden extension in Firefox.
  2. Visit the demo page that demonstrates the tracking.
  3. Observe that the page can read the extension UUID.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Firefox gives each installed extension a unique address that includes a random ID. Bitwarden shows a 'save password?' popup by loading a page from that address, and the website can see that address. Because the ID never changes, websites can use it to recognise the same person across different sites and even in private windows.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by kmodi

View all

1 more disclosed report, best first.

More from Bitwarden

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.