Cybersecurity researchers at Imperva have discovered a vulnerability in Facebook that may have allowed attackers to steal personal information about users and their friends.
Ron Masas, Imperva security researcher, the vulnerability lies within the way the Facebook search feature shows results for searches. The page that displays search results is vulnerable to cross-site request forgery (CSRF) attacks. The results page includes iFrame elements for each outcome of the search; the endpoint URLs are not protected from CSRF.
CSRF is defined as:
Cross-Site Request Forgery (CSRF) is an attack that forces an end user to execute unwanted actions on a web application in which they’re currently authenticated. CSRF attacks specifically target state-changing requests, not theft of data since the attacker has no way to see the response to the forged request
The vulnerability did not allow attackers to gather huge amounts of information at once but was localised so the damaging fallout from this vulnerability would likely have been small. There is no evidence this vulnerability was exploited since attackers are most likely looking for more lucrative vulnerabilities. The vulnerability has now been patched by Facebook.
In a statement, Masas said:
The attack actually leaks the number of search results for any search query on the currently logged Facebook account. The most basic usage is to make boolean queries like ‘photos of me from Iceland