Skip to content
XSS Disclosed report Beginner

Stored XSS Deleting Menu Links in the Shopify Admin

Menu titles in the Shopify admin were rendered without proper escaping, allowing a stored cross-site scripting payload to execute. An attacker could inject script that runs in the context of an admin user viewing the menu.

hack_im Follow

Originally disclosed on HackerOne

Medium 6.4 View original
  • Triaged in 11 hours
  • Fixed in 13 hours
  • Paid in 12 days
  • Disclosed after 12 days

Summary by the program

The researcher found that menu titles were being rendered without proper escaping in the admin area. Unlike many other XSS reports we typically receive, this one has its payload excluded in a way that is not excluded in our program page's exclusion list.

The report

Hello Team,

I found a stored xss issue.

PoC (unlisted): https://youtu.be/MjnKyFgqTTo

watch my PoC than you'll understood everything.

Payloads: // # "><svg/onload=prompt(1)>

Looks Like this issue available at " Title in Add menu " and also available at "Title" in " Menu Item "

Mirror: https://azizvai.myshopify.com/

Thanks

Attachments

Screenshot_128.png
Screenshot_128.png From the original on HackerOne

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

Impact

An attacker could run script in the browser of an admin who views the affected menu.

What the attacker needed

Access to the Shopify admin menu editor; victim views the affected menu

How it was found

  1. Open the Add menu form in the Shopify admin.
  2. Enter a menu title containing an SVG element with an onload handler.
  3. Save the menu and view it so the title is rendered in the admin page.

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 shows text that a user typed, it must treat that text as plain text, not as code. Here, the menu title was inserted into the page as if it were HTML, so a title containing a script tag ran as code in the browser of anyone who viewed the menu. This is called stored cross-site scripting because the malicious text is saved on the server and shown later.

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 hack_im

View all

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