Skip to content
Info disclosure Write-up Intermediate

Identify Tor user across browser restarts

NoScript in Tor Browser assigns a random extension ID that persists across browser restarts, and this ID can be leaked to an attacker-controlled website when the security level is set to 'Safer' or the media toggle is disabled. An attacker could then use this ID to fingerprint and track the user across sessions.

NDevTK Follow

Published on ndevtk.github.io

“Tor Browser aims to make all users look the same, making it difficult for you to be fingerprinted based on your browser and device information.”

NDevTK (@ndevtk), on ndevtk.github.io

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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

How it worked

Root cause

Likely the NoScript extension exposes its internal random extension ID through a CSS file reference that can be read by web content when certain settings are enabled.

Impact

An attacker could track a Tor user across browser restarts by linking the persistent extension ID to their activity, but only if the user has enabled 'Safer' security level or disabled the media toggle.

What the attacker needed

Tor Browser with NoScript; Security level 'Safer' or media toggle disabled; Victim visits attacker-controlled site

The fix

It was fixed in version 11.4.28 by calling `tabs.insertCSS` instead of referencing the css file with `runtime.getURL`.

How it was found

  1. Set Tor Browser security level to 'Safer' or disable the media toggle in NoScript settings.
  2. Visit an attacker-controlled website that embeds a hidden video iframe.
  3. The site then loads a second iframe running code same-origin with the video.
  4. That code reads a link element's href to extract the extension ID and alerts it.

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 write-up has not been written yet. The Original tab links to the source.

Tor Browser tries to make all users look identical to prevent tracking. However, a built-in extension called NoScript gets a unique random ID that stays the same even after restarting the browser. A malicious website can trick the browser into revealing this ID, allowing the site to recognise the user again later.

What is Info disclosure?

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

More from Tor

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.