Skip to content
XSS Disclosed report Intermediate

[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.

fuzzme Follow

Originally disclosed on HackerOne

Medium 5.9 View original
  • 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 :

https://www.tumblr.com/abuse/start?prefill=eyJwb3N0IjpudWxsLCJ1cmxyZXBvcnRpbmciOiJodHRwczovL2Z1enptZS50dW1ibHIuY29tLyIsInR1bWJsZWxvZyI6IjxvYmplY3QgZGF0YT1cImphdmFzY3JpcHQ6YWxlcnQoZG9jdW1lbnQuY29va2llKVwiPiIsImNvbnRleHQiOiJibG9nIn0=

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 :

  1. Download firefox 69 at https://ftp.mozilla.org/pub/firefox/releases/69.0/
  2. Go to login in your Tumblr account
  3. Click to this link, and you will see XSS pop-up

LINK : https://www.tumblr.com/abuse/start?prefill=eyJwb3N0IjpudWxsLCJ1cmxyZXBvcnRpbmciOiJodHRwczovL2Z1enptZS50dW1ibHIuY29tLyIsInR1bWJsZWxvZyI6IjxvYmplY3QgZGF0YT1cImphdmFzY3JpcHQ6YWxlcnQoZG9jdW1lbnQuY29va2llKVwiPiIsImNvbnRleHQiOiJibG9nIn0=

Steps To Reproduce for HTML injection :

  1. Go to login in your Tumblr account
  2. Click to this link https://www.tumblr.com/abuse/start?prefill=eyJwb3N0IjpudWxsLCJ1cmxyZXBvcnRpbmciOiJodHRwczovL2Z1enptZS50dW1ibHIuY29tLyIsInR1bWJsZWxvZyI6IjxpbnB1dCB0eXBlPSd0ZXh0JyBwbGFjZWhvbGRlcj0nRW50ZXIgeW91IHBhc3N3b3JkJz4iLCJjb250ZXh0IjoiYmxvZyJ9
  3. 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

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

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

  1. Open Firefox 69 or an older version.
  2. Log in to a Tumblr account.
  3. Visit the crafted abuse report link with the encoded prefill value.
  4. 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.

More by fuzzme

View all

10 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.