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.
- 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:
Steps to reproduce
- 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 - remove "denied:" from click me link
- save the post
- victim reblog the post
- click in "click me"
- click in open (Abrir)
- XSS will be triggered
Impact
it is possible to perform malicious actions on the victim's account
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
- Open the crafted share-tool URL that pre-fills a post with a link.
- Edit the link so it uses a javascript: scheme instead of the blocked one.
- Save the post.
- Have the victim reblog the post.
- Victim clicks the 'click me' link.
- 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.