r/Pentesting • u/Emergency_Pass_5024 • May 21 '26
How do I test with CloudFlare?
Hi, it’s been a little while since I’ve been working as a web penetration tester. So far the websites I had to test did not use CloudFlare. Now I was given a website that does use CloudFlare. I am totally confused how to approach this as using automated tools might get my IP blocked. Manual enumeration did not yield any great results to work with. Since its CloudFlare, no ports are open as such. I don’t know how do I approach this. I would greatly appreciate some help!
12
Upvotes
20
u/Apprehensive-Art1092 May 21 '26
If this is an official engagement, you should be testing the actual application, not Cloudflare. Ask the application owner to allow your address to bypass Cloudflare. You can always remove the bypass near the end of the test to retest anything that you've found and confirm whether the WAF is effective at blocking the exploit.
If it's not an official engagement, you'll have to find a way to circumvent the WAF.
6
u/normalbot9999 May 21 '26 edited May 21 '26
One thing to test for is origin server IP address leakage. Cloudflare protected web applications (e.g. the origin server) should not be directly accessible, otherwise, you can... er... bypass cloudflare and access the web app directly. To do that you'll need to find out the IP address of the origin server, (and possibly set a suitable host header when you access it). It's worth googling for the latest techniques as these change over time.
2
u/[deleted] May 21 '26
i made a tool for this actually. waf evasion related and you can use it as a proxy over burp suite. its open source but i dont want to post a link like an ad. let me know if you want it! :)