Software engineer Matt Callaghan reported late last week that his Bluetooth headphones stopped playing music from his phone whenever he visited AliExpress in Firefox or Chrome. Investigating the issue, he found two heavily obfuscated audio scripts embedded in Alibaba's security and anti-abuse tooling.
The scripts construct a WebAudio graph that generates a sawtooth waveform, passes it through the browser's audio system, and reads the resulting frequency data to create a device fingerprint. The audio gain is set to zero, so users hear nothing, but the processing still occurs. Callaghan noted this differs from an autoplaying video, as there is no media element for the browser's mute tab control to stop.
"In my case, that appears to have been enough for Firefox or Windows to keep the Bluetooth audio path active, preventing my multipoint headphones from switching cleanly back to the phone," Callaghan wrote. He also found code collecting screen dimensions, device memory, browser plugins, WebGL rendering, and mouse events—data that, together with the audio fingerprint, amounts to "a fairly comprehensive browser and device fingerprint."
Firefox responded, saying its anti-fingerprinting technology, introduced in version 118 (September 2023), thwarts such WebAudio-based tracking by grouping users into a small number of "buckets" based on hardware type. According to security engineer Tom Ritter, 99.24% of users fall into two main buckets: x86/x64 CPUs without FMA instructions, and x64 CPUs with FMA instructions. For the remaining 0.76%, the fingerprinting script fails entirely. However, 48 users worldwide fall into 23 other tiny buckets, making them uniquely identifiable—a limitation Firefox acknowledged as unfortunate.
The Register has sought comment from Alibaba. Callaghan reported being able to reproduce the issue reliably on both Firefox and Chrome.