Skip to content
XSS Disclosed report Intermediate

DOMXSS in Tweetdeck

File Descriptor Follow

Originally disclosed on HackerOne

  • Triaged in 8 hours
  • Fixed in 10 hours
  • Paid in 4 days
  • Disclosed after 13 months

Hi, I would like to report a DOMXSS issue in TweetDeck.

#Details In Tweetdeck, a tweet contains info of what client (app) the user used to sent the tweet. The render process is vulnerable to DOMXSS.

In https://ton.twimg.com/tweetdeck-web/web/dist/bundle.6f91b4e832.js, the following line is responsible for retrieving the client website:

JavaScript
                case "followSourceLink":
                    TD.util.openURL($(n.getMainTweet().source).attr("href"));
                    break;

where n.getMainTweet().source is the client name. This name can be controlled through changing the application name (picture attached), and arbitrary characters can be inserted (including angle brackets). Moving on, $() is a jQuery DOMXSS sink. If we inject a payload like <svg onload=alert(document.domain)> then XSS will be executed showing the executing domain.

So to sum up,

  1. Attacker creates an application where the app name is a XSS payload.
  2. Attacker uses the app to post a tweet, then the tweet contains a malicious info of which app the tweet is sent from
  3. Victim clicks on the app info and XSS triggers.

#PoC

  1. Make sure you are using latest IE (otherwise CSP kicks in)
  2. Follow @attackerfoobar or search for the user on TweetDeck
  3. Expand the first tweet, click "Click here to get followers ❤️" (which is a bait app name)
  4. XSS executes

Video demonstration is also attached.

#Fix Probably sanitize n.getMainTweet().source before putting it into $().

Attachments

appname.png
appname.png From the original on HackerOne
Recording__1.mp4

The original report as published on HackerOne, by filedescriptor. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is known

A XSS bug in X / xAI. HackerOne made it public on 2 April 2017.

About XSS

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by File Descriptor

View all

20 more disclosed reports, best first.

More from X / xAI

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.