Mozilla beefs up anti-cross-site tracking in Firefox, as Chrome still lags on privacy
Mozilla has further beefed up anti-tracking measures in its Firefox browser. In a blog post yesterday it announced that Firefox 86 has an extra layer of anti-cookie tracking built into the enhanced tracking protection (ETP) strict mode - which it's calling Total Cookie Protection'.
This major privacy advance", as it bills it, prevents cross-site tracking by siloing third party cookies per website.
Mozilla likens this to having a separate cookie jar for each site - so, for e.g., Facebook cookies aren't stored in the same tub as cookies for that sneaker website where you bought your latest kicks and so on.
The new layer of privacy wrapping provides comprehensive partitioning of cookies and other site data between websites in Firefox", explains Mozilla.
Along with another anti-tracking feature it announced last month - targeting so called supercookies' - aka sneaky trackers that store user IDs in increasingly obscure" parts of the browser (like Flash storage, ETags, and HSTS flags), i.e. where it's difficult for users to delete or block them - the features combine to prevent websites from being able to tag' your browser, thereby eliminating the most pervasive cross-site tracking technique", per Mozilla.
There's a limited exception" for cross-site cookies when they are needed for non-tracking purposes - Mozilla gives the example of popular third-party login providers.
Only when Total Cookie Protection detects that you intend to use a provider, will it give that provider permission to use a cross-site cookie specifically for the site you're currently visiting. Such momentary exceptions allow for strong privacy protection without affecting your browsing experience," it adds.
Tracker blocking has long been an arms race against the adtech industry's determination to keep surveilling web users - and thumbing its nose at the notion of consent to spy on people's online business - pouring resource into devising fiendish new techniques to try to keep watching what Internet users are doing. But this battle has stepped up in recent years as browser makers have been taking a tougher pro-privacy/anti-tracker stance.
Mozilla, for example, started making tracker blocking the default back in 2018 - going on make ETP the default in Firefox in 2019, blocking cookies from companies identified as trackers by its partner, Disconnect.
While Apple's Safari browser added an Intelligent Tracking Prevention' (ITP) feature in 2017 - applying machine learning to identify trackers and segregate the cross-site scripting data to protect users' browsing history from third party eyes.
Google has also put the cat among the adtech pigeons by announcing a planned phasing out of support for third party cookies in Chrome - which it said would be coming within two years back in January 2020 - although it's still working on this privacy sandbox' project, as it calls it (now under the watchful eye of UK antitrust regulators).
Google proposes new privacy and anti-fingerprinting controls for the web
Google has been making privacy strengthening noises since 2019, in response to the rest of the browser market responding to concern about online privacy.
In April last year it rolled back a change that had made it harder for sites to access third-party cookies, citing concerns that sites were able to perform essential functions during the pandemic - though this was resumed in July. But it's fair to say that the adtech giant remains the laggard when it comes to executing on its claimed plan to beef up privacy.
Given Chrome's marketshare, that leaves most of the world's web users exposed to more tracking than they otherwise would be by using a different, more privacy-pro-active browser.
And as Mozilla's latest anti-cookie tracking feature shows the race to outwit adtech's allergy to privacy (and consent) also isn't the sort that has a finish line. So being slow to do privacy protection arguably isn't very different to not offering much privacy protection at all.
To wit: One worrying development - on the non-cookie based tracking front - is detailed in this new paper by a group of privacy researchers who conducted an analysis of CNAME tracking (aka a DNS-based anti-tracking evasion technique) and found that use of the sneaky anti-tracking evasion method had grown by around a fifth in just under two years.
The technique has been raising mainstream concerns about unblockable' web tracking since around 2019 - when developers spotted the technique being used in the wild by a French newspaper website. Since then use has been rising, per the research.
In a nutshell the CNAME tracking technique cloaks the tracker by injecting it into the first-party context of the visited website - via the content being embedded through a subdomain of the site which is actually an alias for the tracker domain.
This scheme works thanks to a DNS delegation. Most often it is a DNS CNAME record," writes one of the paper authors, privacy and security researcher Lukasz Olejnik, in a blog post about the research. The tracker technically is hosted in a subdomain of the visited website.
Employment of such a scheme has certain consequences. It kind of fools the fundamental web security and privacy protections - to think that the user is wilfully browsing the tracker website. When a web browser sees such a scheme, some security and privacy protections are relaxed."
Don't be fooled by the use of the word relaxed' - as Olejnik goes on to emphasize that the CNAME tracking technique has substantial implications for web security and privacy". Such as browsers being tricked into treating a tracker as legitimate first-party content of the visited website (which, in turn, unlocks many benefits", such as access to first-party cookies - which can then be sent on to remote, third-party servers controlled by the trackers so the surveilling entity can have its wicked way with the personal data).
So the risk is that a chunk of the clever engineering work being done to protect privacy by blocking trackers can be sidelined by getting under the anti-trackers' radar.
The researchers found one (infamous) tracker provider, Criteo, reverting its tracking scripts to the custom CNAME cloak scheme when it detected the Safari web browser in use - as, presumably, a way to circumvent Apple's ITP.
There are further concerns over CNAME tracking too: The paper details how, as a consequence of current web architecture, the scheme unlocks a way for broad cookie leaks", as Olejnik puts it - explaining how the upshot of the technique being deployed can be many unrelated, legitimate cookies" being sent to the tracker subdomain.
Olejnik documented this concern in a study back in 2014 - but he writes that the problem has now exploded: As the tip of the iceberg, we found broad data leaks on 7,377 websites. Some data leaks happen on almost every website using the CNAME scheme (analytics cookies commonly leak). This suggests that this scheme is actively dangerous. It is harmful to web security and privacy."
The researchers found cookies leaking on 95% of the studies websites.
They also report finding leaks of cookies set by other third-party scripts, suggesting leaked cookies would in those instances allow the CNAME tracker to track users across websites.
In some instances they found that leaked information contained private or sensitive information - such as a user's full name, location, email address and (in an additional security concern) authentication cookie.
The paper goes on to raise a number of web security concerns, such as when CNAME trackers are served over HTTP not HTTPS, which they found happened often, and could facilitate man-in-the-middle attacks.
Defending against the CNAME cloaking scheme will require some major browsers to adopt new tricks, per the researchers - who note that while Firefox (global marketshare circa 4%) does offer a defence against the technique Chrome does not.
Engineers on the WebKit engine that underpins Apple's Safari browser have also been working on making enhancements to ITP aimed at counteracting CNAME tracking.
In a blog post last November, IPT engineer John Wilander wrote that as defence against the sneaky technique ITP now detects third-party CNAME cloaking requests and caps the expiry of any cookies set in the HTTP response to 7 days. This cap is aligned with ITP's expiry cap on all cookies created through JavaScript."
The Brave browser also announced changes last fall aimed at combating CNAME cloaking.
In version 1.25.0, uBlock Origin gained the ability to detect and block CNAME-cloaked requests using Mozilla's terrific browser.dns API. However, this solution only works in Firefox, as Chromium does not provide the browser.dns API. To some extent, these requests can be blocked using custom DNS servers. However, no browsers have shipped with CNAME-based adblocking protection capabilities available and on by default," it wrote.
In Brave 1.17, Brave Shields will now recursively check the canonical name records for any network request that isn't otherwise blocked using an embedded DNS resolver. If the request has a CNAME record, and the same request under the canonical domain would be blocked, then the request is blocked. This solution is on by default, bringing enhanced privacy protections to millions of users."
But the browser with the largest marketshare, Chrome, has work to do, per the researchers, who write:
Because Chrome does not support a DNS resolution API for extensions, the [uBlock version 1.25 under Firefox] defense could not be applied to this browser. Consequently, we find that four of the CNAME-based trackers (Oracle Eloqua, Eulerian, Criteo, and Keyade) are blocked by uBlock Origin on Firefox but not on the Chrome version.
WebKit's new anti-tracking policy puts privacy on a par with security