Skip to content
Disclosed report Intermediate

Injection via CSV Export feature in Admin Orders

The CSV export of admin orders only sanitised the first variant of a product, so a crafted product title beginning with a formula character survived into the exported file. An attacker could get a formula executed in a spreadsheet when an administrator opened the export in Excel.

wakadotz Follow

Originally disclosed on HackerOne

  • Triaged in 16 days
  • Fixed in 17 days
  • Disclosed after 18 days

i found out that the filtering of "=,-,+" is not working in all data. there's a way to bypass it.

  1. Create a product with title =cmd|' /C calc'!'D2'
  2. Add variants (more than 2 variants) then save it.
  3. Go to Orders > Create Order
  4. search the product we made =cmd|' /C calc'!'D2'
  5. Add 2 variants from same item
  6. Mark as paid
  7. Create Order
  8. Go Back to order page > Export > Open in excel

you will see that the first variant is successfully filtered the "=" but the next variant is not filtered anymore.

Attachments

1.PNG
1.PNG From the original on HackerOne
2.PNG
2.PNG
3.PNG
3.PNG
4.PNG
4.PNG

The original report as published on HackerOne, by wakadotz. 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 export sanitised only the first row or first variant of each product rather than every cell written to the CSV.

Impact

A crafted product title could cause a spreadsheet formula to run when an administrator opens the exported orders file, though the report does not demonstrate what the formula achieves beyond launching a calculator.

What the attacker needed

Ability to create products with variants; admin exports orders and opens in Excel

The fix

The export should neutralise leading formula characters in every variant, not just the first.

How it was found

  1. Create a product whose title starts with a formula character.
  2. Add more than two variants to the product and save it.
  3. Open Orders and start creating a new order.
  4. Search for the crafted product and add two variants of the same item.
  5. Mark the order as paid and create it.
  6. Return to the orders page, export the data and open the file in Excel.

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.

When a website exports data to a spreadsheet file, a cell that starts with a special character like = can be treated as a formula by the spreadsheet program. Here the site tried to strip those characters, but only did so for the first variant of a product and not the others, so a malicious title slipped through. Opening the file could then run the formula on the admin's computer.

More from Shopify

View all

The newest disclosed reports for this program.

Similar reports

Same bug class and techniques, clearest first.