How to avoid falling into the Twitter security black hole

Seeing areas of black on Twitter.com? Don't even run your mouse over it, never mind clicking on it, it's a nasty security hole waiting for you to fall into it.

By Steven J. Vaughan-Nichols  Add a new comment

Twitter has a big problem. A new security design flaw is now being heavily exploited. Here's what you need to know now.

First, don't use Twitter. Third-party programs, such as TweetDeck, twhirl, and Twitterfall seem to be immune to the problem.

If you are using Twitter, the security hole will "appear" to be a block of black text. What it actually is though is a tiny JavaScript program. If you even just place your mouse over the text, no need to click, you'll activate the program. This "mouseover bug" can then launch potentially malicious pop-ups, send you up to third-party sites, or even send out more tweets, thus spreading the problem.

On other Twitter readers though the exploit code, which uses the OnMouseOver JavaScript command, will show up as a code fragment. The one below, for example, showed up as coming from a friend earlier today:

onmouseover="document.getElementById('status').value='RT Matsta';$('.status-update-form').submit();"class="mod

The root of the problem is a cross-site scripting (XSS) vulnerability in the Twitter Web page. As such, it can potentially affect you no matter what operating system or Web browser you're using. Really, your best move is just to avoid the Twitter site until the problem is fixed.

You can also avoid falling into this security hole by turning off JavaScript in your browser. Unfortunately, that "fix" will make many popular sites less usable. If that's the way you want to go though, here's how to do it in the most popular browsers:

Chrome
1. Select the Tool tab at the top right-hand corner
2. Click on Preferences
3. Go to "Under The Hood"
4. Click on "Content Settings"
5. Click on the "JavaScript" tab
6. Click on: "Do not allow any site to run JavaScript."
7. Click on Close

Internet Explorer
1. Select Internet Options from the Tools menu.
2. Click the Security tab.
3. Click Custom level in Security level for this zone.
4. Scroll down to Scripting, near the bottom of the list.
5. Under Active scripting, choose Disable.
6. Click OK to leave Security Settings. Click OK to leave Internet Options.

Firefox
1. Select Options from the Tools drop-down menu.
2. Select the Content section from the options at the top of the pop-up page.
3. Uncheck the "Enable JavaScript" box.
4. Click OK.

Safari
1. Select Preferences from the Safari drop-down menu.
2. Select the Security section from the options at the top of the pop-up page.
3. Under "Web Content," uncheck the "Enable JavaScript" box.
4. Close the Security window.

Twitter cliams they just fixed the problem. I'm not ready to give the all-clear yet myself. I'm still using Twitter, but I'm only doing it with my favorite Twitter application, Twitterfall.

At the same time, I'm finding this a painful reminder of just fragile and insecure many popular Web sites really are. It's enough to make me miss the "Fail Whale."

ITworld LIVE

SecurityWhite Papers & Webcasts

Webcast On Demand

Seven Deadly Sins of Cloud Security (Video)

As cloud computing gains popularity, too few people are aware of the security threats that are emerging. In this short video, experts from HP discuss the latest cloud security threats and explain measures to help overcome them. Hear about the seven deadly sins of cloud security and learn how to avoid becoming a victim of poor security in your cloud environment.Intel and the Intel logo are trademarks of Intel Corporation in the U.S. and/or other countries.

Sponsor: HP & Intel

White Paper

Establishing a Strategy for Database Security is No Longer Optional

The options for securing increasingly valuable databases are very broad and deep, and can be confusing. This research provides an overview of three categories of controls that should be implemented to ensure that enterprise data is protected in the most efficient and effective manner.

White Paper

Database Activity Monitoring Is Evolving

Read the analyst report and learn how you can leverage the core capabilities of a DAP solution for better database security.

White Paper

Protecting Against Database Attacks and Insider Threats: Top 5 Scenarios

Read this new eBook to learn the top five scenarios and essential best practices for preventing database attacks and insider threats.

Webcast On Demand

Distributed Database Security with Real-time Monitoring

View this demo and learn how IBM InfoSphere Guardium database activity monitoring can help protect your sensitive data in distributed DBMS environments with a holistic approach to data security and compliance.

Sponsor: IBM

See more White Papers | Webcasts

Ask a question

Ask a Question