7 ms·
The most interesting part of this at least for me is what inspired it: A way to track cursor location without using javascript, that even works in Tor Browser:
by LeoPanthera 8y ago
The most interesting part of this at least for me is what inspired it: A way to track cursor location without using javascript, that even works in Tor Browser: https://twitter.com/davywtf/status/1124130932573839360 https://twitter.com/davywtf/status/1124130932573839360
tl;dr css hover selectors that change the background image don't actually cause the browser to GET the specified background image until you hover over it, thus creating a way to send data from a web page with no javascript.
- amelius 8y agoThe fix is to make the Tor browser preload all images. Unfortunately, as always, using Tor will make things slower.
- quickthrower2 8y agoOr no network communication unless during initial page load. (I assume you'd have JS disabled anyway if you want this level of privacy)
- ehsankia 8y agoIf you're disabling JS, you should probably be able to disable onhover too.
- mcv 8y agoPreloading images so they're ready to show when needed, does not sound like unreasonable behaviour, especially on a connection with high bandwidth but low latency. It will make this kind of example really slow, but if the intention is to break this kind of spying, then that's okay.
- dredmorbius 8y agoIndeed. Demoed in the Tor browser as a mouse tracker.
- WalterGR 8y agoHow does the Tor browser not route all http(s) traffic through Tor?
- arendtio 8y agoThis is pure evil. Maybe we should just go back to manually typing into SSL connections...
- justinmchase 8y agoAt least back to Gopher.
- ddalex 8y agoGopher had the right idea. Menus only. What executable code?
- ars 8y agoI've done this exact same thing to track when people printed vouchers we offered. Have a background image only on the print css.
- wybiral 8y agoYeah, I'm playing around with the idea of using the background image trick to profile the integrity hash speed of the visiting browser. That little background image feature in CSS has given up quite a bit of data in similar situations (people used to use it to check browsing history of :visited links before browser started blocking that).
- Domenic_S 8y agoYou're profiling the what now?
- wybiral 8y ago<link> tags to include CSS and JavaScript on a page can have an integrity property, which is a SHA hash of the resource they link to. It's intended to ensure that a CDN doesn't change the content they're serving to your users. But it turns out you can approximate the speed a visiting browser computes those hashes to fingerprint browsers just by including some CSS on a page.
- lucb1e 8y agoBut that hash is a regular, fast hash that takes like 1µs to compute right? Doesn't that get lost in network jitter? Wouldn't averaging the time it takes to run for(i=0;i<Math.pow(2,18);i++); over 10 runs be much more accurate? Or is this meant to spite the 0.01% of visitors that really try not to be tracked and have turned off javascript?
- wybiral 8y ago> But that hash is a regular, fast hash that takes like 1µs to compute right? They use SHA512 which is fast, but noticeable for large enough files. > Or is this meant to spite the 0.01% of visitors that really try not to be tracked and have turned off javascript? Yes, the point is that it works with blockers.
- Raphmedia 8y agoWe used to do that to track emails. Gmail's fix was to cache the emails' images on their own server, so it's only hit once. They also don't listen to selector:hover{} so you can't have hover effects.
- JoshTriplett 8y ago> Gmail's fix was to cache the emails' images on their own server, so it's only hit once. That doesn't solve the problem; email trackers could just use a unique URL per email.
- justinmchase 8y agoAnd they do that exactly. The fix is to disable images by default but every user has to manually do this.
- nerdponx 8y agoOr use an email client that disables images by default.
- dexterdog 8y agoI thought images were off by default
- Moru 8y agoNot in the Web client I'm afraid
- afiori 8y agoBut it does not matter, if google download all the images when for all your emails then showing them to you is just a fetch from their own servers. Similarly to the ad-blocking extension that clicked all ads on the page (in isolation) so that tracking would be useless.
- grifball 8y ago
- altfredd 8y ago> tl;dr css hover selectors that change the background image don't actually cause the browser to GET the specified background image until you hover over it This specific page uses :active, not :hover, so it is really no different from a web form, that performs web request each time you press a submit button. It just does not reload a page.
- rasz 8y agoSounds like privacy oriented browsers need a patch :hover Selector to always prefetch background-image
- nerdponx 8y agoOr disable image loading by default like in email clients.
- oftenwrong 8y agoThis is just a different spin on the (now fixed in most browsers?) trick of using ':visited' with a background image to uncover which sites the user has visited. It's things like this that drove me to start browsing the web with CSS disabled by default. It's yet another vector for tracking.