- Newest
- Most votes
- Most comments
In short: Yes, CloudFront routes based on the Host header, bypassing your distribution entirely
The observed behavior is a function of the AWS shared infrastructure routing and not a misconfiguration of your distribution. No data from your origin is exposed, and your security controls (WAF/Functions) remain effective for all traffic intended for your domain.
So, your understanding is correct. This behavior is an inherent characteristic of how CloudFront (and most shared CDNs) handles request routing for the HTTP protocol.
1. Routing Logic (The "Why"):
Because CloudFront uses shared Anycast IP addresses, the IP itself does not identify your specific distribution. For plain HTTP requests, CloudFront relies exclusively on the Host header to map the incoming request to a distribution ID.
- Since you are sending Host: blackhat.com, CloudFront’s edge logic routes the request to the distribution that has blackhat.com configured as an Alternate Domain Name (CNAME).
- Consequently, your WAF and CloudFront Functions are never triggered because the request is logically out-of-scope for your distribution.
2. The "200 OK" Response:
The 200 OK and Server: AmazonS3 headers confirm that the request was successfully processed by the other customer's origin. You are essentially using your distribution's IP as a proxy to reach a completely different AWS resource.
3. Mitigation & Audit Classification:
- False Positive: This is a False Positive for your application. The "vulnerability" the scanner sees is not your application responding to an invalid host, but rather CloudFront correctly routing a request to a different intended recipient.
- HTTPS Protection: As you noted, for HTTPS, Domain Fronting Protection prevents this. Since modern web traffic is almost exclusively HTTPS, the risk of a malicious actor using your IP to mask traffic to another domain is mitigated by the TLS handshake requirement (SNI/Host match).
- Redirect Policy: Your "Redirect HTTP to HTTPS" policy applies only to requests that CloudFront has already matched to your distribution (i.e., requests with Host: www.test.dev). It cannot intercept requests that CloudFront has already routed to another customer based on a spoofed header.
Relevant content
- asked 4 years ago
- asked 4 months ago
- AWS OFFICIALUpdated 9 months ago

Thank you for the confirmation — this makes sense given the shared-IP routing behavior.
Our auditors still flag the HTTP vector as a risk, arguing that even if the
200 OKisn't from our origin, our CloudFront IP is being used as a "stepping stone" to another AWS customer's resource. They also noted (per your clarification) that "Redirect HTTP to HTTPS" can't intercept requests already routed away to another distribution.A few follow-up questions:
Is there any CloudFront-native setting that prevents our shared edge IP from routing HTTP requests to a different customer's distribution — i.e., something that drops requests where the Host header doesn't match our registered CNAMEs, before routing occurs?
Does "HTTPS Only" behave differently from "Redirect HTTP to HTTPS" here? Does it reject the HTTP connection before routing, or does CloudFront still route the request to another distribution first?
Is there an official AWS documentation reference stating this is an inherent behavior of shared CDN infrastructure — something we can formally present to auditors as evidence this is not a misconfiguration on our end?
We're looking to either find a technical control that eliminates this behavior, or official documentation to support the False Positive classification. Any guidance is appreciated.
hm to be honest to me its classify as Informational / Risk Accepted. The behavior is an inherent property of AWS's shared infrastructure. There is no "vulnerability" in your distribution because your origin and your data are never touched. The 200 OK belongs to a third party, and you have no administrative control over global CloudFront routing logic.
However, If my answer helped, I would appreciate it if you click on “accepted answer”