4 ways to avoid the exploit in Facebook spam attack
- By Kevin McCaney
- Nov 16, 2011
The type of attack that spread violent and graphic images across the walls of Facebook users the past of couple days is one of the most common on the Web.
Cross-site scripting, commonly referred to as XSS, exploits vulnerabilities in Web pages, usually via a hyperlink that contains malicious code. It injects client-side script that can, among other things, be used to steal log-in credentials, track a user’s activity or exploit the browser’s activity. It’s frequently an element of phishing and other attacks.
Facebook says it has cleaned up the images and is investigating who was behind it. There have been reports that the company has identified the attacker(s) but has said only that it was not the hacker group Anonymous, which earlier this month had reportedly threatened an attack against the social media site.
The images, which included pornography and violence, spread for a couple days before Facebook took them down, although Chester Wisniewski noted on the Sophos blog that responding to the attack may have been difficult because the flaw itself was not on Facebook’s website.
Although XSS attacks are common, and often successful, there are ways to prevent them.
Administrators can take an number of filtering and other steps to protect their sites against XSS. Advice is available from The Open Web Application Security Project, IBM, Microsoft (with regard to ASP.Net) and many others.
But what can users do?
Here are four basic, common-sense steps you can take to help prevent them from infecting your browser or spreading from there.
- Be smart, which means being at least a little suspicious of anything you come across. Wisniewski points out that XSS attacks often come in the form of giveaways or sweepstakes. You should know better than to click on these links. Because XSS often is used in phishing attacks, beware of e-mails asking for personal information.
- Go to the website you want to visit. If someone sends you a link to, say, CNN, go to CNN’s site and use its search engine rather than clicking on the link. CGISecurity says this step will likely eliminate 90 percent of the problem.
- If you don’t want to venture to a website and scrounge around for an article or post that might be old, at least check with the friend who sent you the link to see if it’s legitimate.
Kevin McCaney is a former editor of Defense Systems and GCN.