{"id":676,"date":"2006-10-31T20:54:46","date_gmt":"2006-10-31T20:54:46","guid":{"rendered":"https:\/\/www.docbug.com\/blog\/archives\/676"},"modified":"2006-10-31T20:54:46","modified_gmt":"2006-10-31T20:54:46","slug":"snooping-search-terms-from-the-browser-cache-with-javascript","status":"publish","type":"post","link":"https:\/\/www.docbug.com\/blog\/archives\/676","title":{"rendered":"Snooping search terms from the browser cache with JavaScript"},"content":{"rendered":"<p>SPI Dynamics has an interesting <a href=\"http:\/\/blog.outer-court.com\/archive\/2006-08-31-n42.html\">proof-of-concept page<\/a> that can snoop your browser&#8217;s cache of visited URLs and figure out whether you&#8217;ve searched for specific terms on Google. Or rather, I assume it can on some people&#8217;s computers&#8230; for some reason it always returns &#8220;yup, you searched for that&#8221; on both Firefox and Safari on my Mac.<\/p>\n<p>Regardless, it&#8217;s an interesting attack. It&#8217;s based on the fact that your browser changes the color of links you&#8217;ve already visited, and sites can determine which style the browser has applied to a link using JavaScript and CSS, thus determining whether a particular URL has been visited or not. This basic concept was described by <a href=\"http:\/\/www.blackhat.com\/html\/bh-usa-06\/bh-usa-06-speakers.html#Grossman\">Jeremiah Grossman&#8217;s<\/a> history extractor at Black Hat his year. SPI Dynamics takes it one step further by probing for the URL corresponding to a set of query terms on the popular search sites. They can&#8217;t just get a list of all your searches, but they could in theory troll for a list of interesting search terms, be they names of competing products, porn sites, common illnesses, etc. and then modify the page being displayed based on that information. (Via <a href=\"http:\/\/blog.outer-court.com\/archive\/2006-08-31-n42.html\">Google Blogoscoped<\/a>.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SPI Dynamics has an interesting <a href=\"http:\/\/blog.outer-court.com\/archive\/2006-08-31-n42.html\">proof-of-concept page<\/a> that can snoop your browser&#8217;s cache of visited URLs and figure out whether you&#8217;ve searched for specific terms on Google. Or rather, I assume it can on some people&#8217;s computers&#8230; for some reason it always returns &#8220;yup, you searched for that&#8221; on both Firefox and Safari on my Mac.<\/p>\n<p>Regardless, it&#8217;s an interesting attack. It&#8217;s based on the fact that your browser changes the color of links you&#8217;ve already visited, and sites can determine which style the browser has applied to a link using JavaScript and CSS, thus determining whether a particular URL has been visited or not. This basic concept was described by <a href=\"http:\/\/www.blackhat.com\/html\/bh-usa-06\/bh-usa-06-speakers.html#Grossman\">Jeremiah Grossman&#8217;s<\/a> history extractor at Black Hat his year. SPI Dynamics takes it one step further by probing for the URL corresponding to a set of query terms on the popular search sites. They can&#8217;t just get a list of all your searches, but they could in theory troll for a list of interesting search terms, be they names of competing products, porn sites, common illnesses, etc. and then modify the page being displayed based on that information. (Via <a href=\"http:\/\/blog.outer-court.com\/archive\/2006-08-31-n42.html\">Google Blogoscoped<\/a>.)<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[15],"tags":[],"class_list":["post-676","post","type-post","status-publish","format-standard","hentry","category-security"],"_links":{"self":[{"href":"https:\/\/www.docbug.com\/blog\/wp-json\/wp\/v2\/posts\/676","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.docbug.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.docbug.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.docbug.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.docbug.com\/blog\/wp-json\/wp\/v2\/comments?post=676"}],"version-history":[{"count":0,"href":"https:\/\/www.docbug.com\/blog\/wp-json\/wp\/v2\/posts\/676\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.docbug.com\/blog\/wp-json\/wp\/v2\/media?parent=676"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.docbug.com\/blog\/wp-json\/wp\/v2\/categories?post=676"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.docbug.com\/blog\/wp-json\/wp\/v2\/tags?post=676"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}