Skip to content
Misconfiguration Write-up Beginner

Cloudflare Bypass via Exposed Origin IP | The Power of Shodan Re

The origin server behind Cloudflare was directly reachable by its IP address, and a directory listing exposed the ACME challenge folder. An attacker could bypass the WAF and view internal paths, though the exposed file held no sensitive data.

sudohunt Follow

Published on sudohunt.medium.com

Shodan is a specialized search engine used by bug bounty hunters and penetration testers to find a target’s origin IP, open ports, and

SudoHunt, on sudohunt.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 accepted direct connections from the internet instead of only allowing traffic from Cloudflare, and it also served a directory listing for the ACME challenge folder.

Impact

The WAF could be bypassed by reaching the origin directly, and the exposed directory revealed internal paths, but the only file found contained no sensitive information.

What the attacker needed

Target uses Cloudflare; origin IP discoverable via Shodan; origin reachable directly

How it was found

  1. Enumerate subdomains and find one returning 403 Forbidden.
  2. Search Shodan for SSL certificates whose common name matches the subdomain to find the origin IP.
  3. Confirm the origin responds to the correct Host header with a redirect.
  4. Fuzz directories on the direct IP and find the ACME challenge directory listing.

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.

A website often sits behind a protective service like Cloudflare, which filters traffic. If the real server underneath can be found and reached directly, those protections are skipped. Here the author used a search engine for internet-connected devices to find that real server's address.

What is Misconfiguration?

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

More by sudohunt

View all

3 more disclosed reports, best first.

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.