Skip to content
XSS Disclosed report Intermediate

DOM-Based XSS in tumblr.com

A share-tool URL on Tumblr allowed a post to be created containing a link whose target was a javascript: URL. When a victim reblogged the post and clicked the link, the script ran in the tumblr.com origin, letting the attacker act on the victim's account.

keer0k Follow

Originally disclosed on HackerOne

  • Triaged in 11 hours
  • Fixed in 4 days
  • Paid in 4 days
  • Disclosed after 2 months

Description

Hi, i just found a XSS that i think it's a valid issue and i think it is in scope this time.

To get the XSS the attacker needs to create a post in tumblr.com using https://www.tumblr.com/widgets/share/tool?url=https%3A%2F%2Fkeerok.github.io%2F&title=%3Ca%20href=%22javascript:alert(document.domain);//http://evil.com/%22%3Eclick%20me%3C/a%3E&selection=click%20in%20the%20link%20after%20reblog&shareSource=chrome_extension URL and change the link of click me text to javascript:alert(document.domain);//https://evil.com/ without the "denied:".

After post the payload , the victim needs to reblog the post in www.tumblr.com and click in "click me" and in "open" to open in a new tab the URL, after this, XSS will be triggered.

I also attached a video of the PoC:

Screen_Recording_2020-05-26_at_00.46.15.mov From the original on HackerOne

Steps to reproduce

  1. go to https://www.tumblr.com/widgets/share/tool?url=https%3A%2F%2Fkeerok.github.io%2F&title=%3Ca%20href=%22javascript:alert(document.domain);//http://evil.com/%22%3Eclick%20me%3C/a%3E&selection=click%20in%20the%20link%20after%20reblog&shareSource=chrome_extension
  2. remove "denied:" from click me link
  3. save the post
  4. victim reblog the post
  5. click in "click me"
  6. click in open (Abrir)
  7. XSS will be triggered

Impact

it is possible to perform malicious actions on the victim's account

The original report as published on HackerOne, by keer0k. 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.

How it worked

What the attacker needed

Attacker can create a post; victim reblogs the post; victim clicks the link and opens it

How it was found

  1. Open the crafted share-tool URL that pre-fills a post with a link.
  2. Edit the link so it uses a javascript: scheme instead of the blocked one.
  3. Save the post.
  4. Have the victim reblog the post.
  5. Victim clicks the 'click me' link.
  6. Victim chooses to open it in a new tab, which triggers the script.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

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

A cross-site scripting (XSS) bug lets an attacker sneak their own JavaScript, the code that runs in a web page, into a page other people view. Here a crafted share link produced a post with a link that ran code instead of opening a normal web address. When someone reblogged it and clicked, that code ran as if it came from Tumblr itself, so it could do things on the victim's behalf.

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 keer0k

View all

5 more disclosed reports, best first.

More from Automattic

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.