<http://schema.org/articleBody>
"Updates at bottom of post - Twitter's official response\r\n\r\nThere is apparently a security flaw in the Twitter code that is allowing users to have third-party websites open in your browser, and all you have to do is mouse over a link for it to happen.\r\n\r\nThe flaw, as reported by Internet security company Sophos, appears to be somewhat innocuous for now but holds some pretty nasty potential as it could allow Twitter users to be redirected to other sites that contain less-than-honorable code.\r\n\r\nWhile that threat certainly appears, another one has reared its ugly head as well. The newest variation of the code attempts, on mouseover, to have you continue to spread it via your Twitter status update.\r\n\r\nThe code, which could also be used to display multi-colored &amp;quot;rainbow tweets&amp;quot; or even a blank page, produces an effect like this:  \r\n\r\n---------------------------\r\n\r\n\r\n\r\nWe've contacted Twitter, as well as a security expert and we're waiting for any further information. For now, it is worth noting that you should avoid clicking or mousing over any link that has the &amp;quot;onmouseover&amp;quot; command, or any link that is disguised by colors.\r\n\r\nOf course, it is also advisable that you use a third-party Twitter client such as TweetDeck or Seesmic, in the mean time. The clients are not succeptable to the &amp;quot;onmouseover&amp;quot; events, and should prove to be a safe solution. If you happen to be one of the lucky New Twitter users, you should also be safe (thanks @Boris).\r\n\r\nAnother workaround is to head to the mobile version of the Twitter site at http://mobile.twitter.com as the links do not appear to be functional via that version. You should be able to safely browse Twitter, and also delete any\u00A0inadvertent\u00A0tweets from your account via the mobile interface, according to CenterNetworks.\r\n\r\nOur thanks to Sam at TwitterCounter for the images and additional information.\r\n\r\nUpdate: According to some users, the latest chunk of code not only attempts to hijack your stream, but also apparently is hijacking the account as a whole, even if you haven't moused over a link. One users has noted the following:\r\n\r\n\r\n\r\nWe've also gotten a better explanation of how the attack is happening, again via Sam from TwitterCounter:\r\nIt seems to stem from the short url\u00A0http://t.co/@. Whenever a URL is included into the tweet, Twitter renders the HTML for it (eg.\u00A0http://thenextweb.com would render as &amp;amp;lt;a href=&amp;quot;http://thenextweb.com&amp;quot;&amp;amp;gt;http://thenextweb.com&amp;amp;lt;/a&amp;amp;gt;). What this hack does, it abuses this rendering by closing the href attribute early sohttp://t.co/@&amp;quot;onmouseover=&amp;quot;etc&amp;quot;/ would render as &amp;amp;lt;a href=&amp;quot;http://t.co/@&amp;quot; onmouseover=&amp;quot;etc&amp;quot;&amp;amp;gt;http://t.co/@&amp;quot;onmouseover=&amp;quot;etc&amp;quot;/&amp;amp;lt;/a&amp;amp;gt;. That first double quote in the malicious URL closes the href attribute and allows for javascript events to be included afterwards.\r\nGeorg Wicherski from Kaspersky Labs adds to Sam's explanation:\r\nApparently, there is an actively exploiteded XSS vulnerability on Twitter. From my first preliminary analysis, you'll have to hover over a link to activate it and so far I have just seen some proof of concepts from people I follow. However, this vulnerability looks at least semi-wormable, so better turn JavaScript off on Twitter for now!\r\n\r\nUpdate (14:05 CEST): This vulnerability is confirmed to be exploitable with no user interaction automatically.\u00A0Turn off JavaScript for Twitter!\r\n\r\nUpdate 2 (14:13 CEST): It is possible to load secondary JavaScript from an external URL with no user interaction, which makes this definitely wormable and dangerous.\r\n\r\nUpdate 3 (14:24 CEST): Worm code for this vulnerability has been posted on IRC, making the rounds.\r\n\r\nUpdate 4 (14:36 CEST): Worm is live already...\r\n\r\nUpdate 5 (14:59 CEST): It appears Twitter now properly escapes links, that specific vulnerability seems closed.\r\nWe've just heard from @cpen at Twitter, and she points us to the Twitter Status blog which states that the XSS vulnerability is now being patched.\r\n\r\n10:30 AM PDT - Twitter has put a statement on the Twitter Blog that describes the incident, as well as its response."^^<http://www.w3.org/2001/XMLSchema#string>
<http://thenextweb.com/socialmedia/2010/09/21/twitter-security-flaw-allows-third-party-sites-via-mouseover/>