Researcher: Twitter fails to fix cross-site scripting bug

Hackers can hijack accounts more simply by getting people to view a tweet, he says

A vulnerability in the popular microblogging Twitter service remains unfixed and can be used by criminals to hijack accounts or redirect users to malicious Web sites, a developer claimed today.

James Slater, a software developer who blogs on the site of David Taylor, a U.K.-based search optimization specialist, said that Twitter has not successfully plugged a hole he disclosed yesterday.

The cross-site scripting bug in Twitter allows hackers to insert malicious JavaScript into tweets simply by adding code to a field of an API (application programming interface) used by third-party Twitter application developers.

Developers use the API to direct Twitter users to their Web sites by embedding links in tweets created with their software. The link appears in the text at the bottom of each tweet, such as "37 minutes ago from Tweetie," where Tweetie is the third-party application.

Shortly after Slater revealed the vulnerability Tuesday, John Adams, of Twitter's operations staff, said the service had quashed the bug. However, today, Slater said the vulnerability had not been fixed.

"Simply by seeing one of these [malformed] tweets, code can be run inside your browser impersonating you and doing anything that your browser can do," Slater said as he ticked off several possibilities, ranging from redirecting users to pornographic sites, sending a message to all of a user's followers or transmitting log-in details for Twitter as well as other Web sites or services.

"If I tweet something, all of my followers will see it instantly," Slater added. "[So] do you trust everyone you're following?"

Slater said that Twitter's bug fix only prevented hackers from putting spaces in the address box that builds the link to the third-party application.

"Other than that, everything else is fair game," Slater said. He also provided a demonstration using a dummy Twitter account, which Twitter has since suspended , as it did with the account he used Tuesday to illustrate the original exploit.

One user commenting on Slater's post of today said it appeared that Twitter had completely patched the problem.

"Looks like it's been fixed, recent tweets containing code characters get converted to their HTML code equivalent," said Scott Bowler, who said he works at a U.K.-based Web site design and consulting company.

Twitter did not reply to e-mail asking if it had, in fact, fixed the flaw.

Slater recommended that, pending Twitter patching the vulnerability, users ditch any followers they don't personally know or trust.

"Who's to say they're not already stealing your details? If you don't see their tweets they can't harm you," he said. Slater also urged people to use a trusted third-party application to view tweets, rather than relying on the Twitter Web site.

Twitter has had its share of problems this month. Three weeks ago, a determined distributed denial-of-service attack took the service offline for several hours, and crippled third-party applications for several days after that.

Join the newsletter!

Error: Please check your email address.
Rocket to Success - Your 10 Tips for Smarter ERP System Selection

Tags XSSsecuritybugstwitter

Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Gregg Keizer

Computerworld (US)
Show Comments

Cool Tech

SanDisk MicroSDXC™ for Nintendo® Switch™

Learn more >

Breitling Superocean Heritage Chronographe 44

Learn more >

Toys for Boys

Family Friendly

Panasonic 4K UHD Blu-Ray Player and Full HD Recorder with Netflix - UBT1GL-K

Learn more >

Stocking Stuffer

Razer DeathAdder Expert Ergonomic Gaming Mouse

Learn more >

Christmas Gift Guide

Click for more ›

Most Popular Reviews

Latest Articles

Resources

PCW Evaluation Team

Ben Ramsden

Sharp PN-40TC1 Huddle Board

Brainstorming, innovation, problem solving, and negotiation have all become much more productive and valuable if people can easily collaborate in real time with minimal friction.

Sarah Ieroianni

Brother QL-820NWB Professional Label Printer

The print quality also does not disappoint, it’s clear, bold, doesn’t smudge and the text is perfectly sized.

Ratchada Dunn

Sharp PN-40TC1 Huddle Board

The Huddle Board’s built in program; Sharp Touch Viewing software allows us to easily manipulate and edit our documents (jpegs and PDFs) all at the same time on the dashboard.

George Khoury

Sharp PN-40TC1 Huddle Board

The biggest perks for me would be that it comes with easy to use and comprehensive programs that make the collaboration process a whole lot more intuitive and organic

David Coyle

Brother PocketJet PJ-773 A4 Portable Thermal Printer

I rate the printer as a 5 out of 5 stars as it has been able to fit seamlessly into my busy and mobile lifestyle.

Kurt Hegetschweiler

Brother PocketJet PJ-773 A4 Portable Thermal Printer

It’s perfect for mobile workers. Just take it out — it’s small enough to sit anywhere — turn it on, load a sheet of paper, and start printing.

Featured Content

Product Launch Showcase

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?