Skip to content
Misconfiguration Write-up Beginner

Easy P4: Cloudflare Bypass, Origin IP Found (Part 1)

The write-up describes methods for finding a website's origin IP when it sits behind a Cloudflare WAF, so that the WAF could potentially be bypassed. It only outlines reconnaissance techniques and does not demonstrate a confirmed bypass or a specific vulnerable target.

medium.com

Published on medium.com

Hi, myself Suraj Sharma, in this short write-up, I’ll show you various methods to find the origin IP of a website hidden behind a Cloudflare Web Application Firewall (WAF).

sudosuraj, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the origin server remained directly reachable on the internet, so its address could be discovered through reconnaissance rather than being restricted to the WAF.

Impact

If an origin IP is found and reachable, an attacker could potentially reach the server directly and bypass the Cloudflare WAF, though the text does not confirm this worked against any target.

What the attacker needed

Target uses Cloudflare; origin reachable from internet

How it was found

  1. Use a technology-detection browser extension to identify the site's stack and CDN.
  2. Use a Shodan browser extension to get the site's IP and test direct access.
  3. Run ping and reverse DNS lookups to find possible origin addresses.
  4. Search Shodan with dorks and try the resulting IPs to see if they bypass the WAF.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Many sites put a protective service in front of their real server so attackers cannot reach it directly. If someone can work out the real server's address, they may be able to talk to it without that protection. This post lists ways to guess that address but does not show a working attack.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.