# Denial of Service via Hyperlinks in Posts

HTML injection in Slack post link field enabled DOM clobbering of document methods, crashing channels and the desktop app.

- Payout: $1,500
- Severity: medium
- Program: Slack
- Found by: joaovitormaia
- Disclosed: 2021-10-03
- Write-up quality: 7/10
- Original: https://hackerone.com/reports/1077136
- Library page: https://bugbountylibrary.com/r/h1%3A1077136
- Tags: area:web domain:web impact:dos kind:bounty platform:hackerone sev:medium tech:rest technique:chained technique:source-review vuln:dos vuln:xss

**Target:** Slack post link creation (app.slack.com)
**Root cause:** Link URL field reflected unescaped into HTML; named elements (name attribute) override document object properties/methods, so injected <img name='write'> etc. clobber document functions.
**Steps:**
1. Create a Post, add title/content, select text, click create link
2. Intercept the request in Burp and replace the `link` property with `https://xyz.com\"><img src=x name='write' /><img src=x name='querySelector' />...` (full list of document method names)
3. Share the post to a channel
4. Access the channel/DM — app crashes; desktop app also affected
5. Mobile: inject `<iframe>` via same field for phishing
**How found:** Researcher knew DOM clobbering: named elements become document properties; hypothesized that naming them after existing document functions would override them and break app code.
**Exploitation:** Attacker crafts a post whose link field contains HTML with many <img name='...'> tags naming document methods; when rendered, document.write/querySelector/etc. become element references, breaking app JS and crashing the channel for all viewers.
**Escalation:** Payload persists in shared post, disabling entire channel or crashing the whole Slack app; mobile iframe injection enables phishing.
**Insight:** When you find HTML injection, try DOM clobbering by naming elements after document/window methods (write, querySelector, createElement) to break framework code — a cheap DoS even without script execution.

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

**Mobile iframe injection payload**

```
https://xyz.com\"><iframe>
```

