Bỏ qua đến nội dung chính
Back to home
Tech 2 min read

Chromium 148's Math.tanh Function Can Be Exploited for OS Fingerprinting

A new discovery reveals that the Math.tanh mathematical function in Chromium 148 can be exploited to fingerprint and identify a user's underlying operating system.

Tier 2 · sources 51% confidence Reviewed
Sources scrapfly.dev

Chromium browser version 148 has recently seen a notable technical development where the Math.tanh mathematical function can be exploited for device fingerprinting to identify and link a user's underlying operating system. This discovery has drawn significant attention from the security community and web developers on the Hacker News forum.

Detailed Overview

According to information shared on Hacker News, the floating-point operation mechanism of the Math.tanh function has changed starting with Chromium version 148. Tiny discrepancies in how this function's values are calculated across different hardware platforms and operating systems allow JavaScript snippets to collect and analyze results with high precision. Consequently, third parties can easily determine whether a user is running Windows, macOS, or Linux without their consent.

Technical Analysis & Technology

The core of this fingerprinting technique lies in the differences in math library optimization at the compiler level and CPU architecture. When Chromium 148 executes the Math.tanh command with highly specific input parameters, the returned values in the final bits of floating-point precision exhibit minuscule variations across different operating systems. Security developers point out that leveraging this lack of uniformity in how underlying CPUs and C++ compilers handle math operations makes for a device identification method that is extremely difficult to prevent.

Expert Opinions & Insights

The development community on Hacker News has raised deep privacy concerns. Many security experts note that existing browser anti-fingerprinting measures, which typically focus on blocking user-agents or canvas fingerprinting, are completely powerless against this method of exploiting core mathematical functions. Attempting to spoof these fingerprints by tampering with core mathematical outputs could cause severe calculation errors in web applications that require high precision.

Impact & Future Outlook

This discovery poses a new challenge for Chromium developers in ensuring the consistency of mathematical operations across all platforms. For end-users, especially those concerned about online privacy, this serves as a warning that tracking techniques are becoming increasingly sophisticated and unpredictable. In the near future, the Chromium development team will likely need to release a patch to standardize the outputs of Math.tanh to protect user privacy.