Uncovering CloudFlare
Last updated
Last updated
Learn & practice AWS Hacking: Learn & practice GCP Hacking:
You can use some service that gives you the historical DNS records of the domain. Maybe the web page is running on an IP address used before.
Same could be achieve checking historical SSL certificates that could be pointing to the origin IP address.
Check also DNS records of other subdomains pointing directly to IPs, as it's possible that other subdomains are pointing to the same server (maybe to offer FTP, mail or any other service).
If you find a SSRF inside the web application you can abuse it to obtain the IP address of the server.
Search a unique string of the web page in browsers such as shodan (and maybe google and similar?). Maybe you can find an IP address with that content.
In a similar way instead of looking for a uniq string you could search for the favicon icon with the tool: or with
This won't work be very frequently because the server must send the same response when it's accessed by the IP address, but you never know.
Search for the domain inside or . Or use the tool (which uses that API)
Search for the domain in
is a tool that will search using Censys certificates that contains the domain name, then it will search for IPv4s inside those certificates and finally it will try to access the web page in those IPs.
: CloakQuest3r is a powerful Python tool meticulously crafted to uncover the true IP address of websites safeguarded by Cloudflare and other alternatives, a widely adopted web security and performance enhancement service. Its core mission is to accurately discern the actual IP address of web servers that are concealed behind Cloudflare's protective shield.
If you have a set of potential IPs where the web page is located you could use
Note that even if this was done for AWS machines, it could be done for any other cloud provider.
For a better description of this process check:
Instead of configuring it's own certificate, customers can simple use Cloudflare’s certificate to allow any connection from Cloudflare, regardless of the tenant.
Therefore, an attacker could just set a domain in Cloudflare using Cloudflare's certificate and point it to the victim domain IP address. This way, setting his domain completely unprotected, Cloudflare won't protect the requests sent.
This will reject connections that do not originate from Cloudflare’s IP address ranges. This is also vulnerable to the previous setup where an attacker just point his own domain in Cloudflare to the victims IP address and attack it.
Sometimes you just want to bypass Cloudflare to only scrape the web page. There are some options for this:
Use Google cache: https://webcache.googleusercontent.com/search?q=cache:https://www.petsathome.com/shop/en/pets/dog
Some tools like the following ones can bypass (or were able to bypass) Cloudflare's protection against scraping:
There have been a number of Cloudflare solvers developed:
Use a headless browser that isn't deetcted as an automated browser (you might need to customize it for that). Some options are:
Smart proxies proxies are continuously updated by specialized companies, aiming to outmaneuver Cloudflare's security measures (as thats their business).
Som of them are:
Reverse engineering Cloudflare's anti-bot measures is a tactic used by smart proxy providers, suitable for extensive web scraping without the high cost of running many headless browsers.
Advantages: This method allows for the creation of an extremely efficient bypass that specifically targets Cloudflare's checks, ideal for large-scale operations.
Disadvantages: The downside is the complexity involved in understanding and deceiving Cloudflare's deliberately obscure anti-bot system, requiring ongoing effort to test different strategies and update the bypass as Cloudflare enhances its protections.
This mechanism relies on client to authenticate connections between Cloudflare’s reverse-proxy servers and the origin server, which is called mTLS.
More info .
More info .
Use other cache services such as
[Archived]
Puppeteer: The for .
Playwright: The is coming to Playwright soon. Follow developments and .
Selenium: The an optimized Selenium Chromedriver patch.
are noted for their proprietary Cloudflare bypass mechanisms.
For those seeking an optimized solution, the stands out. This service integrates over 20 proxy providers into a single API, automatically selecting the best and most cost-effective proxy for your target domains, thus offering a superior option for navigating Cloudflare's defenses.
Find more info about how to do this in the .
Learn & practice AWS Hacking: Learn & practice GCP Hacking:
Check the !
Join the 💬 or the or follow us on Twitter 🐦 .
Share hacking tricks by submitting PRs to the and github repos.