Jump to content

New techniques expose your browsing history to attackers


nir

Recommended Posts

Security researchers at UC San Diego and Stanford have discovered four new ways to expose Internet users’ browsing histories. These techniques could be used by hackers to learn which websites users have visited as they surf the web.

 

expose your browsing history to attackers

An example of code the researchers used for their attacks

The techniques fall into the category of “history sniffing” attacks, a concept dating back to the early 2000s. But the attacks demonstrated by the researchers at the 2018 USENIX Workshop on Offensive Technologies (WOOT) in Baltimore can profile or ‘fingerprint’ a user’s online activity in a matter of seconds, and work across recent versions of major web browsers.

 

All of the attacks the researchers developed in their WOOT 2018 paper worked on Google Chrome. Two of the attacks also worked on a range of other browsers, from Mozilla Firefox to Microsoft Edge, as well various security-focused research browsers. The only browser which proved immune to all of the attacks is the Tor Browser, which doesn’t keep a record of browsing history in the first place.

 

“My hope is that the severity of some of our published attacks will push browser vendors to revisit how they handle history data, and I’m happy to see folks from Mozilla, Google, and the broader World Wide Web Consortium (W3C) community already engage in this,” said Deian Stefan, an assistant professor in computer science at the Jacobs School of Engineering at UC San Diego and the paper’s senior author.

History sniffing: Smelling out your trail across the web

Most Internet users are by now familiar with phishing; cyber-criminals build fake websites which mimic, say, banks, to trick them into entering their login details. The more the phisher can learn about their potential victim, the more likely the con is to succeed. For example, a Chase customer is much more likely to be fooled when presented with a fake Chase login page than if the phisher pretends to be Bank of America.

 

After conducting an effective history sniffing attack, a criminal could carry out a smart phishing scheme, which automatically matches each victim to a faked page corresponding to their actual bank. The phisher preloads the attack code with their list of target banking websites, and conceals it in, for example, an ordinary-looking advertisement. When a victim navigates to a page containing the attack, the code runs through this list, testing or ‘sniffing’ the victim’s browser for signs that it’s been used to visit each target site. When one of these sites tests positive, the phisher could then redirect their victim to the corresponding faked version.

 

The faster the attack, the longer the list of target sites an attacker can ‘sniff’ in a reasonable amount of time. The fastest history sniffing attacks have reached rates of thousands of URLs tested per second, allowing attackers to quickly put together detailed profiles of web surfers’ online activity. Criminals could put this sensitive data to work in a number of ways besides phishing: for example, by blackmailing users with embarrassing or compromising details of their browsing histories.

 

History sniffing can also be deployed by legitimate, yet unscrupulous, companies, for purposes like marketing and advertising. A 2010 study from UC San Diego documented widespread commercial abuse of previously known history sniffing attack techniques, before these were subsequently fixed by browser vendors.

 

“You had internet marketing firms popping up, hawking pre-packaged, commercial history sniffing ‘solutions’, positioned as analytics tools,” said Michael Smith, a computer science Ph.D. student at UC San Diego and the paper’s lead author. The tools purported to offer insights into the activity of their clients’ customers on competitors’ websites, as well as detailed profiling information for ad targeting–but at the expense of those customers’ privacy.

 

“Though we don’t believe this is happening now, similar spying tools could be built today by abusing the flaws we discovered,” said Smith.

New attacks

The attacks the researchers developed, in the form of JavaScript code, cause web browsers to behave differently based on whether a website had been visited or not. The code can observe these differences–for example, the time an operation takes to execute or the way a certain graphic element is handled–to collect the computer’s browsing history. To design the attacks, researchers exploited features that allow programmers to customize the appearance of their web page–controlling fonts, colors, backgrounds, and so forth–using CSS, as well as a cache meant to improve to performance of web code.

 

