{"id":3207,"date":"2011-10-10T16:28:12","date_gmt":"2011-10-10T15:28:12","guid":{"rendered":"https:\/\/www.darknet.org.uk\/?p=3207"},"modified":"2015-09-09T19:37:06","modified_gmt":"2015-09-09T11:37:06","slug":"new-research-shows-facebooks-url-scanner-is-vulnerable-to-cloaking","status":"publish","type":"post","link":"https:\/\/www.darknet.org.uk\/2011\/10\/new-research-shows-facebooks-url-scanner-is-vulnerable-to-cloaking\/","title":{"rendered":"New Research Shows Facebook’s URL Scanner Is Vulnerable To Cloaking"},"content":{"rendered":"

Oh look, Facebook<\/a> security (or insecurity) is in the news again – not that this technique is anything revolutionary or ground-breaking.<\/p>\n

It’s basically a HTTP referer detection system for the Facebook URL scanner (the thing that generates the preview\/thumbnail etc for links posted to Facebook). By detecting it, you can feed it something benign – but when a normal user comes – feed them some malware.<\/p>\n

So be careful what you click in Facebook, or Google<\/a>+ or anything else that gives you a preview but doesn’t really show you the URL or what is on the page.<\/p>\n

Members of a hacking think-tank called Blackhat Academy claim that Facebook’s URL scanning systems can be tricked into thinking malicious pages are clean by using simple content cloaking techniques.<\/p>\n

Such attacks involve Web pages filtering out requests that come from specific clients and feeding them content that is different from what is displayed to regular users.<\/p>\n

Attackers have been using this method to poison search results on Google for years now by serving keyword-filled pages to its indexing robot, but redirecting visitors to malware when they click on the links. However, it turns out that Facebook is also vulnerable to this type of content forging. “Hatter,” one of the Blackhat Academy members, provided a live demonstration, which involved posting the URL to a JPEG file on a wall.<\/p>\n

Facebook crawled the URL and added a thumbnail image to the wall post, however, clicking on its corresponding link actually redirected users to YouTube. This happened because the destination page was able to identify Facebook’s original request and served a JPEG file.<\/p>\n

“While most major sites that allow link submission are vulnerable to this method, sites including Websense, Google+ and Facebook make the requests easily identifiable,” the Blackhat Academy hackers said. <\/p><\/blockquote>\n

This kind of technique is VERY popular in the Blackhat SEO<\/a> world, or at least it was back in the day – you could feed pages to the search engines that weren’t really human readable, but they were perfect in terms of link density, keywords and so on for Google and other search engines.<\/p>\n

When humans visited, they’d get the normal page – when search bots visited they’d get a specially tailored version to hike the page up in the rankings. I’m not sure if it goes on (Google<\/a> is a hell of a lot smarter now) – but I’d be surprised if it’s totally gone.<\/p>\n

Websense of course are claiming that it doesn’t really effect them due to the all the l33t techniques they use to filter URLs…cool story bro.<\/p>\n