Slashdot Mirror


Browser History Sniffing Is Back

An anonymous reader writes "Remember CSS history sniffing? The leak is plugged in all major browsers today, but there is some bad news: in a post to the Full Disclosure mailing list, security researchers have showcased a brand new tool to quickly extract your history by probing the cache, instead. The theory isn't new, but a convincing implementation is."

49 of 161 comments (clear)

  1. Easy work-around by richkh · · Score: 5, Informative

    Fixed cache size of 0.

    1. Re:Easy work-around by CastrTroy · · Score: 5, Insightful

      I do this all the time. My history is disabled by default. Cache is 0. I have never really had a need for history in the past 10 years. If I want to find something again, it's faster to just Google it. Or if I find something that I really don't want to lose, I just bookmark it. No reason to keep a history.

      --

      Anthropic principle: We see the universe the way it is because if it were different we would not be here to see it.
    2. Re:Easy work-around by icebraining · · Score: 5, Informative

      Cache and history are completely different features. 0 cache means you'll have to download the same CSS/JS/image files over and over again for each page on the same website, which is a waste of resources for both you and the server.

    3. Re:Easy work-around by zoloto · · Score: 5, Insightful

      well, if sites would stop using so much garbage for simple content we wouldn't have this problem now would we?

    4. Re:Easy work-around by icebraining · · Score: 3, Informative

      There are plenty of cases where actual content - images, videos, etc - benefit from caching. It's not all garbage.

    5. Re:Easy work-around by fuzzyfuzzyfungus · · Score: 4, Interesting

      Completely different features; but not completely different datasets...

      If I'm trying to infer where you've been, a nicely formatted(often with handy metadata, timestamps, etc.) history list sure is handy, if I can get access to it; but it's also an obviously juicy target, and something that browser designers are going to try to keep me away from.

      Your cache is a lot messier; but it does provide grounds for inference about where you've been(and thus can retrieve from cache in essentially zero time) and where you haven't recently been(and thus have to burn a few tens to hundreds of milliseconds retrieving from a remote host)... Worse, unlike history(which is really just a convenience feature for the user, and can be totally frozen out of any remotely observable aspect of loading a page, those purple links aren't life or death...) the browser cache is an architectural feature that one cannot remove without sacrificing performance, and one cannot even easily obfuscate without sacrificing performance. It's a much lousier dataset than the history, since history is designed to document where you've been but cache only does that partially and incidentally; but it is one that is harder to get rid of without user-visible sacrifices and increases in network load...

    6. Re:Easy work-around by icebraining · · Score: 3, Interesting

      You wouldn't need to eliminate the cache, just Javascript's ability to measure the load times reliably. For example, you could prevent scripts from reading the state of a particular resource during the e.g. 500 milliseconds after setting its URL, regardless of the source used (cache or network).

    7. Re:Easy work-around by fuzzyfuzzyfungus · · Score: 4, Informative

      You'd also have to ensure that page elements don't load in any deterministic or controllable order, and that the number of requests the browser has going concurrently isn't predictable: If I can control the order in which your browser loads my page's elements, I can make useful inferences about the load time of a 3rd party resource, without any client javascript, by sandwiching its loading between the loading of two resources(at dynamically generated URLs, to ensure that you couldn't possibly have cached them) on servers I control. Not perfect, because various other factors could affect the time it takes your requests to hit my servers; but likely better than nothing.

      It would also be a bit tricky because inferential attacks wouldn't necessarily have to ask politely for the state of the resource they are interested in, they could instead attempt something else(say a script operation that will fail in a particular way unless the 3rd party resource is available). Barring a solution much cleverer than I can think of, you'd be at considerable risk of having to break progressive loading of pages entirely(or at least into human-visible-and-annoying stuttery chunks) in order to keep prevent a combination of a page interrogating its own state on the client, and correlating with timestamps on requests to servers controlled by the attacker...

    8. Re:Easy work-around by icebraining · · Score: 5, Insightful

      You might not care, but the guy paying for the server's bandwidth certainly does ;)

    9. Re:Easy work-around by Anonymous Coward · · Score: 3, Informative

      If I correctly understand how this attack works, they could easily read your proxy cache the same way.

    10. Re:Easy work-around by Anonymous Coward · · Score: 3, Funny

      If I want to find something again, it's faster to just Google it. Or if I find something that I really don't want to lose, I just bookmark it. No reason to keep a history.

      If your ultimate purpose was more privacy, I find it VERY amusing that you ended up willingly sharing everything with Google, of all parties. :D

    11. Re:Easy work-around by KXeron · · Score: 4, Informative

      There is a large difference between "user" and "customer", the problem is you may think that you are a "customer" (or at least potential customer) of every site you visit, but this is incorrect.

      "Customer" implies that there is a business relationship in play, however if it is a forum or other free resource, you will never be a customer as there is nothing to purchase. Not every website on the internet is a business.

      It is often seen as abuse when a user downloads or needlessly accesses a resource (files) multiple times and website administrators often have no qualms blocking abuse, it means less load on their site's server and more resources free (bandwidth, connection slots on the webserver daemon) for other users and on top of that: potentially lowering their bill.

      Coming from experience, I've seen people use download managers and misconfigure them purposefully so they open 20-100+ connections to a file feeling that the website somehow owes them that file, doing so on a webpage with a browser is no different.

    12. Re:Easy work-around by lpq · · Score: 2

      Except that if you read the article, it targets your cache, not your history.

      It just tries to load various sites to see if they load quickly or not. If yes, then in local cache, else not. Thus used as how recently you have visited site (it it still in cache).

      History -- i keep that going back about 240-360 days... much faster and more useful than google.

      I mean if I wanna go to a site, why would I go to google rather than typing in a few letters of the site, -- and it knows which ones I visit most... all stored in my private cache... no ads inserted...

      And you'd delete your history and use google -- when it's NOT the privacy issue (unless your machine is physically compromised...)...

      Funny thing is the thing doesn't work very well.

      First I had to permit it to run w/noscript.

      But then it ran and came back that I hadn't visited slashdot (among several others ) that visit almost daily, but certainly within the last week.

      Oh... Gee, howwdoes his test work, it tries to use your browser to contact other website... um... you wanna just allow that at random? Well, interface could use a bit of work, but Request Policy, doesn't allow the things that go through no script because they are simple fetches...

      Though on one website, as soon as I gave a site needed permission to run its interface, it loaded an XUL security sheet that rewrote my browsers allowed security policy so it could talk to any site it wanted...

      Ad block, blocked the XUL sheet.

      The site stopped being functional (music play site) in any way.

      Sigh.

  2. Unreliable by cpicon92 · · Score: 3, Informative

    This tool seems unreliable (at least in Chrome). I've been on YouTube five times in the past 48 hours and it still showed up grey on the sniffer.

    1. Re:Unreliable by Anonymous Coward · · Score: 2, Funny

      This tool seems unreliable (at least in Chrome). I've been on YouTube five times in the past 48 hours and it still showed up grey on the sniffer.

      Most likely an OS/Vendor issue.

      If you're using a Mac, pretty much every sniffer tool will show up ghey.

    2. Re:Unreliable by PopeRatzo · · Score: 3, Funny

      Home Depot is where it's at, especially for cheap Mexicans!

      That's great news. The Mexicans at Lowe's are really overpriced.

      --
      You are welcome on my lawn.
  3. Javascript required? by betterunixthanunix · · Score: 5, Informative

    This appears to require Javascript. Thank you, noscript.

    --
    Palm trees and 8
    1. Re:Javascript required? by danbuter · · Score: 5, Insightful

      NoScript should just be added in as part of default Firefox. It's very easy to manage, and saves me lots of headaches.

    2. Re:Javascript required? by icebraining · · Score: 2

      How do you observe download timings without Javascript?

    3. Re:Javascript required? by bussdriver · · Score: 3, Interesting

      YES! I 2nd that! But it should be better integrated and off by default -- they can try to hint users into using it by other means. I have NoScript on by default just because I was sick of white listing everything; but any site I feel bad about I blacklist. Its not as secure but it is doing something. Add a subscription list like AdBlock has and it wouldn't be so bad for people who want to help compile black and white lists. Normal users would get a blacklist with it always on by default and others who know better will know enough to flip the policy. The paranoid would turn off the subscription lists and do it all themselves.

      I would like a power-user area to block certain DOM features completely. I do not trust canvas by default or most the newer DOM features by default; it should ask me to ok those when a site tries to use them. (the lists mentioned above could specify what is white or black listed not just whole domains etc.) Actually, I'm wary of CSS3 fonts because font render engines haven't been a focus of security and 3D drivers... you are lucky to have stable fast 3D; security? currently a pipe dream.

      A DOM js access list by domain would be a lot like a sandbox system for websites.

    4. Re:Javascript required? by TubeSteak · · Score: 3, Informative

      It's very easy to manage

      I've installed NoScript for non-technical people and it almost immediately caused them headaches.
      There are plenty of internal academic/work websites that rely on fetching scripts from third parties...
      Which is exactly what NoScript is designed to prevent.

      And then there are endless websites that want you to allow scripts from a CDN or Google APIs or social bookmarking.
      NoScript's generic default allows aren't inclusive enough to keep websites from breaking for most people.

      --
      [Fuck Beta]
      o0t!
    5. Re:Javascript required? by icebraining · · Score: 3, Informative

      Oh, ok, but NoScript blocks those too, so betterunixthanunix's point still stands.

    6. Re:Javascript required? by hedwards · · Score: 2

      I've noticed that. When I'm using noscript I tend to spend most of my time enabling things on sites as I often times can't even see the site. I've found that request policy is a lot easier to use in many ways, but unfortunately lacks any sort of black list so you're limited in what you can do as far as blocking portions of a site's javascript collection.

    7. Re:Javascript required? by swillden · · Score: 2

      Sandwich them between requests to a real server, which you control. Network latency jitter would make the attack less reliable, but I'll bet it would still work reasonably well. Better if you have a low-latency path to the target. ISPs could probably implement it with very high reliability.

      --
      Note to ACs: I usually delete AC replies without reading them. If you want to talk to me, log in.
    8. Re:Javascript required? by Arker · · Score: 3, Insightful

      And this wont stop as long as most people are stupid enough to accept browsers that will just run whatever random script some random website hands them. Unfortunately, it's a bit of a chicken and egg problem in that way. If the major browsers would behave sanely, these insanely bad web practices wouldnt work, and the insanely bad 'web designers' that come up with them would have to learn to write real web pages or find another line of work. As is, too many people dont know and dont want to know, and we all pay the price in one way or another.

      I'll keep my noscript and be happy that broken pages actually display as broken for me, so I know to avoid them, rather than having my browser just randomly download and execute whatever crap codes the broken web page needs to make it look like something else.

      --
      =-=-=-=-=-=-=-=-=-=-=-=-=-=-
      Friends don't let friends enable ecmascript.
    9. Re:Javascript required? by Ensign+Morph · · Score: 3, Informative

      Nope. NoScript protects against the relatively common attack vector of malicious 3rd-party scripts being injected into a site you already trust, via exploits or ad networks. In this scenario the site will try to load malware from http://lolhax.biz/ or whatever, which it doesn't normally do and you haven't permitted, so it fails. It saved me once when a PHP forum I visited often got hacked.

  4. convincing implementation by cachimaster · · Score: 4, Interesting

    The theory isn't new, but a convincing implementation is.

    Convincing to who? to you?

    ACM was quite convinced back in 2000 when they published the paper.

    They obviously implemented it because it contains a lot of measurements.

    1. Re:convincing implementation by Hentes · · Score: 2

      Convincing to browser developers, obviously, who moved to fix the other problems fairly quickly but have, to date, done nothing about this one.

      Are you kidding me? The CSS visited link vulnerability took ages to get fixed.

      What we have now, though, is a method that is fast, practical, and nondestructive.

      It's too inaccurate to be practical. Try it.

  5. Re:but you have to run their software to do it... by lattyware · · Score: 4, Informative

    Reality: Only a small number of users use NoScript et al. This is a problem for those that don't, and even if you do, what about when the site you want someone from requires JS?

    --
    -- Lattyware (www.lattyware.co.uk)
  6. without javascript by Anonymous Coward · · Score: 4, Interesting

    They say it can work without javascript, but I do not believe that. None of the samples work without javascript. In the paper, it says:

    We omit the straightforward but tedious details of how to write HTML that causes popular browsers to make serialized accesses to files.

    Can anyone provide this tedious, but allegedly straightforward, and extremely critical detail?

    1. Re:without javascript by Hentes · · Score: 3, Informative

      This is already fixed in most browsers, you need to update/reconfigure yours.

    2. Re:without javascript by Bogtha · · Score: 2

      There's a little more to it than that. Browsers open multiple connections in parallel. Historically, this was limited by the HTTP specification to two simultaneous connections, but recent versions of browsers have increased this limit. You'd have to detect how many simultaneous connections were in use (or hack it by detecting the browser) and make requests to enough tarpits to bog down all but one of the connections. It would probably be fairly reliable, but the work to build that just to demonstrate the flaw in a different way doesn't seem worth it.

      There are places where serial access is more well-defined though. Off the top of my head, the only one I can think of is downloading external scripts (because you can't know ahead of time which of them will call document.write(), but they may be thinking of another case that will apply even when scripts aren't being downloaded.

      --
      Bogtha Bogtha Bogtha
  7. How by farnsworth · · Score: 5, Informative

    This seems to work by loading well-known resources into an iframe and using a heuristic of the "time to load" to tell if it's cached or not. Hence, whether or not you have visited that site. I just scanned the source code, but this is what it looks like. It any case, it's not like this code reveals your history -- just whether or not your browser has visited one in a set of popular sites.

    Yay stateless web.

    --

    There aint no pancake so thin it doesn't have two sides.

  8. Private Browsing mode FTW! by pla · · Score: 3, Insightful

    Subject says it all. I don't worry about cookies, cache, or malicious scripts (other than wastes-of-bandwidth) because every time I open FireFox, it looks shiny and new to the outside world.

    When I visit a "sensitive" site, like my bank, I open a new browser session and close it when I finish. Aside from that, I just don't worry about it, and have never had a problem. Hell, even that great data-mining wizard Google - My home page and probably the single most frequent site I hit - Always defaults me to Georgia (presumably the location of my ISP's HQ), missing by over a thousand miles.

  9. Easy enough by Baloroth · · Score: 4, Interesting

    Tried the test for Opera, and it mostly worked (missed Newegg). Tried it in a private tab, didn't work at all. So, any site you don't want tracking you you load in a private tab. Which you should anyways.

    Out of curiosity, I also tried the FF test (in Opera, still) and the IE test. The IE worked, better even than the dedicated test, while the FF test failed utterly. Curious.

    And of course, as always, this test only works for the specific sites you test for, not generally. But that isn't surprising. Wasn't terribly fast, either, I'd certainly notice if you tested for hundreds or thousands of sites.

    --
    "None can love freedom heartily, but good men; the rest love not freedom, but license." --John Milton
  10. Alt-t, d, enter by Anonymous Coward · · Score: 3, Interesting

    It's a dutch boy's thumb, but that quick key-combo clears history in Opera. I just habitually hit it between domains to kill tracking without screwing up sites that need cookies or js to function. Likely there's a Firefox equivalent.

    What neither has by default is a way to do this automatically. Browser makers finally got around to letting us limit cookies to the visited site, but they could go much further.

    Like just rig browser cache to be per domain -- there's no need for all domains to share the same cache.

    Maybe it's the festish for 'fastest' browser? It just seems the makers aren't doing what can be done easily enough on modest modern machines to improve privacy.

  11. Re:jacked or tracked: it's your choice by CapOblivious2010 · · Score: 5, Interesting

    I've only gotten one internet virus in my life - via the "executable GIF" exploit, from visiting NVIDIA.COM !!!

    If you think "reputable" means "safe", YOU'RE a few cards short of a full deck!

  12. A possible fix by Hentes · · Score: 2

    While this specific implementation is very inaccurate, others using a similar method may work. An obvious workaround to these kind of attacks is to turn off caching, but that would increase loading times. I was wondering if there was a hack in some browser that would allow you to ban a site from using resources from another domain, whether it's by HTML or scripts. Does anyone know such a solution?

    1. Re:A possible fix by _0xd0ad · · Score: 3, Informative

      AdBlock Plus lets you do that very easily.

      e.g.
      Block fsdn.com on third-party sites except slashdot.org
      ||fsdn.com^$third-party,domain=~slashdot.org
      Block fbcdn.com on third-party sites except facebook.com, facebook.net, and fbcdn.net (write similar rules to block the other 3 facebook domains)
      ||fbcdn.com^$third-party,domain=~facebook.com|~facebook.net|~fbcdn.net

  13. Re:Multiple tests give conflicting results by icebraining · · Score: 3, Informative

    That's because the test consists on downloading a file and measuring if it was instantaneous (cached) or not. Of course, the second time you run it, the script itself will have downloaded (and therefore put in cache) the same file, tricking itself.

  14. Re:jacked or tracked: it's your choice by icebraining · · Score: 2, Funny

    'Multiple exclamation marks,' he went on, shaking his head, 'are a sure sign of a diseased mind.'

  15. Re:Fix: add a random delay for reporting time to l by Korin43 · · Score: 2

    Except that would make JavaScript slower, which is the exact opposite of what the browser makers are going for.

  16. Better have good gag reflexes by axlr8or · · Score: 5, Funny

    Cuz if they wanna sniff my browser history they are in for a surprise.

  17. Hard to block this by rlk · · Score: 4, Interesting

    This kind of timing attack isn't easy to block.

    Some kinds of timing attacks are. I think I heard once that a timing attack could be made against passwords in TOPS-20, because the passwords were stored in plaintext and compared one character at a time. The trick was to do the system call to check the password (or whatever it was) with the guess split across a page boundary (maybe the second page was forced out of memory or something). Since the system call would return as soon as one character didn't match, it was easy to see if the next character being guessed was correct or not. The fix was simple enough. Obviously there was a bit more to it than that, but I only heard this apocryphally as it was, and at that probably about 25 years ago.

    This kind of thing is harder to fix, since it depends upon the difference between cache and non-cache access time, and the non-cached access time is not deterministic. It would be possible for the browser to introduce an artificial delay into the appropriate JavaScript calls, but that would make performance go down the tubes.

    In any event, I tried it and the results didn't look very accurate (the first time, all of the sites it tried claimed that I had hit them; the secon time it caimed only one site was in cache, and after that it thought that nothing was).

  18. Suggest NoScript to implement Whitelist loader by Hyperhaplo · · Score: 3, Interesting

    Perhaps you are both right.

    Let's start with the idea that NoScript by default is enabled.

    Let's continue with the notion that application management should be as minimal as possible.

    I give firewall software as a good example. If it is not easy to do one of the following, then the software (in my opinion, for me) fails:
    1) Monitor all software incoming / outgoing. Block anything not on the whitelist, log connections, provide an interface in the *background* for the user to allow or deny in the future as Rules

    2) Monitor all software incoming / outgoing. Allow all by default, log all connections, provide an interface for the user to allow or deny in the future as Rules

    NoScript does most of this already. What it lacks is a reliable whitelist, similar to that used by Ghostery or AdBlock Plus, which loads the user up with 99% of the Rules they need.

    I agree with your comment. For most users, you can whitelist all major bank sites - knowing that 99% of the time the sites are fine.
    If the user disagrees then they can modify this setting.
    Add onto that list a whole bunch of sites where the root site should be able to be trusted; news sites - slashdot, news.com, guardian, age, newspapers, etc.
    Built onto that well known commerical sites.

    Make this list auto-update once per month; but not to override user set preferences.

    There you go. A tool very similar in nature to Adblock Plus and Ghostery which upon startup has a configuration to protect users and supply 99% of the functionality needed.

    If this was the case, then I would put this on lots of people's PCs, knowing that if there are issues then they can be dealt with.

    Although, at the moment, Ghostery + AdBlock Plus on Firefox provide most of the protection needed in a usable, safe and coherent manner.

    --
    You have a sick, twisted mind. Please subscribe me to your newsletter.
  19. You would think so... by pscottdv · · Score: 3, Interesting

    But according to how this exploit works they are not "completely different". They, in fact, have a small overlap. Apparently the exploit works by using JavaScript to load a file from a website and see how fast it loads. It infers you have been to a website if the file loads quickly.

    They seem to have a trick to stop the process just before the browser puts the loaded file into the cache which prevents it from poisoning the very cache it is "testing".

    Thus, setting cache to 0, which the OP recommends, and which I have been doing for years, is exactly the fix needed. I admit that I do not know he also disables history, as that would not help with this exploit.

    --

    this signature has been removed due to a DMCA takedown notice

    1. Re:You would think so... by icebraining · · Score: 4, Insightful

      The script doesn't actually analyze the cache, just the time it takes to load the resource, so if your proxy's cache is fast enough it might still be detected.

  20. Cache Experiment (Linux) by Anonymous Coward · · Score: 2, Interesting

    I'm using Linux and I'm trying the same thing that I do with Adobe Flash... I /dev/null it...

    cd to .mozilla/firefox/xxxxxxx.default (replace x's with your specific alphanumeric string)
    rm -rf Cache (deletes Cache dir and all subfolders)
    ln -s /dev/null Cache (creates symlink of Cache to /dev/null)

    Since nothing escapes the event horizon that is /dev/null, your Cache is written but cannot be inspected by others seeking to pry into your well-deserved privacy.

    So far, so good. I have noticed no slowness by doing this.

    By the way, you can do this with Adobe Flash to prevent your LSO/Super/Flash cookies from being farmed as well.

    In your home dir, delete both the .adobe and .macromedia dirs. Some distros only have one or the other. Debian and variants have both.

    rm -rf .adobe .macromedia
    ln -s /dev/null .adobe
    ln -s /dev/null .macromedia

    Now you can experience the benefits of Flash without exposing yourself to privacy concerns.

  21. Convenience by pentadecagon · · Score: 2

    Convenience comes at a price.
    You can buy your bread and butter at the local grocery with all your neighbors watching.
    Or you can disguise and go to the other end of town, which takes time and increases traffic.