Non-Cloudflare IPs allowed to access origin servers
The origin servers behind Cloudflare accepted connections from any IP address, not just Cloudflare's. An attacker could discover the origin IPs and send traffic directly to them, bypassing Cloudflare's protection.
- Fixed in 6 months
- Paid in 6 months
- Disclosed after 6 months
Summary: Non-Cloudflare IPs allowed to access origin servers
Description: Your origin servers are not blocking access from non-Cloudflare servers. This way crawlers can find your origin servers' IPs by checking random IPs until they found your origin server(s).
What makes this especially easy are tools like censys.io (which can find your origin servers).
One of the origin server IPs I found is ███████ but there were quite a few others, too.
This attack vector can be extremely bad because with the IP found out an attacker could attack the servers by DDoS or other attacks without being stopped by CloudFlare.]
What the report shows
The target is unikrn.com, sitting behind Cloudflare. The researcher's finding is that the origin servers behind that proxy still accept connections from anywhere, not only from Cloudflare's edge. In the report's own words, the origin servers "are not blocking access from non-Cloudflare servers".
The consequence the researcher draws is a discovery path: a crawler can walk random IP addresses until it hits the origin server or servers. The report names censys.io as a tool that makes this especially easy, because it can locate origin servers directly. One origin IP was found this way, and the researcher notes there were "quite a few others, too". The address itself is redacted in the disclosed text, so the specific IP is not part of this write-up.
No request, payload or command appears in the report, so there is nothing to reproduce verbatim here. The method described is checking random IP addresses until an origin server is found.
The report was filed against the Unikrn program on HackerOne, classified as Information Disclosure with medium severity, and paid a bounty of 50.00 USD. It was disclosed on 2018-02-07. The report does not describe a fix or a retest.
Root cause
The report's finding is that the origin servers do not block access from non-Cloudflare servers. Cloudflare proxies traffic to the origin, but the origin's firewall or listener configuration does not limit inbound connections to Cloudflare's published address ranges. Anyone who learns the address can therefore reach the server directly, bypassing the proxy entirely.
A second, related weakness is that the origin address is discoverable at all.
Impact
The report frames the impact around bypassing Cloudflare's protection. Once an attacker knows the origin IP, they can send traffic straight at the server, so attacks such as DDoS would not be stopped by Cloudflare. The researcher describes this as potentially "extremely bad", while keeping it conditional: an attacker "could" attack the servers by DDoS or other attacks without being stopped by Cloudflare.
Disclosure of the address is itself the finding. The report does not demonstrate an actual attack, data exposure or outage.
How this kind of bug works
A CDN or reverse proxy protects a site by terminating client connections at its own edge and forwarding them to the origin. That model only holds if the origin accepts traffic solely from the proxy. When the origin is reachable directly, the proxy becomes optional: an attacker who knows the address can talk to the backend on its own terms.
Origin addresses leak in many ways. DNS history services record the A record from before the site moved behind the CDN. Subdomains that were never proxied, mail servers, staging hosts and direct-IP virtual hosts all point at the same infrastructure. Certificate transparency logs list hostnames, and scanning engines index open ports across the internet. Once one address is known, adjacent addresses in the same range are worth checking.
The standard defences are network-level: restrict the origin firewall to the CDN's published IP ranges, or authenticate proxied requests with a shared secret header that the origin checks and rejects when absent. Either control has to be enforced at the origin, not at the edge.
How to test for it
- Resolve the target's hostname and note the addresses returned. If they belong to a CDN, the front door is confirmed.
- Look for the real origin through passive sources: DNS history, certificate transparency, subdomain enumeration, and internet-wide scan engines that index banners and certificates.
- For each candidate address, connect directly and send an HTTP request with the target's
Hostheader. A response that matches the site's content, rather than a CDN error or a default page, is a positive signal. - Confirm the address is not itself a CDN node by checking its ownership and by comparing response headers with the proxied site.
- Check whether the origin enforces a shared secret header. If requests without it are served normally, the origin is open.
A positive result looks like the application answering on the candidate IP with the expected Host header, ideally with content or headers that identify the same deployment. Common false positives are CDN ranges that happen to answer, catch-all virtual hosts that return a generic page for any Host, and stale addresses that now belong to someone else. Verify content, not just a TCP handshake.
How it is fixed
- Restrict the origin firewall to the CDN provider's published address ranges, and keep that list current.
- Require a secret header on proxied requests and reject anything without it at the origin.
- Move any directly exposed services, such as mail or staging hosts, off the same address range or behind the same controls.
- Rotate the origin address if it has been widely indexed, and review DNS history and certificate records for other leaks.
Hunting notes
This class of issue hides wherever a site assumes the CDN is the only way in. Recon signals include a hostname resolving to a CDN, subdomains that resolve elsewhere, and scan-engine results showing the same certificate on a non-CDN address. Historical DNS is often the quickest route.
To get a report accepted, show the direct response clearly: the candidate address, the Host header used, and the response proving it is the real origin rather than a generic page. Explain what protection is bypassed, as this report does with Cloudflare, and keep the impact claim proportionate to what you demonstrated.
What happened, in plain words
Unikrn runs a website at unikrn.com. Like many sites, it sits behind Cloudflare, a service that stands between visitors and the real web server. Think of Cloudflare as a reception desk in front of an office: visitors talk to the desk, the desk checks them, and only then passes the message to the people inside. The real server hidden behind that desk is called the origin server.
The whole point of the desk is that nobody walks past it. The researcher reported that on Unikrn this was not true. The origin servers still answered connections from anywhere on the internet, not only from Cloudflare. In the report's words, the origin servers "are not blocking access from non-Cloudflare servers".
Why does that matter? Because if the origin answers anyone, then anyone who learns its address can skip the reception desk entirely. The protection Cloudflare provides, such as filtering bad traffic, only applies to messages that go through Cloudflare. A direct connection goes around it.
So the second half of the finding is about how easy it is to find that hidden address. A crawler, a program that automatically visits addresses, can simply try random IP addresses until one of them turns out to be the origin server. The researcher points out that tools like censys.io make this especially easy, because they can locate origin servers directly. Censys is a search engine for internet-connected devices: it scans the internet and indexes what it finds, so a server that is supposed to be hidden can show up in its results.
The researcher found one origin server IP this way and noted there were "quite a few others, too". The address itself is blacked out in the disclosed report, so the specific IP is not part of this write-up.
No request, payload or command appears in the report, so there is nothing to reproduce here. The method described is checking random IP addresses until an origin server is found.
The report was filed against the Unikrn program on HackerOne. It was classified as Information Disclosure, meaning the core issue is that information which should have stayed hidden was exposed, with medium severity, and paid a bounty of 50.00 USD. It was disclosed on 2018-02-07. The report does not describe a fix or a retest.
In general, how this kind of bug works
A CDN or reverse proxy protects a site by accepting visitors at its own edge and forwarding their requests to the origin. That model only holds if the origin accepts traffic solely from the proxy. When the origin is reachable directly, the proxy becomes optional: an attacker who knows the address can talk to the backend on its own terms.
Origin addresses leak in many ways. DNS history services record the address a domain pointed to before the site moved behind the CDN. Subdomains that were never proxied, mail servers, staging hosts and direct-IP virtual hosts all point at the same infrastructure. Certificate transparency logs list hostnames, and scanning engines index open ports across the internet. Once one address is known, nearby addresses in the same range are worth checking.
The standard defences are network-level: restrict the origin firewall to the CDN's published IP ranges, or authenticate proxied requests with a shared secret header that the origin checks and rejects when absent. Either control has to be enforced at the origin, not at the edge.
How to test for it
- Resolve the target's hostname and note the addresses returned. If they belong to a CDN, the front door is confirmed.
- Look for the real origin through passive sources: DNS history, certificate transparency, subdomain enumeration, and internet-wide scan engines that index banners and certificates.
- For each candidate address, connect directly and send an HTTP request with the target's
Hostheader. A response that matches the site's content, rather than a CDN error or a default page, is a positive signal. - Confirm the address is not itself a CDN node by checking its ownership and by comparing response headers with the proxied site.
- Check whether the origin enforces a shared secret header. If requests without it are served normally, the origin is open.
A positive result looks like the application answering on the candidate IP with the expected Host header, ideally with content or headers that identify the same deployment. Common false positives are CDN ranges that happen to answer, catch-all virtual hosts that return a generic page for any Host, and stale addresses that now belong to someone else. Verify content, not just a TCP handshake.
How it is fixed
- Restrict the origin firewall to the CDN provider's published address ranges, and keep that list current.
- Require a secret header on proxied requests and reject anything without it at the origin.
- Move any directly exposed services, such as mail or staging hosts, off the same address range or behind the same controls.
- Rotate the origin address if it has been widely indexed, and review DNS history and certificate records for other leaks.
Hunting notes
This class of issue hides wherever a site assumes the CDN is the only way in. Recon signals include a hostname resolving to a CDN, subdomains that resolve elsewhere, and scan-engine results showing the same certificate on a non-CDN address. Historical DNS is often the quickest route.
To get a report accepted, show the direct response clearly: the candidate address, the Host header used, and the response proving it is the real origin rather than a generic page. Explain what protection is bypassed, as this report does with Cloudflare, and keep the impact claim proportionate to what you demonstrated.
Glossary
- Origin server: the real web server that holds and serves a site's content, usually kept behind a protective service.
- Cloudflare: a service that sits between visitors and a website, filtering and forwarding traffic.
- CDN (content delivery network): a network of servers that delivers a site's content and can shield the origin from direct contact.
- Reverse proxy: a server that accepts visitors' requests and forwards them to another server behind it.
- IP address: the numeric address that identifies a device or server on a network.
- Crawler: a program that automatically visits addresses or pages, often to collect information.
- censys.io: a search engine that scans the internet and indexes what devices and servers it finds.
- Information Disclosure: a weakness where information that should stay hidden becomes exposed.
- Severity: a rating of how serious a finding is, here medium.
- Bounty: a payment made to a researcher for reporting a valid issue.
- DDoS: an attack that floods a server with traffic to make it unavailable.
- WAF (web application firewall): a filter that inspects web traffic and blocks malicious requests.
- Rate limiting: restricting how many requests a client can make in a period of time.
- DNS: the system that translates a domain name into an IP address.
- A record: a DNS entry that maps a domain name to an IP address.
- Certificate transparency logs: public records of security certificates issued for websites, which list hostnames.
- Subdomain enumeration: finding subdomains of a site, which may point at the same infrastructure.
- Host header: a line in an HTTP request that tells the server which site name the visitor is asking for.
- HTTP request: the message a browser sends to a server to ask for a page or resource.
- Response headers: extra information a server sends back alongside a page.
- TCP handshake: the opening exchange that establishes a connection between two machines.
- Virtual host: a server configuration that serves different sites depending on the requested hostname.
- False positive: a result that looks like a finding but is not one.
- Recon: the information-gathering phase of security testing.