Skip to content
XSS Disclosed report Beginner

Cross-site scripting in "Contact customer" form

An admin viewing a customer's message in the 'Contact customer' form could inject HTML that executed in the customer's browser. The attacker (the admin) could redirect the victim to a malicious site or perform other client-side attacks.

Muhammad Asim Shahzad Follow

Originally disclosed on HackerOne

  • Triaged in 6 days
  • Fixed in 11 days
  • Paid in 16 days
  • Disclosed after 17 days

Hi, I found HTML Injection Vulnerability while admin contact with customer. In this vulnerability admin is attacker whereas customer is victim.

#Steps to Reproduce:

  1. Go to Customers and Click on Customer Email Address.
  2. New Pop-Up window will become open, In Customer Message field type this html code
<h1>HTML INJECTION</h1>

3 . Click on Review Email Button.

HTML will become execute.

Checkout the POC Video.

Thanks,

Impact

Admin of store can redirect any user to any malicious website, and can perform all possible attacks through this vulnerability.

Attachments

html_injection_shopify.webm From the original on HackerOne

The original report as published on HackerOne, by protector47. 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 message field is rendered as HTML without sanitisation or output encoding when the customer views it.

Impact

An admin could redirect a customer to a malicious website and carry out other client-side attacks, though the report does not show script execution beyond HTML injection.

What the attacker needed

Admin access to the store; customer views the message

How it was found

  1. Open the Customers section and click a customer's email address.
  2. In the pop-up, type HTML into the Customer Message field.
  3. Click the Review Email button.
  4. The HTML executes.

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.

A shop admin can type HTML into a message box that is meant for replying to a customer. That HTML is later shown to the customer without being cleaned, so it runs in the customer's browser. This lets the admin, who is the attacker here, change what the customer sees or send them to another website.

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 Muhammad Asim Shahzad

View all

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