News for hackers. Stuff that matters.
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by burtonator on Wednesday March 06, 2019 @06:30PM (#19324073)
Apps need it to determine where to place elements.

If it wasn't you would still be able to reverse engineer it by sticking elements outside the viewport and seeing if they're hidden or not.

Turns out anonymity is super freaking hard. :-/

Re:Firefox to add Tor Browser anti-fingerprinting technique ... by oftenwrong on Wednesday March 06, 2019 @07:48PM (#19324611)
Some would take enhanced privacy over properly-functioning sites. I wonder how broken sites would appear if the browser simply lied about such things.
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by Tsubasachan on Thursday March 07, 2019 @04:43AM (#19326760)
Wonder no longer. There is an add-on for FF called canvasblocker.

https://github.com/kkapsner/CanvasBlocker/releases

I have been using it and it makes some websites go nuts and Google CAPTCHA takes forever.

Re:Firefox to add Tor Browser anti-fingerprinting technique ... by dymk on Thursday March 07, 2019 @01:45AM (#19326034)
There’s like a billion side channels to determine how big the screen is unless you just want to entirely break basic css. Which is a pretty unreasonable way to address this problem.
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by oftenwrong on Thursday March 07, 2019 @05:41AM (#19327030)
I block CSS altogether on most sites with uMatrix, so I do not think it is that unreasonable.
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by rocho on Thursday March 07, 2019 @06:09AM (#19327153)
Doesn't that make most sites unusable?
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by oftenwrong on Thursday March 07, 2019 @07:20AM (#19327412)
Surprisingly, most sites are perfectly usable with CSS disabled. They end up looking a bit like "motherfucking website"[1], or what you see in a text-based web browser.

[1] https://motherfuckingwebsite.com/

Re:Firefox to add Tor Browser anti-fingerprinting technique ... by blattimwind on Thursday March 07, 2019 @07:24AM (#19327430)
Disabling both CSS and JS actually works around usability issues on a bunch of sites ¯\_(ツ)_/¯

It's like reader mode, except it works on more sites.

Re:Firefox to add Tor Browser anti-fingerprinting technique ... by def_true_false on Thursday March 07, 2019 @06:21AM (#19327195)
Wouldn't loading all external links right away (think background-image) solve this? How does the site exfiltrate the gathered information without javascript or tracking pixels?

Edit: Having a bunch of html buttons/links, showing a different to agents based on their resolution and waiting to see which ones they follow would break this, unless everyone crawls a lot of stuff they don't need. Pretending to be one of a few common sizes is probably a better solution.

Re:Firefox to add Tor Browser anti-fingerprinting technique ... by daveFNbuck on Thursday March 07, 2019 @02:13AM (#19326138)
People with that preference usually just turn off javascript.
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by oftenwrong on Thursday March 07, 2019 @05:44AM (#19327046)
...and they would still be susceptible to CSS-based fingerprinting.
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by cortic on Thursday March 07, 2019 @08:19AM (#19327760)
How? Admittedly my knowledge of CSS is dated, but without scripting enabled you can't set cookies, make auto server request, or even auto set an external CSS file (that could be served and counted)..

Its not something I've considered before and i am genuinely curious how this would work.

Re:Firefox to add Tor Browser anti-fingerprinting technique ... by detaro on Thursday March 07, 2019 @08:23AM (#19327786)
You can make server requests by loading images and fonts. Browsers only load those resources they actually need, so there's lots of opportunities for conditionally triggering requests. Media queries for window size, fallback fonts to check installed fonts, css feature checks to make guesses at the browser type, ...
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by enriquto on Thursday March 07, 2019 @11:03AM (#19329122)
oh my god, what a world we live in!
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by CharlesColeman on Wednesday March 06, 2019 @06:34PM (#19324097)
> Apps need it to determine where to place elements.

Could they hide the actual window dimensions from website javascript by only allowing a special kind of sandboxed function to access it? The website's code only really needs to do arithmetic on those values, so the browser could deny access to the actual values and force the code to manipulate them symbolically.

Re:Firefox to add Tor Browser anti-fingerprinting technique ... by blotter_paper on Wednesday March 06, 2019 @08:46PM (#19324892)
If I'm allowed to query the position and/or size of anything else in the DOM I can figure out window size by aligning elements at the edges or making one 100vw x 100vh and querying the position/size of those, so you really can't let me access the position or size of anything. I might have elements styled based on media queries, or old-fashioned DOM queries, so if I'm allowed to change how a button looks based on window size I can then check something about this element that isn't directly related to size or position. For example it doesn't make since to have a "download the app" button on desktop, but if you let me make it invisible then you can't let me query the visibility of it. This is true of all styling, if you let me derive it from vh/vw then you can never let me query it after that, which makes a lot of things tricky. Trading functionality that relies on DOM/media queries for privacy is totally valid, I'm just saying that it will make some non-obvious things impossible for a developer to do, and there are sites today that people enjoy using that will have their core functionality broken if this is the future. Browser-based CAD tools were recently discussed on HN, and those are right out. Really, I think the future is both, but I'm not quite sure how they'll coexist.
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by zimpenfish on Thursday March 07, 2019 @01:16AM (#19325931)
> Trading functionality that relies on DOM/media queries for privacy is totally valid

Perhaps it should be a site-specific permission like the microphone or camera. Your generic news site doesn't need that functionality (and shouldn't ask for the permission - you'd know something shady was going on) but your browser-based CAD tool would and you'd grant it there.

Re:Firefox to add Tor Browser anti-fingerprinting technique ... by ringaroll on Thursday March 07, 2019 @01:30AM (#19325976)
This will cause a permissions fatigue. Only the most sensitive things should have permission. The usage of these capabilities is large enough that it should not be behind a permission.
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by CharlesColeman on Thursday March 07, 2019 @11:24AM (#19329308)
If we went down this path, I think that the any permissions dialog would come at the end of a very long PR campaign and feature ratcheting to get developers to update their sites to not need the permission unless absolutely necessary. Sort of like what's happened with the deprecation of Flash.
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by tedunangst on Wednesday March 06, 2019 @06:40PM (#19324135)
Are you also going to download every resource listed in every @media section of the CSS regardless of screen size?
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by blotter_paper on Wednesday March 06, 2019 @08:47PM (#19324898)
That part doesn't seem too unreasonable to me, but you could also just go with the largest available size and then scale it as necessary on the client.
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by missblit on Wednesday March 06, 2019 @09:28PM (#19325098)
Scaling down the largest size isn't always appropriate (though would probably work in most cases).

One example might be a set of images where the smaller images wrap text more agressively to work better on a screen that's not as wide.

Re:Firefox to add Tor Browser anti-fingerprinting technique ... by blotter_paper on Wednesday March 06, 2019 @09:40PM (#19325159)
Good point, I've seen comparable use cases in the wild but it slipped my mind!
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by oftenwrong on Wednesday March 06, 2019 @08:22PM (#19324787)
The browser could pick a fake screen size, and behave in a way that is consistent with that fake screen size. This would probably break many sites, but it would mitigate fingerprinting if a common size was used.
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by pmoriarty on Wednesday March 06, 2019 @09:10PM (#19324999)
This solution is just begging for side-channel attacks.

Firefox had better make sure its timing is not affected by such shenanigans, for instance.

Re:Firefox to add Tor Browser anti-fingerprinting technique ... by oftenwrong on Thursday March 07, 2019 @05:39AM (#19327016)
I doubt that is avoidable, as the browser would still probably need to render at the false viewport dimensions. For a common adversary, fingerprinting based on timing would be more involved and less useful.
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by ehsankia on Wednesday March 06, 2019 @06:45PM (#19324166)
I don't get it. Don't the majority of people browse at full screen, on common devices which all have the same fullscreen dimensions?

Who out there browses to a size, resizes there window, then browses to another website, then resizes again and so on? That makes no sense.

Re:Firefox to add Tor Browser anti-fingerprinting technique ... by beatgammit on Wednesday March 06, 2019 @10:13PM (#19325265)
Even if they do, there's variation in what "full screen" means. Some people have the bookmarks toolbar enabled, others don't. Some have compact icons, others don't. Some keep a sidebar open, others don't. Some use a theme that changes the size of toolbars. Some have a dock/taskbar always visible, some have differently sized taskbars, etc.

This all leads to a huge variation between users of even the same screen size (e.g. 1920x1080), since the portion of the screen available to the page is different.

The Tor browser fixes this by having the window always be the same size on all machines, regardless of screen resolution. This is a bit annoying because it means you have less stuff on the page visible at a time, but since it makes you look the same as every other user, it's worth it for privacy conscious users.

Re:Firefox to add Tor Browser anti-fingerprinting technique ... by nightski on Wednesday March 06, 2019 @07:00PM (#19324277)
As a user with an ultrawide monitor I have several browser windows open and arranged in various configurations at all times and often resize them.

Probably not a super common scenario, but not ultra rare either.

Re:Firefox to add Tor Browser anti-fingerprinting technique ... by manigandham on Wednesday March 06, 2019 @07:07PM (#19324325)
Yes. I'm in adtech. 60% of browsers are mobile/tablet which are already fixed. The rest are almost always fullscreen. Maybe 2% have non-standard sizes.
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by meruru on Wednesday March 06, 2019 @07:15PM (#19324385)
When you two say fullscreen, surely you mean maximized? I imagine a sizeable fraction of users don't even know how to fullscreen a window.
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by manigandham on Wednesday March 06, 2019 @07:34PM (#19324534)
yes
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by missblit on Wednesday March 06, 2019 @09:31PM (#19325110)
Fixed except when the user enables android split-screen mode! I believe split-screen mode implies the height of the browser window can change at runtime (in a JS visible way), but haven't looked at it recently.
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by lucasmullens on Wednesday March 06, 2019 @06:56PM (#19324248)
I'm not sure what percent of people customize their dock height on macOS, but that setting uses a slider, which would cause a bunch of unique heights for a maximized browser.
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by meruru on Wednesday March 06, 2019 @07:02PM (#19324296)
The OS chrome between users varies a ton. Each taskbar, dock and titlebar can have their own size. In my case I'm using a window manager without decorations, so I don't even have a titlebar!
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by Swenrekcah on Wednesday March 06, 2019 @06:50PM (#19324212)
I would actually really like an answer to this question, I’ve often thought about it!
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by mrmekon on Wednesday March 06, 2019 @07:05PM (#19324317)
Huh, I thought the original was a sarcastic question. In that case, let me explain:

I keep a browser window open at all times. It is never full screen, because if it were full screen I wouldn't be able to see multiple windows at the same time.

I keep my browsing window as close to 1024x768 as possible. In 2019, a lot of websites can't handle a browser window using a mere 75% of the laptop screen, so they either render incorrectly or, worse, switch to a mobile view. When that happens, I either blacklist the website forever in a contemptuous fervor, or just resize the window. Apparently, this resizing action is trackable.

When I say "as close to 1024x768" as possible, I mean exactly 1024x768 unless I have resized it and forgotten. I use a little AppleScript thing to resize it to 1024x768, precisely for browser fingerprinting reasons. When you resize the window by hand, you typically end up with a VERY unique window dimension.

Re:Firefox to add Tor Browser anti-fingerprinting technique ... by meruru on Wednesday March 06, 2019 @07:20PM (#19324439)
The privacy.resistFingerprinting option will always launch your browser at exactly 1000x1000 size. It's probably preferable to your script.
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by Swenrekcah on Thursday March 07, 2019 @01:59AM (#19326085)
Thanks for the answer. I just thought people usually kept their windows at full screen, but reading all the replies perhaps I am the outlier here!
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by gnopgnip on Wednesday March 06, 2019 @11:45PM (#19325565)
Even if you had 100 users with 1024x768 resolution for their screen they can be fingerprinted further because of small differences in the browser. Zoom setting, toolbar size, bookmarks button showing, full screen mode, small icons, additional toolbars, task bar auto hide, larger than standard taskbar all affect the viewable area of the browser and this is what the site operator or analytics will see.
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by ionised on Thursday March 07, 2019 @04:12AM (#19326618)
Browsing in full screen is just a waste of space on my preferred devices.
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by joshred on Wednesday March 06, 2019 @06:52PM (#19324224)
Does that matter? Don't devs cater to the outliers?
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by Swenrekcah on Wednesday March 06, 2019 @07:00PM (#19324285)
It matters because if 99% of people have the same 5 configurations and only the outliers are identifiable, then this method would not be as valuable for spying as it is reported to be.
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by EGreg on Wednesday March 06, 2019 @07:14PM (#19324382)
This! So what’s the answer??
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by gpvos on Thursday March 07, 2019 @05:40AM (#19327020)
Would something like Perl's taint functionality work? I.e., all values derived from size, position, colour, pixel data, user agent, etc. are marked as tainted, and are stripped (or randomized or replaced with default values) from data that is sent over XMLHttpRequest and other communication methods. It's probably extremely hard to make that watertight though.
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by Liquid_Fire on Thursday March 07, 2019 @08:35AM (#19327863)
Even if it was implemented perfectly, you could work around that using timing side channels.

For example, multiply the value (e.g. window width) by some huge number, perform a slow operation in a loop that many times, and finally clear a flag. Meanwhile another thread is filling an array one by one until the flag gets cleared. The last non-tainted index in the array indicates your approximate window width.

Re:Firefox to add Tor Browser anti-fingerprinting technique ... by thecatspaw on Thursday March 07, 2019 @06:14AM (#19327164)
That would make it difficult to serve different sized images to different sized screens
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by adrianratnapala on Thursday March 07, 2019 @12:37AM (#19325795)
> Apps need it to determine where to place elements

Annoying apps which control the layout in JS instead of letting the browser do it will need it.

Re:Firefox to add Tor Browser anti-fingerprinting technique ... by renholder on Wednesday March 06, 2019 @06:52PM (#19324227)
>Apps need it to determine where to place elements.

This determination can't be done client-side? In other words, if I resize the window, it's going to send the new size to determine where to place the elements in the "new" area?

Re:Firefox to add Tor Browser anti-fingerprinting technique ... by tedunangst on Wednesday March 06, 2019 @06:59PM (#19324273)
document.Write("<img src=width.png?" + document.innerWidth + ">")
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by jancsika on Wednesday March 06, 2019 @08:19PM (#19324765)
That's a problem.

The W3C should probably create a new, rich spec hundreds of pages long so that frontend developers may instead declare images as a unitless set of point relationships to be rendered at any resolution without digital artifacts.

For example, instead of working on the pixel level, the developer would be free to simply declare, "an arc may exist in one of these four locations." Then, merely by declaring two further "flag" values, the developer can communicate to the renderer which three arcs not to draw, except for the edge case of no arc fitting the seven previously-declared constraints.

Just imagine-- instead of a big wasteful gif for something as simple as an arc animation, the developer would simply declare, "can someone just give me the javascript to convert from arc center to svg's endpoint syntax?" And someone on Stackoverflow would eventually declare the relevant javascript.

Re:Firefox to add Tor Browser anti-fingerprinting technique ... by tedunangst on Wednesday March 06, 2019 @08:39PM (#19324866)
The browser can also ship with a pretrained GAN, so the site just asks for a picture of a cat and then the GAN creates one as needed, but nobody will know exactly which cat you saw.
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by pferde on Thursday March 07, 2019 @10:14AM (#19328624)
That will be remembered as day when "Catwoman" went from being sexy to being weird and disgusting.
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by adrianN on Thursday March 07, 2019 @01:46AM (#19326036)
Now I want to train a GAN that takes images' alt text and reproduces the image.
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by ringaroll on Thursday March 07, 2019 @01:34AM (#19325999)
I can see where this is heading. LOL
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by cimmanom on Wednesday March 06, 2019 @08:01PM (#19324686)
Yes, but how do you keep the client from then sending that data to the server?
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by beatgammit on Wednesday March 06, 2019 @10:16PM (#19325277)
You can't. Even if you block JavaScript, they can still get it from CSS media queries, where the can say which file to download given a certain screen size.

The best solution is to use the same screen size as everyone else so you don't stand out. And that's what this does.

Re:Firefox to add Tor Browser anti-fingerprinting technique ... by cimmanom on Thursday March 07, 2019 @07:03AM (#19327348)
Right, that’s what I’m saying. Keeping the data client side as ggp suggests is not possible.
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by enriquto on Thursday March 07, 2019 @10:44AM (#19328921)
> Turns out anonymity is super freaking hard

Indeed, but not revealing the screen size is super easy. Just turn off javascript (except, maybe, for a whitelist of 2 or 3 sites where you really need it).

Re:Firefox to add Tor Browser anti-fingerprinting technique ... by anoncake on Friday March 08, 2019 @02:28AM (#19335801)
> Turns out anonymity is super freaking hard. :-/

If you insist on letting random people run code in your document reader.

Re:Firefox to add Tor Browser anti-fingerprinting technique ... by trumped on Wednesday March 06, 2019 @06:52PM (#19324222)
apps? do we consider websites apps now?

but either way if you have the JS, CSS and HTML, you should know where to put elements.

Are nyc (news yc com) people part of the problem?

Re:Firefox to add Tor Browser anti-fingerprinting technique ... by function_seven on Wednesday March 06, 2019 @07:00PM (#19324286)
What CSS file did the browser fetch? The one for screens less than 500px wide? Or the one for screens that are 504px wide?

There are a million ways to exfiltrate UI parameters through JS and CSS. It’s hard to both prevent that and still allow JS and responsive pages.

Re:Firefox to add Tor Browser anti-fingerprinting technique ... by trumped on Wednesday March 06, 2019 @07:13PM (#19324376)
just grab them all... not a huge deal, they are so small.
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by function_seven on Wednesday March 06, 2019 @07:36PM (#19324542)
Okay. Those different css files all specify different images on the server, depending on the media query. Are we downloading all those images as well?
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by trumped on Wednesday March 06, 2019 @07:38PM (#19324559)
right... developers suck, overall ( I could not reply to the comment below because nyc would not let me)
Re:Firefox to add Tor Browser anti-fingerprinting technique ... by SmellyGeekBoy on Thursday March 07, 2019 @04:40AM (#19326747)
It's more a case of the web being used in ways in which it wasn't really originally intended. Of course developers can implement things poorly and create problems (and often do) but demand for things like responsive sites is user-driven in my experience.

If you don't understand how the web works and actively dislike the community I don't understand why you keep commenting here.

Re:Firefox to add Tor Browser anti-fingerprinting technique ... by trumped on Thursday March 07, 2019 @10:23AM (#19328717)
it's all good my little monkey.... also tell me why most websites use files from 20 different domains if you understand the web so well....