[tumblr.com] 69< Firefox Only XSS Reflected
A base64-encoded parameter on Tumblr's abuse report page was decoded and one of its JSON fields was reflected into the HTML without sanitisation, allowing HTML injection and, in older Firefox versions, script execution. An attacker could run JavaScript in a logged-in user's session to steal cookies or build a phishing page.
- Triaged in 33 hours
- Fixed in 4 days
- Paid in 4 days
- Disclosed after 4 days
Description :
Hello, i have found a XSS Reflected in https://www.tumblr.com/abuse/start?prefill=<base64> But the XSS only works in versions of firefox that are below 70. Because its been blocked by CSP, but the version below 69 of firefox is vulnerable. Here's a great article about this subject https://portswigger.net/daily-swig/firefox-vulnerable-to-trivial-csp-bypass But CSP dont block HTML tag in the lastest version of all navigators
Vulnerable Url :
Payload :
<object data="javascript:alert(document.cookie)">
Vulnerable Parameter :
/\ Note you must decode the $_GET['prefill'], this is encoding is in base64 /
After decoded it, you can see this
{"post":null,"urlreporting":"https://fuzzme.tumblr.com/","tumblelog":"<object data="javascript:alert(document.cookie)">","context":"blog"}
The array value of tumblelog is reflected into the HTML this him who as vulnerable The array value of tumblelog is the vulnerable array value
Steps To Reproduce for XSS Only Firefox :
- Download firefox 69 at https://ftp.mozilla.org/pub/firefox/releases/69.0/
- Go to login in your Tumblr account
- Click to this link, and you will see XSS pop-up
Steps To Reproduce for HTML injection :
- Go to login in your Tumblr account
- Click to this link https://www.tumblr.com/abuse/start?prefill=eyJwb3N0IjpudWxsLCJ1cmxyZXBvcnRpbmciOiJodHRwczovL2Z1enptZS50dW1ibHIuY29tLyIsInR1bWJsZWxvZyI6IjxpbnB1dCB0eXBlPSd0ZXh0JyBwbGFjZWhvbGRlcj0nRW50ZXIgeW91IHBhc3N3b3JkJz4iLCJjb250ZXh0IjoiYmxvZyJ9
- And you will see a HTML input with
enter your password
POC:
The attachment video
Impact
The vulnerability allow a malicious user to inject html tags and execute Javascript which could lead to steal user's session, and performing phishing.
Attachments
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
Root cause
Likely the decoded prefill value was inserted into the page as raw HTML without encoding or validation, and the CSP in place could be bypassed in older Firefox.
Impact
Script execution was limited to Firefox versions below 70 because CSP blocked it elsewhere, but HTML injection still worked in current browsers and could support phishing or session theft.
What the attacker needed
Firefox version below 70 for script execution; Victim is logged in to Tumblr; Victim opens a crafted link
How it was found
- Open Firefox 69 or an older version.
- Log in to a Tumblr account.
- Visit the crafted abuse report link with the encoded prefill value.
- Observe the script pop-up, or an injected input field in newer browsers.
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.
The page takes a value from the web address, decodes it, and puts part of it straight into the page's HTML. Normally a security rule called CSP stops injected scripts from running, but the author says Firefox versions below 70 had a flaw that let them run anyway. That means a crafted link could make a victim's browser run the attacker's code.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.