# Lack of URL normalization renders Blocked-Previews feature ineffectual

Slack's Blocked-Previews feature matched raw URLs without normalization, so trailing-dot hosts and `..` path segments bypassed admin blocklists and still rendered previews.

- Payout: $1,000
- Severity: medium
- Program: Slack
- Found by: jub0bs
- Disclosed: 2022-01-16
- Write-up quality: 6/10
- Original: https://hackerone.com/reports/1102764
- Library page: https://bugbountylibrary.com/r/h1%3A1102764
- Tags: area:web domain:web impact:integrity kind:bounty platform:hackerone sev:medium technique:recon vuln:business-logic vuln:misconfiguration

**Target:** Slack link-preview / Blocked-Previews URL matching
**Root cause:** Backend compared the posted URL string against the blocklist without normalizing host (trailing dot) or resolving path segments (`..`), so equivalent URLs didn't match the blocked entry.
**Steps:**
1. Admin blocks `jub0bs.com` (or a specific link / subdirectory) in Blocked Previews.
2. Post `https://jub0bs.com./posts/...` (trailing period after host) via intercepting proxy like Burp — preview renders.
3. Alternatively post `https://jub0bs.com/ARBITRARY_SEGMENT/../posts/2021-01-29-great-samesite-confusion/` — non-normalized path bypasses specific-link and subdirectory blocks.
**How found:** Noticed the feature relies on URL string matching and hypothesized the backend skips normalization; tested host trailing-dot and `..` path variants against blocked entries.
**Exploitation:** Attacker (or a Slack integration like Outlook) posts a crafted URL that resolves to the blocked resource but differs textually from the blocklist entry, causing Slack to fetch and embed a preview the admin intended to suppress.
**Insight:** When a security control is a URL blocklist, test host trailing-dot, `..` path segments, case, default ports, and percent-encoding — any variant the fetcher resolves but the matcher doesn't compare will bypass it.

