Skip to content
XSS Disclosed report Intermediate

[Gnip Blogs] Reflected XSS via "plupload.flash.swf" component vulnerable to SOME

An outdated plupload.flash.swf file on multiple Gnip blogs was vulnerable to Same-Origin Method Execution, allowing reflected cross-site scripting. An attacker could execute script in the context of the blog domain if a victim visited a crafted link with Flash enabled.

ysx Follow

Originally disclosed on HackerOne

  • Triaged in 16 hours
  • Fixed in 3 days
  • Paid in 25 days
  • Disclosed after 35 days

Summary by the researcher

Multiple Gnip blogs were exposed to reflected cross-site scripting by way of an outdated plupload.flash.swf WordPress component. This SWF was vulnerable to Same-Origin Method Execution. Thanks to Twitter for the swift fix, and please excuse the minor typos in the initial report!

The report

Hi,

The following endpoints are exposed to reflected cross-site scripting by way of a vulnerable "plupload.flash.swf" component on WordPress.

A comprehensive explanation of this vulnerability can be found on resolved report #134738:

WordPress is vulnerable against a Same-Origin Method Execution (SOME) vulnerability that stems from an insecure URL sanitization problem performed in the file plupload.flash.swf. The code in the file attempts to remove flashVars [...] but fails to do so, enabling XSS via ExternalInterface.

Proof of Concept

To reproduce this vulnerability, please access the below Proof of Concept link in the latest version of Firefox with Adobe Flash enabled. I have confirmed exploitability on Windows 7 x64.

https://blog-origin.gnip.com//wp-includes/js/plupload/plupload.flash.swf?%#target%g=alert&uid%g=XSS&

https://blog.gnip.com//wp-includes/js/plupload/plupload.flash.swf?%#target%g=alert&uid%g=XSS&

https://engineering.gnip.com//wp-includes/js/plupload/plupload.flash.swf?%#target%g=alert&uid%g=XSS&

https://engineering-origin.gnip.com//wp-includes/js/plupload/plupload.flash.swf?%#target%g=alert&uid%g=XSS&

Please let me know if you require any additional information regarding this vulnerability.

Thanks!

The original report as published on HackerOne, by ysx. 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 plupload.flash.swf file attempted to strip flashVars but did so incorrectly, leaving a way to inject script via ExternalInterface.

Impact

An attacker could execute script in the context of the affected blog domain, but only if the victim used a browser with Adobe Flash enabled.

What the attacker needed

Victim uses Firefox with Adobe Flash enabled; victim clicks a crafted link

The fix

The issue was fixed by Twitter, though the text does not describe the fix itself.

How it was found

  1. Open the latest version of Firefox with Adobe Flash enabled.
  2. Visit one of the provided proof-of-concept links pointing to the plupload.flash.swf file on a Gnip blog.

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.

Cross-site scripting (XSS) lets an attacker run their own JavaScript in another user's browser on a trusted website. Here, an old Flash file failed to clean up input, so a specially crafted link could make the browser run attacker-controlled code on the blog's domain.

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 ysx

View all

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