# [h1-2102] HTML injection in packing slips can lead to physical theft

HTML injection via customer email field rendered unescaped in packing slips let attackers inject CSS to fake item quantities, enabling physical theft of goods.

- Payout: $900
- Severity: low
- Program: Shopify
- Found by: intidc
- Disclosed: 2022-07-11
- Write-up quality: 7/10
- Original: https://hackerone.com/reports/1087122
- Library page: https://bugbountylibrary.com/r/h1%3A1087122
- Tags: area:web domain:web impact:integrity kind:bounty platform:hackerone sev:low tech:email technique:recon vuln:xss

**Target:** Shopify packing slip generator (email field rendered in packing slip template)
**Root cause:** Customer-controlled email address is rendered into the packing slip HTML template without escaping, allowing HTML/CSS injection.
**Steps:**
1. Configure store packing slip template to display customer email in billing/checkout info.
2. As customer, checkout a single item.
3. Enter email `"<style>.flex-line-item-quantity>p{font-size:0}.flex-line-item-quantity:after{content:'1337\0000a0of\0000a01337';margin-left:420px;}</style>"@gmail.com` (valid per RFC3696).
4. Complete order.
5. Print packing slip; injected CSS hides real quantity and displays '1337 of 1337'.
**How found:** Reasoned about warehouse logistics workflow: packing slips are printed in bulk and drive fulfillment, so any customer-controlled field rendered into them is a trust boundary worth attacking; tested email field with CSS injection.
**Exploitation:** Attacker places a legitimate order with a crafted email; when logistics staff print the packing slip (often in bulk), the injected CSS alters the displayed quantity/item, causing warehouse to ship more goods than paid for.
**Escalation:** Bulk printing could let attacker alter other customers' packing slips (return address, notes) since slips are printed together.
**Insight:** Fulfillment/print artifacts (packing slips, labels, invoices) are a neglected sink for customer-controlled fields—test email/name/address fields for HTML/CSS injection that manipulates physical operations, not just browsers.

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

**HTML injection email payload altering packing slip quantity**

```
"<style>.flex-line-item-quantity>p{font-size:0}.flex-line-item-quantity:after{content:'1337\0000a0of\0000a01337';margin-left:420px;}</style>"@gmail.com
```

