# Hijack all emails sent to any domain that uses Cloudflare Email Forwarding

Missing zone ownership verification in Cloudflare Email Routing let an attacker configure forwarding for a domain they didn't own, intercepting and blocking all its inbound email.

- Payout: $6,000
- Severity: critical
- Program: Cloudflare
- Found by: albertspedersen
- Disclosed: 2022-07-28
- Write-up quality: 7/10
- Original: https://hackerone.com/reports/1419341
- Library page: https://bugbountylibrary.com/r/h1%3A1419341
- Tags: area:cloud domain:cloud impact:data-leak impact:integrity kind:bounty platform:hackerone sev:critical tech:email technique:recon vuln:access-control vuln:auth-bypass

**Target:** Cloudflare Email Routing zone configuration / ownership verification
**Root cause:** Zone ownership verification was not enforced when creating Email Routing forwarding rules, so a user could configure routing for an unverified zone and overwrite the existing owner's configuration.
**Steps:**
1. Add a domain you do not own to your Cloudflare account (unverified zone).
2. Enable Email Routing on that zone.
3. Configure a forwarding rule/custom address pointing to your own mailbox.
4. Because ownership verification was skipped, the rogue config overrides the existing routing on Cloudflare mail servers.
5. Send mail to the victim domain and observe it arriving at attacker mailbox; original destination stops receiving.
**Exploitation:** Attacker registers the victim domain as an unverified zone, enables Email Routing, and sets forwarding to their own inbox. The rogue configuration overrides the legitimate owner's routing on Cloudflare's mail servers, so all inbound mail to the target domain is delivered to the attacker and blocked from the real destination. Precondition: target domain already uses Cloudflare Email Routing; DNS records cannot be modified.
**Insight:** When a multi-tenant service lets you add a resource (domain/zone) before verifying ownership, test whether dependent features (email routing, DNS, webhooks) enforce that verification independently — the add step and the configure step may check differently.

