Skip to content
Info disclosure Disclosed report Intermediate

languagechange event fires simultaneously on all tabs

The languagechange event fires simultaneously across all open tabs, allowing a malicious script to correlate visits from the same user by timestamping the event. An adversary could use this to link multiple browsing sessions to a single individual.

tomvg Follow

Originally disclosed on HackerOne

Bounty$100 Low View original
  • Fixed in 3 days
  • Paid in 3 days
  • Disclosed after 2 months

The languagechange event, which fires when the user modifies the browser's language settings fires simultaneously on all tabs. This would allow an adversary to link multiple visits to a single user: the adversary (e.g. a malicious ad provider) has a script that listens for this event, and when fired sends a signal to the adversary's server which includes the timestamp of the event. Since this is an event that does not occur very often (only when the user changes the browser's language), so the chances that this event occurs at the exact same millisecond on with multiple users is very small. I believe this has been a small oversight, since the online and offline events do seem to be disabled because of this threat.

PoC

As a proof-of-concept, you can open http://192.31.23.250/_events/get-event-values.html and https://poc.tom.vg/events-session-associate/get-event-values.html in different tabs (these are from different origins), select onlanguagechange from the dropdown and press the "Start" button. Next, change the language of the browser in the "Content" tab of the preferences (about:preferences#content): just add/remove one of change the order. Afterwards you should see an event logged on both tabs with approximately the same timestamp (the value might slightly differ because of the timer resolution).

The original report as published on HackerOne, by tomvg. 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

Root cause

Likely the browser fires the languagechange event in all tabs without adding any delay or per-tab randomisation, unlike the online and offline events which are disabled for this reason.

Impact

An adversary could link multiple visits to a single user by correlating the simultaneous event timestamps, though the event occurs rarely and the timestamps may differ slightly due to timer resolution.

What the attacker needed

Victim changes browser language; adversary script runs in multiple tabs

The fix

The report suggests this is an oversight, noting online and offline events are disabled for this threat.

How it was found

  1. Open the proof-of-concept page in two different tabs from different origins.
  2. Select onlanguagechange from the dropdown and press Start.
  3. Change the browser language in the preferences.
  4. Observe that both tabs log an event with approximately the same timestamp.

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.

When you change your browser's language, a signal called an event is sent to every open tab at the same moment. A website can listen for that signal and note the exact time it happened. Because the time is identical across tabs, the site can tell that all those tabs belong to the same person, which is a privacy leak.

What is Info disclosure?

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

More by tomvg

View all

4 more disclosed reports, best first.

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.