Origin IP found, WAF Cloudflare Bypass
The origin server's IP address was exposed, allowing an attacker to bypass Cloudflare's WAF and anti-DDoS protections by sending requests directly to the origin. This enables unfiltered attacks such as denial-of-service and data retrieval.
- Fixed in 23 hours
- Paid in 5 days
- Disclosed after 36 days
Summary by the researcher
Cloudflare WAF (Web Application Firewall) is a security service that helps protect web applications from various types of attacks, including SQL injection, cross-site scripting (XSS), and cross-site request forgery (CSRF). Cloudflare WAF operates by inspecting incoming HTTP/HTTPS traffic and applying a set of rules to block or allow requests based on their characteristics.
Bypassing Cloudflare WAF based on origin IP involves exploiting a weakness in the WAF configuration to bypass its security measures and access the origin server directly. This can be achieved by identifying the origin IP address of the web application and crafting requests that bypass the WAF and are sent directly to the origin server.
The report
Description: I have discovered that the http://172.105.190.180/login/ site exposed it's IP which could allow bypassing of anti-DDoS mechanisms i.e you are using Cloudflare for protection. For Originate IP address which I found from https://search.censys.io/
By using these IP address as a resolver instead of the intended addresses I'm able to access the service without going through the WAF, thus I'm able to forward unfiltered payloads to the service, as well as avoiding the common protections offered by Cloudflare, also being able to perform crippling denial-of-service towards the origin.
Suggestion: My recommendations fall in line with Cloudflare's own guidelines: the Origin server must communicate exclusively with Cloudflare's IP address ranges, otherwise--as reported in this post on Cloudflare's blog, the protection offered by having a reverse proxy basically becomes useless. IP 1 172.105.190.180 2 139.162.232.147 Files Attached
Impact
As reported in many other submissions, Cloudflare bypasses can have a significant impact, as any adversary is now able to communicate with the origin server directly, enabling them to perform unfiltered attacks (such as denial-of-service), and data retrieval
Attachments
Context
The target is smtp2go.com, an SMTP relay service, and the report concerns its web front end sitting behind Cloudflare. Cloudflare's Web Application Firewall inspects incoming HTTP and HTTPS traffic and applies rules that block or allow requests based on their characteristics, covering classes of attack such as SQL injection, cross-site scripting and cross-site request forgery. The protection model depends on the origin server accepting traffic only from Cloudflare, so that every request reaching the application has already passed through the filter.
The researcher's summary frames the bug as a WAF bypass based on the origin IP: identify the address of the web application behind the proxy, then send requests straight to it, skipping the inspection layer entirely.
Setup
The report describes no account, role or special tooling. The two things it names are the Cloudflare protection in front of the site and Censys, the internet-wide scan search engine, which the researcher used to find the origin address. No versions, headers or configuration details are given.
Finding it
Using Censys, the researcher located an address that answered for the application's login page. The page was reachable at http://[redacted]/login/, which is the origin server responding directly rather than through Cloudflare. Because that address is publicly reachable, the anti-DDoS and WAF mechanisms that Cloudflare provides can be sidestepped by talking to it instead of to the proxied hostname.
Exploitation
Step 1: locate the origin address
The researcher searched Censys and found the host serving the login page. The report lists two addresses:
1 [redacted]
2 [redacted]
The first is the one shown serving /login/; the second is listed alongside it as another IP. The report does not explain how the second was obtained or what it serves.
Step 2: send requests to the origin instead of the proxy
By using these addresses as a resolver instead of the intended addresses, the researcher was able to reach the service without passing through the WAF. In the researcher's words, this allows forwarding unfiltered payloads to the service, avoids the common protections Cloudflare offers, and makes it possible to perform a crippling denial-of-service against the origin.
The report contains no captured request or response showing this; the only artefact is a screen recording attached to the submission.
Root cause
The origin server accepts connections from anywhere, not only from Cloudflare's IP address ranges. Cloudflare's own guidance is that the origin must communicate exclusively with Cloudflare, and the researcher cites a Cloudflare blog post making the same point: if the origin is reachable directly, the protection offered by putting a reverse proxy in front of it becomes essentially useless. The WAF and DDoS absorption only apply to traffic that actually goes through the proxy, and nothing at the origin enforces that.
Impact
The researcher notes that Cloudflare bypasses have been reported in many other submissions and can have significant impact. An adversary who can reach the origin directly can communicate with it without filtering, which enables unfiltered attacks such as denial-of-service and data retrieval. The report hedges this as what bypasses in general allow; it does not demonstrate a specific attack against this host beyond reaching the login page directly. The platform recorded the severity as low with a bounty of 100.00 USD.
Fix
The report makes a recommendation rather than describing a change that was made: the origin server must communicate exclusively with Cloudflare's IP address ranges. In practice that means firewalling the origin so that only Cloudflare's published ranges can connect, which restores the guarantee that every request has passed through the WAF.
Variants to test
- Search Censys, Shodan or similar engines for certificates, page titles or banners matching the target, then request the login or API path on each candidate address. A positive result is the application answering identically to the proxied hostname.
- Resolve historical DNS records for the apex and for mail, VPN and staging subdomains. A record pointing at a hosting provider rather than Cloudflare is a candidate origin.
- Compare responses from the proxied hostname and a candidate IP for a request the WAF should block. If the origin returns the application's normal response where the proxy returns a block page, the origin is exposed.
- Check whether the origin accepts the same Host header as the public site. A positive result is the full application rendering on the bare IP with the correct Host set.
Hunting notes
This class of bug hides wherever a site is fronted by a CDN or WAF but the origin was never locked down: login pages, API hosts and mail or VPN subdomains are common candidates, and scan-engine data plus certificate and banner searches are the usual way in. The signal during recon is an address that serves the same content as the protected hostname. The researcher showed impact by reaching the login page directly and by pointing to the general consequences of an exposed origin; a stronger case would add a request the WAF blocks on the proxied host but allows on the origin.
What happened, in plain words
A security researcher found that a website belonging to SMTP2GO, an email delivery service, could be reached at its raw numeric address on the internet, skipping the protective layer that the company had put in front of it. That protective layer is Cloudflare, a service that sits between visitors and the real website and checks every request before passing it on. When you can talk to the real website directly, the checking never happens.
To understand the problem, imagine a nightclub with a bouncer at the door. The bouncer checks everyone's ID and turns away troublemakers. Now imagine the club also has a back door that nobody guards. Anyone who finds the back door can walk straight in, past all the checks. That is exactly what happened here: the front door (Cloudflare) was guarded, but the building's real address (the origin server) was reachable from the street.
The researcher found that address using a public search engine for internet-connected devices called Censys, confirmed the site's login page answered there, and reported it. The platform recorded the severity as low and paid a bounty of 100.00 USD.
Background: the pieces involved
Before the steps, a few ideas from zero.
A server and an IP address. Every website lives on a computer called a server. That computer has a numeric address, an IP address, a bit like a house number. Normally you reach a site by typing its name (its domain name), and a system called DNS translates that name into the number behind the scenes. If you know the number, you can often go straight there without using the name at all.
A reverse proxy and a WAF. A reverse proxy is a server that stands in front of the real website and passes visitors' requests along. Cloudflare runs one of these for many companies. On top of passing traffic, Cloudflare offers a Web Application Firewall, or WAF: a filter that inspects each incoming request and blocks ones that look like attacks. The researcher's summary explains that the WAF covers classes of attack such as SQL injection, cross-site scripting and cross-site request forgery. In plain terms, those are ways of sneaking harmful instructions into a website through the data you send it. The WAF reads the traffic and applies rules to allow or block each request based on its characteristics.
The origin server. The origin is the real machine that runs the application, sitting behind the proxy. The whole protection model depends on one condition: the origin should only accept traffic that has come through Cloudflare. If it accepts traffic from anywhere, the filter can be walked around.
Denial-of-service. A denial-of-service attack is an attempt to knock a service offline by overwhelming it with traffic, the online equivalent of blocking a shop doorway with a crowd so real customers cannot get in. Cloudflare's job includes absorbing that kind of flood. If attackers can reach the origin directly, Cloudflare's absorption does not apply to them.
Censys. Censys is a search engine that indexes devices and services reachable on the public internet. Instead of searching web pages, you search for what is answering on the network, which makes it a common way to discover machines that were meant to stay hidden.
The report
The researcher's description, as submitted:
Description:
I have discovered that the http://[redacted]/login/ site exposed it's IP
which could allow bypassing of anti-DDoS mechanisms i.e you are using
Cloudflare for protection.
For Originate IP address which I found from https://search.censys.io/
By using these IP address as a resolver instead of the intended
addresses I'm able to access the service without going through the
WAF, thus I'm able to forward unfiltered payloads to the service, as
well as avoiding the common protections offered by Cloudflare, also
being able to perform crippling denial-of-service towards the origin.
Suggestion:
My recommendations fall in line with Cloudflare's own guidelines: the
Origin server must communicate exclusively with Cloudflare's IP
address ranges, otherwise--as reported in this post on Cloudflare's
blog, the protection offered by having a reverse proxy basically
becomes useless.
IP
1 [redacted]
2 [redacted]
Files Attached
Line by line, in plain words:
- The first lines say the login page of the site was reachable at the address
http://[redacted]/login/, and that this exposed the site's real IP address. - Because that address is public, the anti-DDoS mechanisms, meaning Cloudflare's protection against traffic floods, can be bypassed.
- The researcher says the origin address was found through
https://search.censys.io/, the Censys search engine mentioned above. - By sending requests to that address instead of the intended, Cloudflare-fronted one, the researcher could reach the service without going through the WAF. That means unfiltered payloads, meaning request contents that the filter would normally inspect or block, can be delivered to the service.
- The same route avoids Cloudflare's common protections and would allow a crippling denial-of-service against the origin.
- The suggestion quotes Cloudflare's own guidance: the origin server must communicate exclusively with Cloudflare's IP address ranges. Otherwise, as a Cloudflare blog post cited in the report puts it, the protection offered by having a reverse proxy basically becomes useless.
- The two numbered lines are the IP addresses the report lists.
Finding it
Using Censys, the researcher located an address that answered for the application's login page. The page was reachable at http://[redacted]/login/, which is the origin server responding directly rather than through Cloudflare. Because that address is publicly reachable, the anti-DDoS and WAF mechanisms that Cloudflare provides can be sidestepped by talking to it instead of to the proxied hostname.
Why this step matters: the researcher did not guess the address. Censys had already recorded that this machine was answering on the public internet, so a search there revealed it. The login page responding at the bare address is the proof that the machine is the real application and not some unrelated host.
Exploitation
Step 1: locate the origin address
The researcher searched Censys and found the host serving the login page. The report lists two addresses:
1 [redacted]
2 [redacted]
What this block means: it is simply a numbered list of two IP addresses. The first is the one shown serving /login/; the second is listed alongside it as another IP. The report does not explain how the second was obtained or what it serves.
Step 2: send requests to the origin instead of the proxy
By using these addresses as a resolver instead of the intended addresses, the researcher was able to reach the service without passing through the WAF. In the researcher's words, this allows forwarding unfiltered payloads to the service, avoids the common protections Cloudflare offers, and makes it possible to perform a crippling denial-of-service against the origin.
Why this step matters: normally your browser asks DNS for the site's name and is sent to Cloudflare, which inspects the request and then forwards it to the origin. If you address the origin directly, the inspection step is simply not in the path. Nothing at the origin checks where the request came from, so it is served anyway.
The report contains no captured request or response showing this; the only artefact is a screen recording attached to the submission.
The recording is the attachment included with the report.
Root cause
The origin server accepts connections from anywhere, not only from Cloudflare's IP address ranges. Cloudflare's own guidance is that the origin must communicate exclusively with Cloudflare, and the researcher cites a Cloudflare blog post making the same point: if the origin is reachable directly, the protection offered by putting a reverse proxy in front of it becomes essentially useless. The WAF and DDoS absorption only apply to traffic that actually goes through the proxy, and nothing at the origin enforces that.
In the nightclub comparison: the bouncer is excellent, but the back door has no lock, and the club never checked whether people were coming in through the front.
Impact
The researcher notes that Cloudflare bypasses have been reported in many other submissions and can have significant impact. An adversary who can reach the origin directly can communicate with it without filtering, which enables unfiltered attacks such as denial-of-service and data retrieval. The report hedges this as what bypasses in general allow; it does not demonstrate a specific attack against this host beyond reaching the login page directly. The platform recorded the severity as low with a bounty of 100.00 USD.
Fix
The report makes a recommendation rather than describing a change that was made: the origin server must communicate exclusively with Cloudflare's IP address ranges. In practice that means firewalling the origin so that only Cloudflare's published ranges can connect, which restores the guarantee that every request has passed through the WAF.
In the nightclub comparison, this is locking the back door so that the only way in is past the bouncer.
Variants to test
These are ways the same kind of mistake can be hunted for on other sites:
- Search Censys, Shodan or similar engines for certificates, page titles or banners matching the target, then request the login or API path on each candidate address. A positive result is the application answering identically to the proxied hostname.
- Resolve historical DNS records for the apex and for mail, VPN and staging subdomains. A record pointing at a hosting provider rather than Cloudflare is a candidate origin.
- Compare responses from the proxied hostname and a candidate IP for a request the WAF should block. If the origin returns the application's normal response where the proxy returns a block page, the origin is exposed.
- Check whether the origin accepts the same Host header as the public site. A positive result is the full application rendering on the bare IP with the correct Host set.
A little explanation of the terms in that list: an apex domain is the main name itself, such as example.com without any prefix. Subdomains are the prefixes, such as mail.example.com or vpn.example.com. A banner is the short greeting some services send when you connect, which can reveal what software is running. A Host header is a line your browser sends with every request saying which site name it is asking for, because one server can host many sites. Historical DNS records are past versions of the name-to-address mapping, kept by public databases, which can reveal an address that was used before Cloudflare was put in front.
Hunting notes
This class of bug hides wherever a site is fronted by a CDN or WAF but the origin was never locked down: login pages, API hosts and mail or VPN subdomains are common candidates, and scan-engine data plus certificate and banner searches are the usual way in. The signal during recon is an address that serves the same content as the protected hostname. The researcher showed impact by reaching the login page directly and by pointing to the general consequences of an exposed origin; a stronger case would add a request the WAF blocks on the proxied host but allows on the origin.
Glossary
- IP address: the numeric address of a machine on the internet, like a house number.
- Domain name: the human-friendly name of a site, such as example.com, which DNS translates into an IP address.
- DNS: the system that maps domain names to IP addresses.
- Server: a computer that runs a website or service and answers requests.
- Origin server: the real machine running the application, sitting behind a proxy or protective layer.
- Reverse proxy: a server that stands in front of the real site and passes visitors' requests along to it.
- Cloudflare: a company whose service sits between visitors and a website, filtering and absorbing traffic.
- WAF (Web Application Firewall): a filter that inspects incoming requests and blocks ones that look like attacks.
- SQL injection: an attack that sneaks database instructions into data a site accepts.
- Cross-site scripting (XSS): an attack that sneaks harmful script into a page other people will view.
- Cross-site request forgery (CSRF): an attack that makes a logged-in user's browser send a request the user did not intend.
- Payload: the content of a request, which may carry an attack the filter is meant to catch.
- Denial-of-service (DoS): overwhelming a service with traffic so that legitimate users cannot use it.
- Anti-DDoS: protection that absorbs or filters flood traffic aimed at taking a service down.
- Censys: a search engine that indexes devices and services reachable on the public internet.
- Shodan: another search engine for internet-connected devices.
- Banner: the short greeting a service sends on connection, which can reveal its software.
- Host header: a line in each request naming which site the browser is asking for.
- Apex domain: the main domain name itself, without any prefix.
- Subdomain: a prefixed name under a domain, such as mail.example.com.
- Historical DNS records: past versions of name-to-address mappings kept by public databases.
- Recon: the information-gathering phase before an attack or test.
- Bounty: a payment a company makes to a researcher who reports a valid security problem.