Attack spread a massive quantity of hardcore pornography and violence images via a cross-site scripting flaw.

Mathew J. Schwartz, Contributor

November 16, 2011

3 Min Read

Facebook officials on Wednesday acknowledged that the site had been hit by a spam attack that unleashed massive quantities of violent and pornographic images across users' newsfeeds for more than 24 hours. Facebook blamed the attack's success on a browser vulnerability, but said it had largely brought the attack under control.

"During this spam attack users were tricked into pasting and executing malicious JavaScript in their browser URL bar causing them to unknowingly share this offensive content. No user data or accounts were compromised during this attack," said a Facebook spokesman via email. "Our engineers have been working diligently on this self-XSS vulnerability in the browser."

Facebook declined to name which browser had the vulnerability, but "self-XSS" refers to a cross-site scripting (XSS) exploit that's launched by a user. These attacks rely on social engineering to trick users into cutting and pasting a line of code into their browser. "What would compel someone to copy and paste malicious JavaScript into their browser? Usually it is related to a giveaway, contest, or sweepstakes for some fantastic prize, and to qualify you need to paste this magic code into your browser," said Chester Wisniewski, a senior security advisor at Sophos Canada, in a blog post.

But according to Facebook's security team, the social network has now created "enforcement mechanisms" that automatically shut down malicious pages that result from the self-XSS exploit, as well as accounts that appear to have been created simply to launch these types of attacks. "Protecting the people who use Facebook from spam and malicious content is a top priority for us, and we are always working to improve our systems to isolate and remove material that violates our terms," said the Facebook spokesman. "Our efforts have drastically limited the damage caused by this attack, and we are now in the process of investigating to identify those responsible."

[Learn 5 Ways Enterprises Can Stay Safer On Facebook.]

The images spread via the attack included images of celebrity Justin Bieber, who'd been "Photoshopped" into a sexual situation, as well as pictures of a dead dog. The explicit images hit many Facebook users' newsfeeds beginning Monday and continued for at least 24 hours before Facebook brought it under control. "Considering that the flaw is not within Facebook's website it appears to have been rather difficult for them to respond to this threat," said Wisniewski at Sophos.

Why attack Facebook? "Social networks are a gold mine for attackers," said Mike Geide, senior security researcher at Zscaler ThreatLabZ, via email. "With such a large volume of users, spam and malicious content can spread very rapidly."

Most of these attacks--whatever their imagery--have a single overriding purpose: to make money for attackers, typically via pharmaceutical sales, by stealing people's personal financial information, or via clickjacking or likejacking campaigns, which redirect people to websites and generate referral income for attackers.

What's unusual about this Facebook attack, however, is that it doesn't appear to be designed to make money. "We investigate lots of Facebook scams ... and I would guess that nearly 100% of them lead to some financial payout for the scammer," said Wisniewski at Sophos. But this attack, unusually, appears to have been designed solely to attack Facebook's "reputation for maintaining a reasonably family-friendly environment," he said.

About the Author(s)

Mathew J. Schwartz

Contributor

Mathew Schwartz served as the InformationWeek information security reporter from 2010 until mid-2014.

Keep up with the latest cybersecurity threats, newly discovered vulnerabilities, data breach information, and emerging trends. Delivered daily or weekly right to your email inbox.

You May Also Like


More Insights