How a Typo in a Content Delivery Network (CDN) Config Exposed a Tech Giant’s Internal Staging…
A CDN configuration error exposed an internal staging load balancer's hostname, and by sending requests to a production CDN IP with a manipulated Host header, the researcher reached an internal Apache server. Directory brute-forcing then revealed an exposed Git directory, a backup database configuration file with plaintext credentials, and an unauthenticated admin dashboard.
We’ve all been told that the cloud simplifies security. “Move your infrastructure to a major provider,” they say. “Let their team of elite engineers handle the perimeter defense.”
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 a CDN origin configuration error that pointed to an internal, non-routable hostname, combined with a reverse proxy that trusted the incoming Host header to route traffic to internal systems.
Impact
An attacker could access an internal staging server, including an unauthenticated admin dashboard and plaintext database credentials, which could expose real data if staging contained production-synced information.
What the attacker needed
Knowledge of internal hostname; ability to send custom Host header; no authentication required
The fix
The public-facing CDN routing rule pointing to the internal environment was removed, and the staging load balancer was restricted to accept traffic only from authorised corporate VPN IP ranges.
How it was found
- Found a staging subdomain that returned a Cloudflare 522 error and noticed an X-Origin-Host header revealing an internal .local hostname.
- Guessed the public-facing equivalent of the internal hostname based on naming conventions.
- Sent a request to a production CDN edge IP with the Host header set to the guessed internal hostname, receiving a 404 from an Apache server instead of a 522.
- Ran a directory brute-force tool against the same IP with the custom Host header, discovering a Git directory, a backup database configuration file, and an admin dashboard.
- Accessed the backup database configuration file, which contained plaintext staging database credentials.
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 content delivery network (CDN) is a service that sits in front of a website to speed it up and protect it. Here, a mistake in the CDN's settings revealed the name of an internal server that was not meant to be reachable from the internet. By changing a request header (a small piece of information sent with every web request) to that internal name, the researcher tricked the CDN into forwarding traffic to the private server, and then found sensitive files on it.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.