The researchers’ four attacks target flaws in relatively new browser features. For example, one attack takes advantage of a feature added to Chrome in 2017, dubbed the “CSS Paint API”, which lets web pages provide custom code for drawing parts of their visual appearance. Using this feature, the attack measures when Chrome re-renders a picture linked to a particular target website URL, in a way invisible to the user. When a re-render is detected, it indicates that the user has previously visited the target URL. “This attack would let an attacker check around 6,000 URLs a second and develop a profile of a user’s browsing habits at an alarming rate,” said Fraser Brown, a Ph.D. student at Stanford, who worked closely with Smith.

 

Though Google immediately patched this flaw–the most egregious of the attacks that the researchers developed–the computer scientists describe three other attacks in their WOOT 2018 paper that, put together, work not only on Chrome but Firefox, Edge, Internet Explorer, but on Brave as well. The Tor Browser is the only browser known to be totally immune to all the attacks, as it intentionally avoids storing any information about a user’s browsing history.

 

As new browsers add new features, these kinds of attacks on privacy are bound to resurface.

A proposed defense

The researchers propose a bold fix to these issues: they believe browsers should set explicit boundaries controlling how users’ browsing histories are used to display web pages from different sites. One major source of information leakage was the mechanism which colors links either blue or purple depending on whether the user has visited their destination pages, so that, for example, someone clicking down a Google search results page can keep their place. Under the researchers’ model, clicking links on one website (e.g., Google) wouldn’t affect the color of links appearing on another website (e.g., Facebook). Users could potentially grant exceptions to certain websites of their choosing.

 

The researchers are prototyping this fix and evaluating the trade-offs of such a privacy-conscious browser.

 

Source

Link to comment
Share on other sites


  • Replies 1
  • Views 749
  • Created
  • Last Reply

Browser history sniffing is still a thing

 

A team of Stanford and UC San Diego researchers published the research paper Browser history re:visited recently in which four new, and working, browsing history sniffing attacks are revealed to the public.

 

Attacks that attempt to find out which sites a user visited are not anything new. Mozilla, for example, plugged a leak in 2010 that allowed site owners to use CSS to check a list of sites against a user's browsing history using CSS.

 

The researchers found attacks that date back to 2002 using the :visited selector to determine whether a user on the site visited a linked resource previously.

 

The leak attacks affect all modern browsers that don't block the storing of the browsing history; in other words, Firefox, Chrome, Internet Explorer and Microsoft Edge are vulnerable while Tor Browser is not.

 

Most web browsers keep track of the visited resources by default; this is a convenience feature that is baked into the browser. Browsers may suggest these resources again when users type into the address bar and users may search visited sites in case they need to revisit them but can't remember the exact URL anymore.

 

browsing history attacks

 

The first attack that the researchers discovered uses the CSS Paint API to determine whether a particular URL was visited by a user by "crafting a link element that gets re-painted only if its associated URL is visited" and monitoring timing information to determine if a re-paint event took place.

 

The second attack uses CSS 3D transforms, a technique introduced with CSS version 3.

 

An attacker would stack 3D transforms on other CSS styles to create link elements and toggle "the link element between two different destination URLS" to identify re-paint operations.

 

The third attack uses SVG images and the CSS fill rule. The attack embeds a complex SVG image inside a link element and uses a "series of CSS fill rules under :visited selectors" to determine the visited status of a link.

 

The fourth and final attack uses Chrome's bytecode cache to determine whether a JavaScript source file was loaded previously in the browser as these files are shared between pages of different origins.

 

All four attacks have in common that they need to specify URLs to check; none manages to retrieve a user's entire browsing history.

 

How effective are these attacks? The researchers state that one of the attacks can determine the state of 6000 URLs per second; enough to check the most popular sites against the browsing history.

 

The researchers reported the issues to browser developers but patches for these attacks may take months to implement.

 

You can read or download the research paper in PDF format here.

 

Source

Link to comment
Share on other sites


Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...