# Reflected XSS in AI Chat Bot Greetings at help.shopify.com via Markdown Image Rendering

CSRF on help.shopify.com search set an attacker-controlled AI greeting rendered as markdown, whose javascript: image link executed XSS to leak PII and hijack support conversations.

- Payout: $1,600
- Severity: medium
- Program: Shopify
- Found by: saltymermaid
- Disclosed: 2026-06-18
- Write-up quality: 7/10
- Original: https://hackerone.com/reports/2509022
- Library page: https://bugbountylibrary.com/r/h1%3A2509022
- Tags: area:web domain:web impact:ato impact:pii-leak kind:bounty platform:hackerone sev:medium tech:graphql technique:chained technique:js-analysis vuln:csrf vuln:xss

**Target:** help.shopify.com AI assistant greeting / search route
**Root cause:** The search POST endpoint accepted an attacker-supplied `greeting` parameter that was stored in session and rendered as markdown in the AI assistant greeting without sanitizing `javascript:` URLs in image/link targets.
**Steps:**
1. Craft HTML page with form POST to `https://help.shopify.com/en/search?_data=routes%2F%28%24locale%29.search` with `query` and `greeting=![Mouse wheel click here for more info...](javascript:eval(atob('...')))`
2. Auto-submit POST form, then after 2s submit GET form to `https://help.shopify.com/en/search?_data=routes%2F%28%24locale%29.search` with `q` to redirect victim to `/en/search/{token}`
3. Victim sees AI greeting containing broken markdown image link with `target=_blank`
4. Victim mouse-wheel-clicks the link to trigger the `javascript:` payload
5. Payload fetches `window.__remixContext.state.loaderData.root.userInfo` to attacker domain and calls `/messages/graphql` to fetch the last conversation and `subscriberCreate` to add attacker email
**How found:** Researcher noticed the greeting URL was reflected in the AI chat greeting flow and that the bot renders markdown; hypothesized markdown image/link targets could carry a `javascript:` URL, and tested via a CSRF POST to the search route.
**Exploitation:** CSRF sets greeting in victim session; victim clicks rendered markdown link, executing JS in authenticated help.shopify.com origin. Payload exfiltrates userInfo PII to attacker server, queries last support conversation ID via GraphQL, then subscribes attacker email to that conversation to join it.
**Escalation:** Chained CSRF (to plant payload) with markdown javascript: URL XSS, then GraphQL abuse to pivot from PII leak to support-conversation takeover.
**Insight:** AI/chatbot greeting and welcome flows that render markdown are a fertile XSS surface: check whether user-influenced params (query, greeting, referrer) get reflected into markdown, and whether `javascript:`/`data:` schemes survive sanitization in image or link targets.

