What happened

A persistent issue arose where opening an AliExpress webpage in Firefox or Chrome resulted in audio playback from my phone abruptly stopping. Closing the tab resolved the problem immediately, indicating a potential conflict between the web page's activity and the underlying audio system. I systematically investigated this behavior, focusing on hidden media playback rather than obvious elements like <audio> tags or active Media Session metadata.

My approach involved instrumenting the AliExpress homepage code to monitor AudioContext creation events using a custom WebAudio API wrapper. This revealed that during an idle period, the page simultaneously created two AudioContext objects – one by collina.js and another from fireyejs.js, both components of Alibaba’s browser security tooling. Both contexts entered their 'running' state and established connections to AudioContext.destination, a critical system audio endpoint. Despite lacking any visible media elements or active playback calls, the graphs persisted, triggering an alert in my console for the creation of these contexts. The fact that no audible sound was produced underscored the unusual nature of this process.

Why it matters

The discovery points to a sophisticated anti-abuse technique used by AliExpress and potentially other e-commerce platforms. By actively monitoring system audio activity through WebAudio, they are able to prevent devices from seamlessly switching between Bluetooth connections – a common annoyance for users juggling multiple devices.

The use of obfuscated JavaScript further complicates the issue, suggesting an effort to evade detection and prevent tampering with their security measures. This isn't merely about annoying Bluetooth disconnects; it’s indicative of broader trends in browser security and device fingerprinting. Sophisticated vendors are leveraging subtle audio signals as a means of identifying and tracking users across different platforms, raising serious concerns about privacy and data collection. This case demonstrates how seemingly innocuous web browsing activity can be exploited for security purposes.

But, but, but…

The core of the problem isn’t simple autoplaying content; it's the persistent processing initiated by these AudioContexts connected to the audio destination. The zero-volume gain node meant no audible sound was generated, yet the browser continued to actively process the graph.

This indicates that the connection itself—the active maintenance of a WebAudio graph – was sufficient to trigger the desired effect: keeping Firefox or Windows from disconnecting my multipoint headphones. The source code analysis revealed the extent of Alibaba's tracking beyond simple audio playback. The scripts queried several metrics including canvas rendering, WebGL information, and device characteristics; all collected in an attempt to build a robust fingerprint of my system.

“the page created two AudioContext objects, both entered the running state and both connected nodes to AudioContext.destination.”
— Dr Non

The counter-take

Current web security best practices largely overlook the subtle ways that browsers can be exploited through audio APIs. The fact that a seemingly benign browsing experience could trigger such complex anti-abuse measures highlights a critical gap in our understanding of browser vulnerabilities and privacy risks.

The AI angle

The use of WebAudio fingerprinting represents an upgrade in device tracking capabilities, creating greater asymmetry in data collection. This expands the potential methods available to e-commerce platforms for identifying and profiling users beyond traditional browser cookies or session data.