12 ms·
Firefox takes a bite out of the canvas ‘super cookie’
- na85 9y agoThe sad part is that this requires a sort of herd immunity to be effective: if 85% of users are still running chrome from within the Facebook app, the added anonymity provided by this technology is (if I understand correctly) less effective at preventing tracking.
- Ajedi32 9y agoEven worse; by default this setting is disabled even for Firefox users. If 95% of users don't enable `privacy.resistFingerprinting`, then that setting is far less effective for the 5% of users who do.
- giancarlostoro 9y agoI wonder when Safari will follow this example given the efforts they're taking to make their browser more privacy focused where it sorta counts, in stopping the different ways advertisers use to spy on you. Now that Flash is on it's way out the door, it's up to the DOM to be abused by advertisers. I think a safe bet is to disallow canvas manipulation from "Third-Parties" as a good first step, maybe by default?
- mschuster91 9y agoI don't get why Battery Status API was dropped entirely instead being "castrated"... by default, allow clients to only detect <5%, <25%, <50%, <75%, <=100% (or simply <25% & >25%) so that e.g. Unity or other high performance apps can say "do you really want to play Unreal Tournament with low battery". This could also be used by ads or stuff like background monero miners to prevent killing the user's battery...
- raverbashing 9y agoYou're counting at people accessing your battery level and using it for good intentions when that's the minority of web pages Most will use it to try to push you harder "before your battery runs out"
- rqs 9y agoOr "before your battery runs out, please checkout our battery saving app"
- faebi 9y agoBuy now or you will miss it, your will be soon out of battery! App starts to drain the battery till 5%
- harsh1618 9y ago> Most will use it to try to push you harder "before your battery runs out" An example of this would be an app like Uber charging you more if your battery level is low. They already know that people with low battery are willing to pay more: https://www.forbes.com/sites/amitchowdhry/2016/05/25/uber-low-battery/ https://www.forbes.com/sites/amitchowdhry/2016/05/25/uber-lo...
- matt_kantor 9y agoThis reasoning could be extended (and maybe it should be) to remove APIs/headers allowing detection of OS/browser version (maybe Mac users are willing to pay more?), screen size (bigger monitor = more disposable income?), etc. For all of them there are tradeoffs, but it would be an interesting exercise to think about.
- Drdrdrq 9y agoThanks for an interesting link, appreciate it!
- TazeTSchnitzel 9y agoPerhaps because there isn't a clear use for it other than fingerprinting? Battery percentages don't necessarily mean much. More useful would be a power-saving flag.
- elaus 9y agoI really doubt advertisers will make their ads less resource-hungry (and therefore less noticeable/appealing) when they detect low battery levels just because it would be better for the user (albeit worse for themselves).
- dspillett 9y agoThe use case is for kiosk style applications to be able to give warnings to the user. Or for other apps to take extra precautions such as saving copies of dynamic state to non-volatile locations in case the power fails completely. Though a battery percentage is not really useful for this as it could mean many things. My current main phone at 25% could last until tomorrow quite easily, my previous main device had at most a couple of hours left at that point. A simple "warning level" API would be more useful, allowing the app to register for events like "less than one hour of power left", "power loss likely in the next ten minutes", "entering super-power-saver mode" & "manual shut-down starting" and/or poll for the same flags. That way the device, which is much better placed to monitor such properties, can manage the warning levels perhaps with an off switch in case users don't want apps to know. Of course, you might have to enforce limited resource use in response to low power events, and you shouldn't allow much time between emitting "entering super power saver" events and actually entering the mode (which will shut off browser tasks until the mode is left). So while there is a valid use case, that doesn't rely on trusting advertisers or other hogs to do something nice, the API as wasn't fit for that purpose and making something that is might be more complicated than you'd first think (so perhaps not worth the effort for the few apps that would actually make use of it).
- disconnected 9y ago> Or for other apps to take extra precautions such as saving copies of dynamic state to non-volatile locations in case the power fails completely. The system can crash, hang, forcefully reboot or otherwise die at any moment, without warning. All it takes is one "oopsy", for the phone to hit the ground and the battery to fly off. If there is important data that needs to be preserved, applications should already be committing it to non-volatile locations periodically.
- 9y ago
- hawski 9y agoI will cite myself from another thread -https://news.ycombinator.com/item?id=12862355#12863482 https://news.ycombinator.com/item?id=12862355#12863482 > There probably is not much of a difference for a website if user is low in power than if it is low in memory. There should be then just one flag/event really: low resources (catch-all for: battery, memory, CPU time, storage etc.). But browser could just emit please-save event and give a second or so to complete. Then decrease timer intervals significantly.
- jasonkostempski 9y agoEven if I have 100% battery, I don't want any of it going to ads or miners. For anything else, the OS already bugs the hell out of users when battery is low.
- mschuster91 9y agoFor me it's rather a miner than ads. Ads are obnoxious, some of them actual malware - get me rid of all the porn, viagra and tracking ads and I'll happily run a miner for you.
- mattmanser 9y agoLast site I was on with a miner I noticed as my laptop fan started going into vacuum mode. They'll just max out a core (all of them if they could). It's definitely not cool with me, an insane waste of electricity.
- mschuster91 9y agoIt does waste electricity, yes, and that's, to get back to the topic, something that a well-designed Power API could help keep in check. Still, I prefer giving a "mining" contribution to a website operator (who actually needs some kind of revenue to live) over watching obnoxious ads and having my every move end up in dozens of tracker databases, in addition to hackers distributing malware over ad networks.
- pdimitar 9y agoI prefer blocking them so bad they go out of business. If you can't pay to host your website then you don't have a viable business model and shouldn't be on the internet in the first place. I am not indebted to anyone to allow them to use my machine's resources for their monetary goals. If they want to make money off of me, make it clear -- I can respect that if I value your content. But exploiting browsers that are not caught up with latest security practices is being a scum and I will not tolerate it, ever.
- cup-of-tea 9y agoReally? It's a user's responsibility to check his own battery. You're probably the type of person who thinks a car should refuse to start without sufficient fuel. Stop it. Users are intelligent people. Let them do what they want.
- wolco 9y agoCars already refuse to start without sufficient fuel. It usually needs some.
- drzaiusapelord 9y agoEndless nags don't do end users much good. Battery status is a highly visible UI element on mobile. We don't need extra nagging from within an application. Also even less granular reporting is still an element to perform fingerprinting on. App developers should be already working on these conditions by default. You should already have a game save system that can expect client shutdown or disconnection at any time. That said, I could see a 15% or less warning but your mobile OS is doing that anyway, so why bother.
- na85 9y agoBetter to just block ads and montero entirely. Why risk it?
- helenius 9y agoLooks like this needs privacy.resistFingerprinting set in about:config. >I think it's a bad idea to advertise this to the general public, because you have to enable the "privacy.resistFingerprinting" pref for this to work.
- mike-cardwell 9y agoI've been using the following addon to block this fingerprinting for a while now: https://addons.mozilla.org/en-US/firefox/addon/canvasblocker/ https://addons.mozilla.org/en-US/firefox/addon/canvasblocker...
- SN76477 9y agoNo canvas is a full blown canvas blocking addon. addons.mozilla.org/en-US/firefox/addon/no-canvas-fingerprinting/ It is developed by multiloginapp.com a privacy first browser suite.
- bpicolo 9y agoLooks like the chrome equivalent is: https://chrome.google.com/webstore/detail/canvas-defender/obdbgnebcljmgkoljcdddaopadkifnpm?hl=en https://chrome.google.com/webstore/detail/canvas-defender/ob...
- lukaa 9y agoIf you use Chrome than you don't care about privacy at all so suggesting privacy extensions for chrome is ludicrous.
- icebraining 9y agoI don't use Chrome, but this hyperbole. You may not mind that Google gets your info but still dislike that every ad network out there does.
- wolco 9y agoGoogle runs many ad networks
- chewz 9y agoThis isn't true at all. If you know how to use Chrome right (with right flags / startup options [1]) it is way more private browser then FF and more advanced. All it takes is some reading and some patience (but you get useful knowledge in return). Security and privacy is just a marketing gig for Firefox in my personal opinion. Not truly reflecting the reality. Additionally you can use ungoogled-chromium to take it to the next level. https://github.com/Eloston/ungoogled-chromium https://github.com/Eloston/ungoogled-chromium [1] Some chrome flags worth knowing... --incognito --disable-sync --disable-reading-from-canvas --disable-voice-input --disable-system-timezone-automatic-detection [When VPN from different timezone] --connectivity-check-url= [set 204 from your trusted location] --disable-remote-fonts --no-referrers --disable-physical-keyboard-autocorrect --no-pings Plus Decentral Eyes plugin...
- nwah1 9y agoCanvas API allows fingerprinting precise enough to, by itself, create a unique identifier for a user. However, fingerprinting doesn't require any kind of single magic API, but almost certainly will use a collection of techniques to narrow down users. If they know your browser version, default language, screen resolution, etc those three alone can narrow you down by many orders of magnitude. And they are adding more APIs like Device Memory which, while not as precise as a canvas fingerprint by itself, could probably whittle it down an order of magnitude further. Apparently turning on "Do Not Track" has long been known as a way to single you out on the web. You'll help them narrow you down by about three orders of magnitude. It was a silly idea to begin with.
- gkya 9y ago> Apparently turning on "Do Not Track" has long been known as a way to single you out on the web. You'll help them narrow you down by about three orders of magnitude. It was a silly idea to begin with. Wouldn't that be solved if FF turned DNT on by default?
- mook 9y agoIt would also make it even more useless. IE originally had it default on; they turned it off after people complained that it meant advertisers wouldn't honour it anymore. https://en.wikipedia.org/wiki/Do_Not_Track#Internet_Explorer_10_default_setting_controversy https://en.wikipedia.org/wiki/Do_Not_Track#Internet_Explorer...
- gkya 9y agoWell it was useless to begin with anyways, as it's just kindly asking ad-publishers to please not track you, which is the closest thing we have to the platonic idea of naivety.
- yborg 9y agoIt's not useless in the context of a legislative requirement to honor it, which was the original goal that DNT was supposed to drive to. Since we now have pretty much 100% regulatory capture in the Internet space that of course is now dead.
- ChrisSD 9y agoWill extensions be able to ask for the permission at install and then be able to use it in the background without having to explicitly ask each time? I ask because it's useful to be able to draw an image to canvas to then extract image data without having to parse the file format in javascript. Having to pop up a permission dialog each time would simply annoy the user.
- robin_reala 9y agoTest it? It’s simple enough to download Nightly, set the flag and load in your extension.
- sempron64 9y agoOne of the major vectors for fingerprinting in various ways is font rendering. It's extremely surprising how integrated with the OS font rendering is, considering it's something that can be done completely seamlessly in userspace for most applications. I spent a long time integrating libpango/cairo (http://www.pango.org/ http://www.pango.org/ and https://www.cairographics.org/ https://www.cairographics.org/) into a semi-toy opengl game engine I wrote which had a Windows target, and was baffled at the level of complexity/interdependency required to build it. Gecko (firefox's rendering engine) maintains a fork of cairo https://github.com/mozilla/gecko/blob/0ea4c5812c2adecbed1d84884e9695628a47502c/gfx/cairo/README https://github.com/mozilla/gecko/blob/0ea4c5812c2adecbed1d84... , which is as far as I can tell the only way to statically link it. Both these libraries require Glib. There isn't an alternate minimalist open-source font rendering library as far as I'm aware, simply because the task of handling all font-rendering edge cases in all languages is so gargantuan. So we're stuck with a huge intertwined set of poorly understood C libraries, tightly integrated into the system and every application and ever-exploitable.
- eximius 9y agofont-rs, pathfinder are both open source Rust libraries for font rendering (cpu, gpu, respectively).
- rspeer 9y agoI checked font-rs and it looks like it just solves the small problem of rasterizing glyphs, not the whole stack. I would love a replacement for Pango/Cairo, because they are utter dependency hell, but don't get my hopes up prematurely.
- pcwalton 9y agoYou might not need Pango: HarfBuzz might be enough, depending on your needs. HB has a relatively easy to use API. stb_truetype is even more minimal. As for Cairo, there are lighter-weight alternatives available: AGG, nanovg, etc.
- 9y ago
- tigerBL00D 9y agoIt sounds like the major sources of variations in canvas behavior are the OS and the browser. So why would results of using this canvas method not correlate strongly with just using user agent string?
- jerheinze 9y agoThat's not true: > Subtle differences in the video card, font packs, and even font and graphics library versions allow the adversary to produce a stable, simple, high-entropy fingerprint of a computer. In fact, the hash of the rendered image can be used almost identically to a tracking cookie by the web server.[1] [1] : https://www.torproject.org/projects/torbrowser/design/ https://www.torproject.org/projects/torbrowser/design/
- gkya 9y ago> Fingerprints use information that’s gathered passively from your browser such as the version number, operating system, screen resolution, language, list of browser plugins and the list of fonts you have installed. Why any of this information, apart from the screen resolution and the language (assuming it's the Accept-Language header's contents), is accessible to the web pages anyways?
- icebraining 9y agoBrowser plugins was useful to know what to serve the client. I think the list of fonts was IE-only, although you could try to detect them by setting the font of a piece of text and checking if the size of the rendered text changed. The version and OS are part of the User-Agent, and the idea was also to allow the server to send the most appropriate/compatible version of the page.
- phkahler 9y ago>> apart from the screen resolution Remember when HTML first came about? The whole idea was that the browser would re-flow everything to fit on whatever resolution you had. Lots of sites hired writers, editors, and design people from the print world and tags were abused and added so those people could control the layout like they were used to doing instead of adapting to a better way. SVG scales and doesn't require the site to know your resolution. We've really screwed up by allowing the browser developers to pander to site developers and give them access to the kingdom. Now that we can all see the folly in that, it's time to reverse the trend for the next 20 years.
- incompatible 9y agoAgreed, it seems to me Firefox doesn't need to tell every site that I'm using "X11; Ubuntu; Linux x86_64; rv:56.0" right in the request header. That's surely a bit help with fingerprinting. Perhaps the sites could figure it out anyway with more effort, but at least force them to make the effort.
- hsivonen 9y agoWe tried to get rid of the Ubuntu bit years ago but failed. Ubuntu has an incentive to broadcast that users are using the Ubuntu-shipped Firefox. Basically everyone who ships a browser wants to shout: “Look at me! I have market share!” Many sites vary native-code downloads by platform, so removing OS/CPU would cause unhappiness there.
- vanderZwan 9y agoThis "breaks" some libraries with a legitimate use of reading the canvas data, like favico.js[0] (although arguably, the only reason favico.js has to read the canvas data is because the favicon API is stuck in the nineties) [0] https://github.com/ejci/favico.js https://github.com/ejci/favico.js
- maccard 9y agoI have to say, if losing this “feature” is the worst that happens, I’m totally ok with that.
- vanderZwan 9y agoI agree, the only reason favico.js needs that is because favicons can only be set through a link, which means you need to pass a data URL, which means you have to read the data out of a canvas. I don't see many other situations where that applies.
- phkahler 9y agoThat's how I feel about most browser "features" these days. What ever happened to plain old static sites? Why does everything need little floating and collapsing stuff all over? And fade-in imagery and all that nonsense.
- BenjiWiebe 9y agoAnd even collapsing, fading, and floating can be done with CSS alone. No JavaScript needed.
- SubiculumCode 9y agoSurely not all browser version numbers are required for a site to optmize rendering. Surely some versions could be collapsed? Too much info is just given away. I applaud Firefox and Mozilla. More can be done though.
- gruez 9y ago>Surely not all browser version numbers are required for a site to optmize rendering. Surely some versions could be collapsed? firefox only shows the major revision (ie. the one that changes every 6 weeks) https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent/Firefox https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Us...
- SubiculumCode 9y agoIts unfortunate that using Firefox is a decent identifying feature by itself these days. Hoping for a change in that trend.
- jonnycomputer 9y agoYeah I just noticed that on Panopticlick; a full 12 bits of information!
- MichaelGG 9y agoIs that for FF or your specific user agent? I always thought Panopticlick wasn't being fair there. Browsers update all the time, so your agent is changing every 6 weeks. If they are comparing your UA of today against UAs from their entire project, it won't be remotely accurate.
- jonnycomputer 9y agofor User Agent actually. And, my test with Chrome gave me a similar score. Yes, agents change relatively rapidly, so unless trackers have a model predicting User Agent change, a tracking profile is only good for only so long. Still, I suppose that one could either try to find the most common User Agent string, and set your browser to that, or have it change somewhat stochastically (but only enough so we don't compromise legitimate uses)
- SubiculumCode 9y agoI'm scared to try using my nightly firefox distribution
- rc_bhg 9y agoAt this point, I really hate anyone who is still using Chrome. You need to support Firefox and make it a force to recon with.
- smcl 9y agoI'm using Chrome on my personal laptop running Debian 9 since Firefox is still a minor pain on Debian. The "firefox-esr" package is based on version 52 and it's become usable again (IMO) since 56.0 or so - where I switched on my Windows based work laptop. The alternatives to using firefox-esr are OK but a bit fiddly - extract a tar.gz somewhere and add to PATH or muck around with symlinks, or install via apt using an unsupported third party (Ubuntu) package source. That's my excuse, not great but switching is on my TODO :-)
- kzrdude 9y agoInstalling it in just a directory works pretty well. It's worth it for Firefox 57 (still beta).
- deleted 9y ago[deleted]
- Sylos 9y agoPersonally, I keep the ESR-package installed, which means the .desktop-file and icon and such continue to be in their correct places, and then I just override the firefox-command via the PATH. So, in steps: 1. Download the tar.bz2 off of Mozilla's webpage. 2. Unpack it into a directory where you want to keep it. Make sure your user has write permissions to that directory, otherwise the auto-updater won't work. 3) In your PATH, place a file with name "firefox" and content: #!/bin/bash /path/to/where/you/unpacked/firefox/firefox "$@" 4) Make that file that you just put into your PATH executable (chmod +x /path/on/your/PATH/firefox). (I'm actually not on Debian, for me it's rather that I replace Firefox Stable with Firefox Nightly, but I don't think this makes a difference.)
- kodablah 9y agoFor myself, as up until recently an only-FF user, FF needs to up their embeddability game. Many people are using Chromium outside of Chrome and that number is growing as more and more custom UIs are being built around existing browsers. Some apps are using things like Electron and some are using things like CEF. Servo has a stated goal of embedding via CEF, but it's not here yet. I think if Gecko had an easy to use C API and prebuilt binaries to download to link with your app, you could see an uptick in FF usage. I'm familiar w/ past attempts/work at doing this, but it needs to be real, supported effort. Until then, I remain a Chrome (...er...Chromium) user (of course, I am not representative and maybe the ROI on embedding isn't worth it).
- donatj 9y agoThis seems like a hack of a solution that breaks more than it solves. I think the "correct" solution would be for canvas text rendering to be better specified in the standard such that it couldn't be used for fingerprinting. We'd all benefit from standardized canvas text rendering in the long run.
- Jonnax 9y agoThere are a ton of different methods for fingerprinting a user. Your unscrupulous ad broker or other actor intending on tracking you will be using a combination of these. Each extra one adds another circle to the Venn diagram narrowing you down. I'm pretty sure that almost everyone (private browsing or not) is identifiable through their browsing to at most 2-5 different users. The EFF has a site that tests your browser for some fingerprints and tells you how unique you are: https://panopticlick.eff.org/ https://panopticlick.eff.org/ Another thing I noticed was that Chrome on Android, sends your phone model and software build number as part of the user agent. If you don't have a popular phone, on a carrier customised rom, and with the other advertising info. You're likely unique.
- Balgair 9y agoOh hey, their site actually looks nice now and is useful. Also, try this one for Chrome, it should help with the fingerprinting issues: https://chrome.google.com/webstore/detail/random-user-agent/einpaelgookohagofgnnkcfjbkkgepnp?utm_source=chrome-app-launcher-info-dialog https://chrome.google.com/webstore/detail/random-user-agent/...
- lawl 9y agoRandomizing your useragent is the worst idea ever. Your fingerprint won't conform to the features that are expected. I won't go into too much detail here, on purpose. But e.g. if you claim to be Firefox while using chrome, that's completely detectable, server side, even without javascript. If you have javascript it's of course even easier to just check if your browser supports the features it should according to its user agent. Edit: Btw. I have actually reversed some fingerprinting JS code in the wild, and yes, they do check if you lie about your useragent.
- billrobertson42 9y agoCould you defeat canvas fingerprinting by adding a bit of subtle random noise to the canvas every time it is rendered to an image before sending off to the server for fingerprinting?
- MichaelGG 9y agoGenerally noise never works to defeat timing or fingerprinting attacks. It just makes it slightly harder.
- ballenf 9y agoWhat are the legitimate uses for a webpage to "read" the content of a canvas element?
- bjackman 9y agoOne example: applying an effect to an image using custom JS. I also once used this as a fun way to arrange the repeated string "FILE NOT FOUND" in the shape of the characters "404", using the system's native font.
- humblebee 9y agoA trivial use case would be to save a drawing the user has created as a jpg/png and allow the user to download it.
- syrrim 9y agoI've used it in the past to prerender components on a secondary canvas, before combining them together on the main canvas. There might be a better way of doing this though.
- yoklov 9y agoMany games will want to, both for plain canvas or for webgl.
- superkuh 9y agoAnother solution is to leave javascript off by default and only whitelist.