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.
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:
- Go to Customers and Click on Customer Email Address.
- 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
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
- Open the Customers section and click a customer's email address.
- In the pop-up, type HTML into the Customer Message field.
- Click the Review Email button.
- 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.