Cloudflare Public Bug Bounty · Report #1419341
Hijack all emails sent to any domain that uses Cloudflare Email Forwarding
Summary
The Email Routing feature enables Cloudflare users to create any number of custom email addresses and route all incoming messages to the user's preferred inboxes. Due to a bug in zone ownership verification, it was possible to configure Email Routing to redirect e-mail messages for an unverified zone (with Email Routing enabled) to a different mailbox. In addition, the vulnerability allowed the e-mail forwarding configuration created by the zone owner to be overwritten.
The issue has since been fixed by the Engineering team and zone ownership verification is working as expected when setting up Email forwarding rules. We investigated the exploit and validated it had only been found by the security researcher who responsibly disclosed the issue.
This vulnerability made it possible to deploy a rogue Email Routing configuration for an unverified zone (i.e. a domain you don't own) that would override the existing configuration on Cloudflare's mail servers.
This made it possible to 1. read any email sent to the target domain; and 2. stop any email sent to the target domain from arriving at the original destination address.
The target domain had to already be using Cloudflare Email Routing as the vulnerability did not enable modification of DNS records.
How it was found
The write-up for this report has not been downloaded yet, or the program disclosed it without one. Read it on HackerOne.