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 Good Gear Guide 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

Most Popular Reviews

Latest Articles

Resources

PCW Evaluation Team

Matthew Stivala

HP OfficeJet 250 Mobile Printer

The HP OfficeJet 250 Mobile Printer is a great device that fits perfectly into my fast paced and mobile lifestyle. My first impression of the printer itself was how incredibly compact and sleek the device was.

Armand Abogado

HP OfficeJet 250 Mobile Printer

Wireless printing from my iPhone was also a handy feature, the whole experience was quick and seamless with no setup requirements - accessed through the default iOS printing menu options.

Azadeh Williams

HP OfficeJet Pro 8730

A smarter way to print for busy small business owners, combining speedy printing with scanning and copying, making it easier to produce high quality documents and images at a touch of a button.

Andrew Grant

HP OfficeJet Pro 8730

I've had a multifunction printer in the office going on 10 years now. It was a neat bit of kit back in the day -- print, copy, scan, fax -- when printing over WiFi felt a bit like magic. It’s seen better days though and an upgrade’s well overdue. This HP OfficeJet Pro 8730 looks like it ticks all the same boxes: print, copy, scan, and fax. (Really? Does anyone fax anything any more? I guess it's good to know the facility’s there, just in case.) Printing over WiFi is more-or- less standard these days.

Ed Dawson

HP OfficeJet Pro 8730

As a freelance writer who is always on the go, I like my technology to be both efficient and effective so I can do my job well. The HP OfficeJet Pro 8730 Inkjet Printer ticks all the boxes in terms of form factor, performance and user interface.

Michael Hargreaves

Windows 10 for Business / Dell XPS 13

I’d happily recommend this touchscreen laptop and Windows 10 as a great way to get serious work done at a desk or on the road.

Featured Content

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?