124 points · by nextdns · 7y ago · 45 comments
> While our analysis tool were not able to confirm that session cookies were sent as well, a long list of leaking cookies could mean that they would be. Anyone in possession of those cookies can impersonate you on that website — i.e., access your account.
I hadn't considered that before, but they're right, it's extremely easy to accidentally leak session cookies through first party subdomains. I look forward to the inevitable conference talks that will be discussing this vulnerability.
I specifically mean for site analytics, like Experience Cloud or GA, not serving ads. Ad block is different IMO.
If this is hosted on a first party subdomain you're already blocking the ability of it to set third-party cookies and track you across sites. So, in practical terms, what's the difference between this CNAME trick and building the same thing in-house to run your own analytics?
Third party, or third party disguised as first party, is only problematic because of an implied "there's very little keeping the third party from using your data for things that aren't just analytics for the first party." It's the red flag for "this site may not be using your data the way you would want it to."
Third party ad trackers disguised as first party cookies specifically violate the general assumption that first party data stays first party, because those third parties have specific mechanisms to track you across multiple first parties.
How? Because they can't do that with cookies.
I think the most prominent objection to 3rd party cookies is they allow systematic tracking. This seems like they just help eg apple or whomever understand what you're doing on that same site.
My point is exactly that: they can and are doing it (using first party cookies through CNAME redirects to correlate your identity across multiple independent sites in order to sell a data product to more than just the first party). For an example, see Criteo.
> I think the most prominent objection to 3rd party cookies is they allow systematic tracking.
And now first party cookies are starting to be used for that too. It's not that important how you specifically want to phrase the general ickiness of third party cookies.
In practical terms, based on what we have seen up to now, few websites will run their own analytics.
Thus, focusing on the third party services is effective against most tracking.
The "CNAME trick" might be viewed as a good thing because it is putting evolutionary pressure on users to utilise DNS to "block" ads instead of using popular graphical web browsers to do the work. These browsers are written by companies or organisations that derive substantial revenue from online advertising.
How so? Browser and browser addons are perfectly capable of blocking these subdomains.
Extensions now have to identify which cnames are a front for which trackers, block the new tracker, and somehow manage to stay below the max rules-per-extension that the browser allows (30k for Chrome[0]). See original nextdns.io post for details [1].
[0] https://www.xda-developers.com/google-chrome-manifest-v3-ad-...
[1] https://medium.com/nextdns/cname-cloaking-the-dangerous-disg... ( https://outline.com/Y6PKr3 )
Fox News: https://trackingthetrackers.com/site/foxnews.com
CNN: https://trackingthetrackers.com/site/cnn.com
BBC: https://trackingthetrackers.com/site/bbc.co.uk
WebMD: https://trackingthetrackers.com/site/webmd.com
ESPN: https://trackingthetrackers.com/site/espn.com
Ars Technica: https://trackingthetrackers.com/site/arstechnica.com
Go.com (Disney): https://trackingthetrackers.com/site/go.com
Washington Post: https://trackingthetrackers.com/site/washingtonpost.com
Walmart: https://trackingthetrackers.com/site/walmart.com
Weather.com: https://trackingthetrackers.com/site/weather.com
Apple: https://trackingthetrackers.com/site/apple.com
NFL: https://trackingthetrackers.com/site/nfl.com
T-Mobile: https://trackingthetrackers.com/site/t-mobile.com
State Farm: https://trackingthetrackers.com/site/statefarm.com
Good on Adobe for keeping it up. Flash wasn't enough to fuck the internet up for years.
Well at least they're forthcoming about knowing they're intentionally circumventing users privacy settings.
The requests to the trackers rely on JavaScript being enabled. What happens when JavaScript is disabled?
Further, we can easily list the subdomains that do appear in the page and, assuming they are being used to host content that we want, we can "whitelist" them in our zone file.
(In theory, a site might generate new subdomains and DNS responses for them on the fly, making this approach unworkable. In practice however, most sites have moved entirely to HTTPS, which means that unless you give your ad host a certificate for *.yourdomain.com, all the subdomains have to be known in advance and show up in certificate transparency logs, making them easy to block.)
Not really, other than as you say simply going elsewhere. The trouble is most users don't know to go elsewhere as they don't know about the matter without digging.
You could start treating changes of sub-domain the same way cross-domain references are handled by tools that block 3rd party cookies, but there are plenty of sites that use multiple sub-domains which have genuine uses for shared cookies (single sign-on for instance) that might be broken by this so you'll have an initial inconvenience of white-listing them. Also if a previously white-listed site goes rouge, detecting that could be difficult, or at least fraught with false positives.
Tor exit IPs trigger lots of CAPTCHAs and other abusive behavior. But if it's just that you want to prevent tracking, it's enough to run a VM that connects through a VPN service. Or a nested chain of them.
I mean, whoever can track the whatever about Mirimir, and I couldn't care less. Or any of the other personas that I use.
It is also worth noting that caches other than the browser cache can also be abused to track users: http://dnscookie.com/
[1]: https://medium.com/@stoically/enhance-your-privacy-in-firefo...
Better blocker is by https://ind.ie/ and the rules are online at https://better.fyi/
That said, it’s not comprehensive, so I run it alongside another blocker that uses more traditional rule sources (1Blocker). I find that a diversity of rule sources and sometimes simply building rules manually for individual sites is required. I do think this kind of lookup/service is very useful though in advancing the state of tracker blocking. Next we’ll probably have to do behavioural analysis until they move the trackers into site code or binary data flows of the rest of the site... there is a point at which you have to decide if it’s worth putting up with tracking to use a site or service... as much as I dislike it. If it’s integrated, at least it will be faster than third-party, I suppose.
What's funny is they have basically gone 180 degrees from their original design.
Originally they were meant as caching mechanisms.
Now they are cache-busting tracking mechanisms.