Skip to content
XSS Disclosed report Intermediate

Blind Stored XSS in shopify internal Parquet Viewer

A blind cross-site scripting payload fired inside an internal Shopify Parquet viewer tool, executing on an employee's computer. The attacker does not know the entry point but the payload ran in a local file context.

testingforbugs Follow

Originally disclosed on HackerOne

Medium 4.6 View original
  • Triaged in 3 days
  • Fixed in 5 days
  • Paid in 10 days
  • Disclosed after 3.0 years

##Summary: Hey, hope you are doing well, I have found that one of my blind xss payload fired in one of your internal tool Parquet viewer on 14th feb 11:23 PM IST

I don’t know the entry point were I put my bXSS payload, But this is fired in one of your employee ( [██████ ) computer.

##Details: I am attaching all the details here.

  • Vulnerable Page URL

file://localhost/private/var/folders/4m/pdc_bjcj17dcxbtlllqqq81w0000gp/T/parquet-viewer-6296239398097329598.html

  • User IP Address

█████████

  • User-Agent

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36

You can see the name of Shopify employee ████████ at gs://starscream-adhoc/user/███/shop_dimension/part-00039-4039dc30-6a7a-4108-838d-fb1daec9a216-c000.snappy.parquet

  • ███████

  • Open the dom.html and go o the Sample Data ███████

████

Impact

████

Kind Regards Aman

The original report as published on HackerOne, by testingforbugs. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 5 min read.

Context

Shopify runs a set of internal tools, and one of them is a Parquet viewer: a utility that renders Apache Parquet data files as HTML so that an employee can inspect the contents in a browser. The report concerns a blind stored cross-site scripting (bXSS) payload that fired inside that viewer on an employee's machine. The researcher states plainly that they do not know the entry point where the payload was originally submitted; the only confirmed fact is that the payload executed in the viewer.

The affected asset is listed as Shopify Developed Apps, and the weakness is stored XSS. The report was disclosed on 8 February 2024 with a medium severity rating and a CVSS score of 4.6.

Setup

The researcher used a blind XSS payload, that is, a payload designed to call back to a listener when it is rendered somewhere the attacker cannot see. The report does not name the payload, the listener service or the injection point. The only precondition visible in the report is that the payload had been submitted somewhere earlier and lay dormant until an employee opened a Parquet file in the viewer.

Finding it

The signal was a callback from the blind payload. According to the report, it fired on 14 February at 11:23 PM IST inside the internal tool called Parquet viewer, on an employee's computer. The researcher explicitly notes that the entry point is unknown, so the finding is the execution itself rather than a traced path from input to output.

The callback carried the following details.

Vulnerable page URL:

Text
file://localhost/private/var/folders/4m/pdc_bjcj17dcxbtlllqqq81w0000gp/T/parquet-viewer-6296239398097329598.html

The file:// scheme and the /private/var/folders/.../T/ path show that the viewer writes a temporary HTML file to the local disk on macOS and opens it in the browser, rather than serving the rendered output from a web origin. The parquet-viewer- prefix and the long numeric suffix identify the generated file.

User-Agent:

Text
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36

This confirms a macOS host running Chrome 88. The report also lists the user's IP address, which is redacted here.

Exploitation

Step 1: Deliver a blind payload

The researcher submitted a bXSS payload somewhere in Shopify's estate. The report does not identify where. The payload stayed dormant until it was rendered.

Step 2: Wait for execution in the viewer

On 14 February at 11:23 PM IST the payload executed in the Parquet viewer on an employee's machine and called back with the page URL, IP address and User-Agent shown above. Because the page is a local file:// document, the execution happened in the context of a file written to the employee's temporary directory.

Step 3: Correlate the callback with the data source

The researcher tied the execution to a specific Parquet object in a Google Cloud Storage bucket:

Text
gs://starscream-adhoc/user/███/shop_dimension/part-00039-4039dc30-6a7a-4108-838d-fb1daec9a216-c000.snappy.parquet

The report says the Shopify employee's name can be seen at that path.

Step 4: Reproduce locally

The researcher describes a reproduction: open the dom.html file and go to the Sample Data section. The report does not include the dom.html file or the payload that appears there, so the reproduction cannot be reconstructed from the text alone.

Root cause

The report does not analyse the code. The report does not analyse the code, so the mechanism by which the payload reached the generated page is not established. Because the output is a local file:// document, the page is not served from a web origin.

The report does not state which field of the Parquet data carried the payload, nor whether any escaping was attempted. Any statement about the specific missing encoding would be speculation.

Impact

The report's impact section is redacted in the disclosed text, so the claimed impact is not visible. What the evidence supports is that an attacker who can get a payload into data that an employee later opens in the Parquet viewer can execute script in that employee's browser, in the context of a local file. The conditions are that the payload survives storage in the data set and that the employee opens the affected file in the viewer. The report does not demonstrate what data or actions were reachable from that context.

Fix

The obvious direction, consistent with the finding, is to HTML-encode every value taken from the Parquet file before it is written into the generated document, and to treat the generated file as untrusted output rather than as a trusted local page.

Variants to test

  1. Column names and table names: put a payload in a Parquet schema field name rather than a value, then open the file in a viewer that renders headers. A positive result is a callback from the viewer page.
  2. Metadata and key-value pairs: Parquet files carry arbitrary key-value metadata; a viewer that displays it is another rendering path. A positive result is execution when the metadata panel is opened.
  3. Other local export formats: any tool that writes query or table results to a temporary HTML file and opens it with file:// has the same shape. A positive result is a callback whose URL starts with file://localhost/.
  4. Sample data and preview panes: the report points at a Sample Data view as the reproduction path. Test preview components that render the first N rows, since they often bypass the escaping used in the main table.

Hunting notes

Blind XSS is well suited to internal tooling, because the payload can be planted in data that employees later inspect: support tickets, log lines, uploaded files, database rows and analytics exports. The signal to watch for is a callback whose URL or User-Agent does not match any public-facing application, especially a file:// URL or a desktop application's embedded browser. In this case the callback URL alone identified the tool (parquet-viewer-), the platform (macOS temporary directory) and the browser version, which was enough to describe the finding precisely even without knowing the entry point.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 10 min read.

What happened, in plain words

Shopify is a large company that builds software for online shops. Like most companies, it has internal tools: programs that only its own staff use, not the public. One of those tools is a Parquet viewer. A Parquet file is a way of storing a big table of data in a compact file, a bit like a very efficient spreadsheet. The viewer takes such a file and turns it into a web page (an HTML page) so an employee can open it in a browser and look at the rows and columns.

A security researcher found that if a piece of JavaScript (a small program that runs in a browser) is hidden inside data that an employee later opens in this viewer, the viewer will run that JavaScript on the employee's own computer. This kind of attack is called cross-site scripting, or XSS. When the malicious data is saved somewhere first and only runs later, when someone views it, it is called stored XSS. When the attacker cannot see the result directly and only learns about it through a signal sent back to them, it is called blind XSS.

The researcher does not know how the payload got into the data in the first place. What they do know is that it ran inside the viewer on an employee's machine. The report was disclosed on 8 February 2024, rated medium severity, with a CVSS score of 4.6.

The setup

To understand the trick, you need to know what a blind XSS payload is. Normally, when you test for XSS, you put a small script into a form and then look at the page to see if it ran. But in an internal tool you cannot see the page: you have no account, no access. So instead, the script is written to send a message back to a server the researcher controls. That server is called a listener. The script is like a note that says "if anyone reads me, phone this number". The researcher plants the note somewhere, waits, and watches the phone.

The report does not say what the payload was, which listener service was used, or where the payload was originally submitted. The only thing we know for certain is that it had been placed somewhere earlier and sat quietly until an employee opened a Parquet file in the viewer.

Finding it

The signal arrived as a callback: the planted script ran and contacted the researcher's listener. According to the report, this happened on 14 February at 11:23 PM IST, inside the internal tool called Parquet viewer, on an employee's computer. The researcher is explicit that the entry point is unknown, so the finding is the execution itself, not a traced path from input to output.

The callback carried three pieces of information. The first was the address of the page where the script ran:

Text
file://localhost/private/var/folders/4m/pdc_bjcj17dcxbtlllqqq81w0000gp/T/parquet-viewer-6296239398097329598.html

Line by line: file:// is a URL scheme that means "a file on this computer", as opposed to https://, which means "a page fetched from a web server". localhost here means the machine itself. The path /private/var/folders/.../T/ is where macOS keeps temporary files (the T stands for temporary). The name parquet-viewer- followed by a long number is the name the tool gives to the HTML file it generates. Putting this together: the viewer does not serve a web page from a website. It writes a temporary HTML file to the employee's own disk and opens it in the browser. That detail matters a lot, and we will come back to it.

The second piece was the User-Agent:

Text
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36

A User-Agent is a short text string that every browser sends along with a request to identify itself. Line by line: Mozilla/5.0 is a historical prefix that all browsers still send. Macintosh; Intel Mac OS X 10_15_7 says the computer is a Mac running that version of macOS. AppleWebKit/537.36 and KHTML, like Gecko are engine identifiers that Chrome includes for compatibility. Chrome/88.0.4324.96 is the browser and its version. Safari/537.36 is another compatibility token. So this confirms a macOS machine running Chrome 88.

The third piece was the user's IP address, which is redacted in the disclosed report. An IP address is the numeric label that identifies a device on a network, a bit like a postal address for a computer.

Exploitation

Step 1: Deliver a blind payload

The researcher placed a bXSS payload somewhere in Shopify's systems. The report does not identify where. The payload stayed dormant, meaning it did nothing, until it was rendered. "Rendered" means the browser turned the stored text into a visible page; if that text contains HTML or JavaScript, the browser may run it.

Step 2: Wait for execution in the viewer

On 14 February at 11:23 PM IST the payload ran in the Parquet viewer on an employee's machine and called back with the page URL, IP address and User-Agent shown above. Because the page is a local file:// document, the script ran in the context of a file written to the employee's temporary directory. "Context" here means the environment the script runs in: which page it belongs to, what it can read, and what permissions it has.

Step 3: Correlate the callback with the data source

The researcher then linked the execution to a specific Parquet file stored in a Google Cloud Storage bucket. Google Cloud Storage is a service for storing files in the cloud; a bucket is a named container of files, like a folder. The path was:

Text
gs://starscream-adhoc/user/███/shop_dimension/part-00039-4039dc30-6a7a-4108-838d-fb1daec9a216-c000.snappy.parquet

Line by line: gs:// is the address scheme for Google Cloud Storage. starscream-adhoc is the bucket name. user/███/ is a per-user folder, with the user's name redacted here. shop_dimension is the name of the table. The final long filename ends in .snappy.parquet. The report says the Shopify employee's name can be seen at that path.

Step 4: Reproduce locally

The researcher describes a reproduction: open the dom.html file and go to the Sample Data section. The report does not include the dom.html file or the payload that appears there, so the reproduction cannot be rebuilt from the text alone.

Root cause

A root cause is the underlying reason the bug exists, as opposed to the symptom. The report does not analyse the code. The report does not analyse the code, so the mechanism by which the payload reached the generated page is not established. "Neutralising" means converting characters that have special meaning in HTML, such as < and >, into harmless text so the browser displays them instead of treating them as markup. When a value is not neutralised, the browser reads it as part of the page, and if it contains a script, the browser runs the script.

Because the output is a local file:// document, the page is not served from a web origin. The document runs with local file privileges in the browser.

The report does not state which field of the Parquet data carried the payload, nor whether any escaping was attempted. Any claim about the specific missing encoding would be guesswork.

Impact

Impact means what damage an attacker could actually do. The report's impact section is redacted in the disclosed text, so the claimed impact is not visible. What the evidence supports is that an attacker who can get a payload into data that an employee later opens in the Parquet viewer can run script in that employee's browser, in the context of a local file. Two conditions must hold: the payload must survive being stored in the data set, and the employee must open the affected file in the viewer.

Fix

A fix is the change that removes the bug. The obvious direction, consistent with the finding, is to HTML-encode every value taken from the Parquet file before it is written into the generated document, and to treat the generated file as untrusted output rather than as a trusted local page. "HTML-encode" means replacing special characters with safe equivalents so the browser shows them as text.

Variants to test

A variant is a slightly different version of the same bug, in a place the original test did not cover. These are ideas for where else the same weakness might appear:

  1. Column names and table names: put a payload in a Parquet schema field name rather than a value, then open the file in a viewer that renders headers. A positive result is a callback from the viewer page.
  2. Metadata and key-value pairs: Parquet files carry arbitrary key-value metadata; a viewer that displays it is another rendering path. A positive result is execution when the metadata panel is opened.
  3. Other local export formats: any tool that writes query or table results to a temporary HTML file and opens it with file:// has the same shape. A positive result is a callback whose URL starts with file://localhost/.
  4. Sample data and preview panes: the report points at a Sample Data view as the reproduction path. Test preview components that render the first N rows, since they often bypass the escaping used in the main table.

Hunting notes

Hunting means actively looking for bugs rather than waiting for them to be reported. Blind XSS is well suited to internal tooling, because the payload can be planted in data that employees later inspect: support tickets, log lines, uploaded files, database rows and analytics exports. The signal to watch for is a callback whose URL or User-Agent does not match any public-facing application, especially a file:// URL or a desktop application's embedded browser. In this case the callback URL alone identified the tool (parquet-viewer-), the platform (macOS temporary directory) and the browser version, which was enough to describe the finding precisely even without knowing the entry point.

Glossary

  • XSS (cross-site scripting): a bug where an attacker gets their own code to run inside someone else's browser page.
  • Stored XSS: XSS where the malicious code is saved first and runs later when someone views the saved content.
  • Blind XSS: XSS where the attacker cannot see the affected page, so the payload sends a signal back to a server the attacker controls.
  • Payload: the small piece of code an attacker plants to prove a bug exists.
  • Listener: a server the researcher controls that receives the callback from a payload.
  • Callback: the message a payload sends back to the listener when it runs.
  • Parquet: a file format for storing large tables of data compactly.
  • Parquet viewer: an internal tool that turns a Parquet file into an HTML page so it can be read in a browser.
  • HTML: the language browsers use to describe a page's structure and content.
  • JavaScript: a programming language that runs in the browser and can make pages interactive.
  • Render: to turn stored text into a visible page in the browser, running any code it contains.
  • URL: the address of a page or file, such as https://example.com or file:///tmp/x.html.
  • file:// scheme: a URL prefix meaning the resource is a file on the local computer, not on a web server.
  • Temporary directory: a folder on a computer for short-lived files, such as the generated HTML page.
  • User-Agent: a text string a browser sends to identify itself, its version and the operating system.
  • IP address: the numeric label identifying a device on a network.
  • Context: the environment a script runs in, including which page it belongs to and what it can access.
  • Google Cloud Storage: a cloud service for storing files.
  • Bucket: a named container of files in cloud storage, like a folder.
  • Apache Spark: a data-processing tool that writes output files with long generated names.
  • Snappy: a compression method used to make files smaller.
  • Root cause: the underlying reason a bug exists.
  • Neutralise / HTML-encode / escape: convert characters with special meaning in HTML into harmless text so the browser displays them instead of running them.
  • Content-Security-Policy: a rule a web server sends telling the browser which scripts may run on a page.
  • Cookie: a small piece of data a website stores in the browser, often used to remember who is logged in.
  • HttpOnly: a cookie setting that hides the cookie from JavaScript.
  • Impact: what damage an attacker could actually cause.
  • Fix / remediation: the change that removes the bug.
  • Variant: a slightly different version of the same bug in another place.
  • Hunting: actively searching for bugs rather than waiting for reports.
  • CVSS: a standard scoring system for rating the severity of a security bug.
  • Triage: the process a security team uses to review, confirm and prioritise a report.

More by testingforbugs

View all

6 more disclosed reports, best first.

More from Shopify

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.