Skip to content
XSS Disclosed report Beginner

Self-XSS in password reset functionality

The password reset page on accounts.shopify.com reflected HTML entered into the email address field, allowing an attacker to inject markup such as a heading tag. The reporter suggested this could be extended to inject a form, but the vendor determined exploitation required the victim to paste the payload themselves, making it self-XSS.

zeesek Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in 3 hours
  • Paid in 3 days
  • Disclosed after 8 days

Summary by the program

While the reporter identified this as an HTML injection, during our investigation we confirmed this was actually an XSS vulnerability but would have required a target to copy and paste a payload themselves. We made an exception to reward this self-xss with our minimum bounty given this occurred on accounts.shopify.com.

The report

Hi, When I opened this domain of yours, https://accounts.shopify.com/password-reset/new

I just put the following text into email address box,

<h1 style="color:blue;">█████</h1> it change the colour of the text.

Well my point here is that if you could inject HTML, you might be able to add a <form> tag to the page. I also upload the picture as a proof.

Peace.

The original report as published on HackerOne, by zeesek. 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 email address input was reflected into the page without proper output encoding, allowing HTML to be rendered.

Impact

The issue was limited to self-XSS because a victim would have to copy and paste the payload themselves; the vendor still paid a minimum bounty because it was on the accounts subdomain.

What the attacker needed

Victim pastes payload into email field

How it was found

  1. Open the password reset page on accounts.shopify.com.
  2. Enter an HTML heading tag into the email address field.
  3. Observe that the text colour changes, showing the HTML was rendered.

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 takes what you type and puts it straight back into the page without cleaning it, you can sometimes make the page show your own formatting or code. Here the email box on a password reset page did that, so typing a heading tag changed how the text looked. The catch is that the person has to type or paste the code themselves, so it only affects the person doing it, which is why it is called self-XSS.

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 zeesek

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.