r/privacy • • Apr 28 '18

Reddit.com posts obfuscated data to its root domain.

[deleted] — view deleted post

1.2k Upvotes

196 comments sorted by

View all comments

52

u/memoized Apr 28 '18

I develop a small enterprise application and I track screen size to gather stats on what sizes I need to ensure compatibility with. That's pretty common actually.

That said, as /u/nandryshak points out it is very possible to use this for fingerprinting of non-logged-in users. There has been a lot of research showing how users can be identified and uniquely fingerprinted through combinations of that plus plugin/extension versions, etc.

33

u/thecodingdude Apr 28 '18 edited Feb 29 '20

[Comment removed]

4

u/[deleted] Apr 28 '18

[removed] — view removed comment

2

u/[deleted] Apr 29 '18

You can fingerprint window size by CSS, it's not exact, but you can check ranges.

@media screen and (max-width: 1024px){
    body {
        background: url(/fingerprint/up-to-1024.png)
    }
}

2

u/_Handsome_Jack Apr 30 '18

Yes you can, but I don't remember that you can send the data back easily since you don't have XHR. Can you ?

Either way, that's the kind of things Tor Browser and Firefox fingerprint resistance (backported from Tor Browser) protect against.

2

u/[deleted] Apr 30 '18

What do you mean?

The code I provided does exactly that, it accesses a server endpoint if the width is bigger than 1024px. So if you make a list of options with different endpoints and log which user did what you can fingerprint the screen without JS or XHR. It's an image.

2

u/_Handsome_Jack Apr 30 '18 edited Apr 30 '18

Ah! Woah, as a technique I was already aware of, I glossed over it too fast and failed to connect some neurons. Yeah the image gives it out, no need for scripts.

So that leaves my second paragraph as a defence. Firefox and Tor Browser's fingerprinting resistance deal with CSS media among many other things, including actual screen and window size.