Skip to content
Access control Write-up Intermediate

When the CDN Was Secure but the Origin Wasn’t: Bypassing SSO Through Direct-to-Origin Access

A development site was protected by SSO at the CDN edge, but the origin AWS load balancer was publicly reachable and did not enforce authentication. An attacker could connect directly to the origin with the protected Host header and access the site without logging in.

redhunter01 Follow

Published on medium.com

Bug Bounty

redhunter01, 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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 9 min read.

Context

The target was a development/QA microsite that appeared to be protected by corporate single sign-on (SSO). The intended model was simple: every visitor reaches the site through a CDN, the CDN checks whether the user is authenticated, and only then forwards the request to the application. Unauthenticated users were redirected to the company SSO login page, so from the outside the site looked properly gated.

The application itself sat behind an AWS Application Load Balancer (ALB), and the CDN sat in front of that. The security control in question, the SSO check, existed only at the CDN edge. The bug was not in the SSO implementation: it was that the origin behind the CDN was also reachable directly from the Internet and did not repeat the authentication check.

Setup

No accounts, roles or special tooling are described beyond command-line HTTP testing with curl. The preconditions that made the finding possible were:

  1. A dev/QA site fronted by a CDN that enforced SSO.
  2. An origin (an AWS ALB) that was publicly reachable.
  3. An origin that selected the virtual host to serve based on the HTTP Host header, and did not verify that a request had actually come through the CDN.

Finding it

The first observation was the normal, unauthenticated behaviour of the protected hostname. Browsing to it did not show the application; it redirected to corporate SSO. Conceptually the request was:

Bash
curl -si https://protected-dev.example.com/

and the response was:

HTTP
HTTP/2 302
Location: https://sso.example.com/login/

That established the intended security model: unauthenticated visitors are not supposed to reach the site. The next question was where that authentication was actually enforced.

The architecture was understood as follows: Internet traffic goes to the CDN, the CDN performs the SSO check, and only then does traffic reach the AWS ALB and the dev website. The assumption behind that design is that all users must go through the CDN, which is only safe if users cannot reach the origin directly. So the researcher reframed the question from "Can I bypass SSO?" to "Can I bypass the system enforcing SSO?"

Related DNS information exposed a second hostname pointing at the backend infrastructure rather than the CDN:

Text
protected-dev.example.com
        ↓
      CDN
Text
origin-dev-proxy.example.com
        ↓
AWS Application Load Balancer

That gave two possible paths to the same application: the intended one through the CDN and SSO, and a potential one straight to the ALB. The second was worth testing.

Exploitation

Step 1: confirm the baseline through the CDN

Before touching the origin, the normal behaviour was confirmed again:

Bash
curl -si https://protected-dev.example.com/
HTTP
HTTP/2 302
Location: https://sso.example.com/login/

This baseline matters for the report: an HTTP 200 from some other address proves little unless you can show what the intended path does with the same unauthenticated request.

Step 2: test whether the origin accepts public connections

The origin did respond to connections from the public Internet. Because a single load balancer commonly serves several sites, the request also has to tell the origin which virtual host is wanted, using the Host header. Connecting to the load balancer alone is not always enough; the request must claim to be for protected-dev.example.com so that the origin selects the protected virtual host.

Step 3: send the request to the origin while keeping the protected hostname

A controlled test forces the protected hostname to resolve to the origin instead of the CDN, while the request still looks like it is for the protected site:

Bash
curl -sk \
  --resolve protected-dev.example.com:443:<ORIGIN_IP> \
  https://protected-dev.example.com/

--resolve pins the hostname to <ORIGIN_IP> for this request, so the connection and HTTP request go directly to the origin, while the request still names protected-dev.example.com. -k skips certificate verification, and -s silences progress output.

Step 4: compare the responses

Through the CDN, the unauthenticated request produced:

HTTP
HTTP/2 302
Location: https://sso.example.com/login/

Directly against the origin, the same unauthenticated request produced:

HTTP
HTTP/2 200
set-cookie: AWSALB=...
x-powered-by: DEV

The response contained the protected dev site's homepage. There was no SSO login, no authenticated session and no existing SSO cookies. The response also carried a set-cookie: AWSALB=... header and an x-powered-by: DEV header. The behaviour was now:

Text
CDN path:
Text
Unauthenticated
      ↓
     302
      ↓
SSO Login

versus:

Text
Origin path:
Text
Unauthenticated
      ↓
200 OK
      ↓
Dev website

That was the bypass.

Step 5: test every origin address

The origin resolved to more than one public address. Both behaved the same way, each returning HTTP 200 without requiring the request to come from CDN infrastructure. That ruled out a single misconfigured backend node and strongly suggested there was no effective network-level restriction protecting the origin.

Step 6: keep impact testing minimal

Without authentication, direct-origin access confirmed access to:

  • the dev microsite homepage;
  • published pages;
  • RSS/feed endpoints;
  • static content;
  • media served by the dev environment.

That was enough to prove that the SSO-protected application could be accessed externally without SSO. Testing did not demonstrate access to authenticated admin functionality, protected REST API data, XML-RPC, backups, sensitive AJAX operations, credentials, personally identifiable information, unpublished drafts, remote code execution or SSRF. Separating what was proved from what might theoretically exist is what makes the report trustworthy.

Root cause

The SSO implementation was not broken; it worked correctly at the CDN. The problem was architectural: authentication was enforced only at the edge, while the origin assumed every request had already passed through that edge. Three conditions existed together:

Text
Publicly reachable origin
        +
Authentication only at CDN
        +
Origin trusts Host header

Result:

Text
Direct-to-origin authentication bypass

The origin never asked whether a request had actually come from the CDN. It looked at Host: protected-dev.example.com and served the protected application. Hiding the origin hostname is not a reliable boundary either: origin addresses can become known through DNS history, passive DNS, old records, certificates, configuration leaks, archived infrastructure, related hostnames and misconfigured DNS. The secure assumption is that somebody may eventually learn the origin address, and security should still hold when they do.

Impact

An unauthenticated external user could bypass the corporate SSO gate and access a development environment that was intended to require authentication. Even if some of the content happened to be similar to public production content, the security boundary was still broken. The intended rule was that the protected dev site required staff authentication; the actual rule became that anyone who knew or could reach the origin needed no authentication at all. That is an access-control failure.

The strongest accurate claim is that the CDN SSO boundary protecting the dev environment could be completely bypassed through direct-origin access. No admin access was obtained, no credentials were exposed and no code execution was achieved, so claims of a critical internal environment compromise would be exaggerated.

Fix

Several layers of remediation apply:

  1. Restrict who can reach the origin. The most important network fix is to block direct Internet access to the origin while allowing CDN traffic, for example with security groups or firewalls that restrict origin access to trusted CDN infrastructure where practical. Then even a discovered origin address is blocked to an attacker.
  2. Do not rely only on edge authentication. The origin should not assume that receiving a request means the CDN authenticated it. Critical authorization should still be validated at an appropriate trusted application or origin layer. CDN authentication is one layer, not the only layer.
  3. Make the origin verify the edge. Require proof that a request came through trusted edge infrastructure, for example with mTLS, CDN-generated or verifiable tokens, signed origin requests, or secret or cryptographically protected origin headers. The exact design depends on the CDN and infrastructure; the principle is that the origin needs a reliable way to distinguish trusted CDN traffic from arbitrary Internet traffic.
  4. Treat a static secret header with care. A header such as X-Origin-Secret: some-secret-value added by the CDN is better than checking only Host, but the secret must itself remain protected and be rotated appropriately. Cryptographically verifiable or network-enforced approaches can provide stronger guarantees depending on the architecture. The lesson is not one specific header: the origin needs proof of how the request arrived.
  5. Reduce origin exposure. Remove unnecessary DNS records for backend infrastructure so that names such as origin.example.com, backend.example.com, dev-proxy.example.com and alb.example.com are not public when they do not need to be. Origin secrecy reduces exposure; it does not provide authentication.
  6. Monitor direct-origin traffic. A protected site's origin receiving requests directly from unknown Internet clients is a useful detection signal. Alert on a protected Host header combined with a source that is not expected CDN infrastructure; that can indicate configuration mistakes, scanners, bypass attempts, old DNS records or accidentally exposed origins.

Variants to test

The reusable methodology is to find something protected at the edge, establish the normal unauthenticated behaviour, understand what sits behind the CDN, determine whether the origin is public, preserve the original hostname, compare edge and origin behaviour, and prove minimal impact.

Concrete things to try on other targets:

  1. Look for edge-protected applications. Targets protected by SSO, CDN access rules, Zero Trust, WAF authentication, edge workers or login redirects. A positive result is an unauthenticated request that returns 302, 401 or 403 from the edge; save that as your baseline.
  2. Map the infrastructure behind the CDN. Ask what sits behind it: a load balancer, reverse proxy, cloud origin or another hostname. A positive result is a related hostname or address that points at backend infrastructure rather than the CDN.
  3. Test whether arbitrary Internet users can connect to the backend. If they cannot, the control holds. If they can, keep investigating within program scope.
  4. Preserve the original hostname when hitting the origin. A request to an IP address alone may return a default backend, a 404 or a different application, which does not mean the protected application is unreachable. A positive result is the protected application's content when the protected Host header is supplied.
  5. Compare edge and origin for the same unauthenticated request. A positive result is an SSO redirect at the edge and application content from the origin, which is easy for a triager to understand.
  6. Check every origin address. If the origin resolves to several public addresses, test each. A positive result is consistent 200 responses from all of them, which shows the exposure is not a single misconfigured node.
  7. Prove minimal impact only. The protected homepage may already prove the authentication boundary failed; there is no need to explore sensitive administrative functionality to make the report look stronger.

The general question to ask whenever authentication is implemented by infrastructure in front of an application, whether a CDN, WAF, reverse proxy, API gateway, identity-aware proxy, load balancer or edge worker, is: what prevents me from going around that infrastructure? Sometimes the easiest way to bypass a security control is not to break it, but to avoid it.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 27 min read.

What happened, in plain words

A company had a development website. A development website is a copy of a real website that programmers use while they are still building and testing it, before the finished version goes live for customers. This one was meant to be private: only staff should be able to open it.

To keep it private, the company put a login check in front of it. When you visited the site, you were sent to the company's single sign-on page. Single sign-on, usually shortened to SSO, is one central login that many company systems share: you sign in once and every system trusts that one sign-in. If you were not signed in, you never saw the site. You saw the login page instead.

That login check worked perfectly. The problem was somewhere else. The actual computer that stores and serves the website, called the origin, could also be reached directly from the ordinary internet, without going through the login check at all. Anyone who found that direct address could open the development site with no login whatsoever.

This is called a direct-to-origin authentication bypass. "Authentication" means proving who you are, usually by logging in. A "bypass" means going around a check instead of breaking it. The login gate was never cracked. People simply walked around it through a side entrance that nobody had locked.

The setup: what the company built

To understand the bug you need a picture of the pieces involved. None of them is exotic; they are the same pieces most websites use.

The website itself. A small development/QA microsite. "QA" stands for quality assurance, the testing stage. A "microsite" is just a small, focused website, often a single section of a larger one.

The CDN. CDN stands for content delivery network. A CDN is a company that keeps copies of a website on servers all over the world so that visitors get pages quickly from a server near them. Think of it as a chain of local shops instead of one distant warehouse. But a CDN can also do more than speed things up: it can sit in front of a website and inspect every visitor before passing them on. Many companies use it as a security guard at the door.

The SSO check. The CDN was configured to ask every visitor: are you logged in? If not, send them to the company login page. Only logged-in visitors were passed on to the real site.

The AWS Application Load Balancer (ALB). AWS is Amazon Web Services, a large cloud provider. A load balancer is a machine that receives incoming requests and hands them to one of several servers behind it, spreading the work so no single server is overwhelmed. Think of a host at a restaurant who decides which table each party sits at. The ALB was the piece directly in front of the actual website.

The origin. The origin is the real server, or group of servers, that holds the website's files and produces its pages. Everything in front of it (CDN, load balancer) exists to protect it or speed it up. If you can talk to the origin directly, everything in front of it becomes optional.

The intended path for a visitor looked like this:

Text
User
  ↓
CDN
  ↓
SSO check
  ↓
Application

Line by line: a person opens the site (User). Their request goes to the CDN. The CDN checks whether they are signed in (SSO check). Only if they are does the request continue to the application, the actual website software.

That design is only safe under one assumption: that every visitor must pass through the CDN. If a visitor can reach the application without passing the CDN, the SSO check is skipped entirely. That assumption is exactly what turned out to be false.

Step 1: the site looked properly protected

The first thing the researcher did was the simplest possible thing: visit the site like any ordinary person, without logging in. This is always the right starting point, because before you can claim something is broken you need to record what normal, correct behaviour looks like. In security work this recorded normal behaviour is called a baseline.

The request was made with curl. Curl is a command-line tool that fetches web pages and shows you the raw response instead of rendering it in a browser. It is useful because a browser hides the interesting details (status codes, headers) while curl shows them plainly.

Bash
curl -si https://protected-dev.example.com/

Line by line: curl is the program. -s means silent, so curl does not print a progress meter. -i means include the response headers in the output, so you can see the status code and other metadata, not just the page body. https://protected-dev.example.com/ is the address being requested. example.com is a placeholder domain used in documentation.

The response was:

HTTP
HTTP/2 302
Location: https://sso.example.com/login/

Line by line: HTTP/2 302 means the server answered using version 2 of the HTTP protocol (the language browsers and servers speak) with status code 302. A 302 is a redirect: it means "the thing you asked for is not here, go somewhere else instead". Location: https://sso.example.com/login/ is the somewhere else: the company's SSO login page.

So an unauthenticated visitor was bounced to the login page. That told the researcher two things. First, the site was not supposed to be open to the public. Second, the login check was happening somewhere in front of the application, not inside it. The natural next question was: where exactly is that check enforced, and can it be avoided?

Step 2: understanding the architecture

The researcher then drew out the likely architecture, the way the pieces are wired together:

Text
┌─────────────┐
Internet ───────→ │     CDN     │
                  └──────┬──────┘
                         │
                     SSO check
                         │
                         ▼
                  ┌─────────────┐
                  │   AWS ALB   │
                  └──────┬──────┘
                         │
                         ▼
                    Dev website

Line by line: traffic from the internet arrives at the CDN. The CDN performs the SSO check. Traffic that passes goes to the AWS load balancer, which forwards it to the development website.

The hidden assumption in that diagram is:

Text
All users
  ↓
must go through CDN
  ↓
therefore CDN performs authentication

Line by line: if every user must pass the CDN, and the CDN checks logins, then every user is checked. That reasoning is only valid if users cannot reach the origin directly. So the researcher stopped asking "can I break the SSO?" and started asking a better question: "can I bypass the system that enforces SSO?" That reframing is the heart of the whole finding. Breaking a lock is hard; finding an unlocked door next to it is easy.

Step 3: finding the origin

The CDN hostname was the public address people used:

Text
protected-dev.example.com
        ↓
      CDN

Line by line: the name protected-dev.example.com is what visitors type. Behind that name, the internet's address book (DNS, the domain name system that translates names into numeric addresses) pointed at the CDN.

But related DNS information revealed a second hostname that pointed not at the CDN but at the backend infrastructure:

Text
origin-dev-proxy.example.com
        ↓
AWS Application Load Balancer

Line by line: origin-dev-proxy.example.com is another name that resolved to the load balancer in front of the real site. The word "origin" in the name is a strong hint: this is the path to the actual server, not the protective layer.

Now there were two possible routes to the same application. The intended route went through the CDN and the SSO check. The other route went straight to the load balancer. The second route was worth testing, because if it worked, the SSO check would never be consulted.

Step 4: why knowing the origin matters

Many companies rely on a CDN for several security jobs at once:

Text
CDN
 ├── WAF
 ├── Rate limiting
 ├── Bot protection
 └── Authentication / SSO

Line by line: a WAF, web application firewall, inspects requests and blocks malicious ones. Rate limiting caps how many requests one client can make, to stop floods. Bot protection tries to tell humans from automated programs. Authentication/SSO is the login check. All four live at the CDN.

That arrangement only works if the only way in is through the CDN:

Text
Internet
   ↓
CDN
   ↓
Origin

Line by line: internet traffic enters at the CDN and only then reaches the origin. But if this is also possible:

Text
Internet
   ↓
Origin

Line by line: internet traffic can reach the origin without touching the CDN. Then every control that exists only at the CDN can be skipped. The researcher used a simple comparison: a building whose front entrance has a security guard, an ID check and a badge scanner. The guard is doing a perfect job. But somebody finds an unlocked side door. You do not need to defeat the guard; you just do not walk past them. That is exactly what happened here.

Step 5: the first important control test

Before trying anything clever, the researcher confirmed the normal behaviour once more:

Bash
curl -si https://protected-dev.example.com/

Line by line: same command as before, same address, no login. -s silences progress output, -i shows the headers, and the URL is the protected site.

The result was the same:

HTTP
HTTP/2 302
Location: https://sso.example.com/login/

Line by line: status 302, a redirect, pointing at the SSO login page. The public-facing path clearly enforced the login check.

Why repeat it? Because in a bug report, a 200 OK from some other address proves very little on its own. You must show what the intended path does with the same unauthenticated request, so the reader can see the difference. The baseline was now clear: a normal request through the CDN requires SSO.

Step 6: testing the origin directly

The next question was whether the AWS origin accepted connections from the ordinary internet at all. It did respond. But there was a second detail that matters.

Modern web servers often host many websites behind one load balancer. To decide which site to serve, the server reads a piece of every HTTP request called the Host header. A header is a small labelled line of extra information sent with a request or response; the Host header says which website name the visitor is asking for. Think of a large office building: the street address gets you into the lobby, but the receptionist needs the company name to send you to the right floor.

So connecting to the load balancer is not always enough. The request must also say which site it wants:

Text
TCP/TLS connection
      ↓
Origin server
      ↓
Host: protected-dev.example.com
      ↓
Protected virtual host

Line by line: first a network connection is opened (TCP is the basic connection protocol; TLS is the encryption layer that makes it HTTPS). Then the origin server receives the request. The request carries Host: protected-dev.example.com, naming the protected site. The server uses that name to pick the right virtual host, meaning one of several websites configured on the same machine.

Step 7: the direct-to-origin request

To test the origin while still asking for the protected site, the researcher used a controlled trick: force the protected hostname to resolve to the origin's address instead of the CDN's, for this one request only.

Bash
curl -sk \
  --resolve protected-dev.example.com:443:<ORIGIN_IP> \
  https://protected-dev.example.com/

Line by line: curl is the tool. -s silences progress output. -k tells curl to skip certificate verification. --resolve protected-dev.example.com:443:<ORIGIN_IP> overrides DNS for this request: it says "when I ask for protected-dev.example.com on port 443 (the standard HTTPS port), connect to <ORIGIN_IP> instead". The backslashes at the end of lines simply continue one long command onto several lines for readability. https://protected-dev.example.com/ is the address requested, so the request still looks like it is for the protected site.

The effect is that the request still claims to be for protected-dev.example.com, but the network connection goes straight to the origin's address. Instead of:

Text
protected-dev.example.com
        ↓
      CDN

Line by line: the name normally leads to the CDN. We get:

Text
protected-dev.example.com
        ↓
   Origin directly

Line by line: the same name, but the connection lands on the origin, skipping the CDN and therefore skipping the SSO check.

Step 8: the response changed completely

Through the CDN, the unauthenticated request produced:

HTTP
HTTP/2 302
Location: https://sso.example.com/login/

Line by line: status 302, a redirect to the login page. The gate held.

Directly against the origin, the same unauthenticated request produced:

HTTP
HTTP/2 200
set-cookie: AWSALB=...
x-powered-by: DEV

Line by line: HTTP/2 200 means success; the server returned the page instead of a redirect. set-cookie: AWSALB=... is a cookie set by the load balancer. A cookie is a small piece of data a server asks your browser to store and send back on later requests. x-powered-by: DEV is another header in the response.

More importantly, the response contained the protected dev site's homepage. There was no SSO login, no authenticated session and no existing SSO cookies. The behaviour was now:

Text
CDN path:
Text
Unauthenticated
      ↓
     302
      ↓
SSO Login

Line by line: an unauthenticated visitor going through the CDN gets a 302 redirect to the login page.

versus:

Text
Origin path:
Text
Unauthenticated
      ↓
     200 OK
      ↓
Dev website

Line by line: the same unauthenticated visitor going straight to the origin gets a 200 OK and the development website itself. That difference is the bypass.

Step 9: why the Host header matters

This is the most important technical idea in the whole finding, so it is worth slowing down.

Imagine the load balancer serves several websites:

Text
AWS ALB
 ├── dev-a.example.com
 ├── dev-b.example.com
 └── protected-dev.example.com

Line by line: one load balancer, three sites configured on it. This is common and saves money.

The server looks at the request's Host header:

Text
Host: protected-dev.example.com

Line by line: the request names the protected site. The server then decides: "Oh, you want the protected-dev application." Normally the CDN adds that header when it forwards traffic to the origin. But an attacker can sometimes add it too. So the trust model becomes:

Text
Origin receives:
Text
Host: protected-dev.example.com
        ↓
"Serve protected dev site"

Line by line: the origin sees the name and serves the protected site. The origin never asks the crucial question: "Did this request actually come from our CDN?" That missing check is the real issue. The origin trusted a label that anyone can write.

Step 10: testing both origin addresses

The origin resolved to more than one public address. Both behaved the same way:

Text
Origin IP
   ↓
HTTP 200

Line by line: the first origin address returned a 200 OK.

Text
Origin IP #2
   ↓
HTTP 200

Line by line: the second origin address also returned a 200 OK.

Neither required the request to come from CDN infrastructure. That mattered because it ruled out a single misconfigured backend node. That suggested the exposure was not a single misconfigured backend node. Both answering the same way strongly suggested there was no effective network-level restriction protecting the origin at all.

Step 11: the vulnerability in one diagram

The application expected this:

Text
┌─────────────┐
│    USER     │
└──────┬──────┘
       │
       ▼
┌─────────────┐
│     CDN     │
│             │
│ SSO CHECK ✓ │
└──────┬──────┘
       │
       ▼
┌─────────────┐
│   ORIGIN    │
└─────────────┘

Line by line: the user goes to the CDN, the CDN performs the SSO check successfully (the tick), and only then does the request reach the origin.

But the actual network allowed this:

Text
┌─────────────┐
│    USER     │
└──────┬──────┘
       │
       │ skip CDN
       │
       ▼
┌─────────────┐
│   ORIGIN    │
│             │
│  NO SSO ✗   │
└─────────────┘

Line by line: the user goes straight to the origin, skipping the CDN, and the origin performs no SSO check at all (the cross). That is the entire bug.

Step 12: root cause

The root cause was not a broken SSO implementation. SSO worked correctly at the CDN. The problem was architectural: authentication was enforced only at the edge, meaning the outermost layer of the network, while the origin assumed every request had already passed through that edge.

Three conditions existed together:

Text
Publicly reachable origin
        +
Authentication only at CDN
        +
Origin trusts Host header

Line by line: the origin could be reached from the internet. The only login check lived at the CDN. The origin decided which site to serve purely from the Host header, without verifying where the request came from. Together they produce:

Text
Direct-to-origin authentication bypass

Line by line: going straight to the origin lets you skip authentication.

Step 13: why hiding the origin is not enough

A natural reaction is: "just do not publish the origin hostname". That helps reduce exposure, but it is not a reliable security boundary. Origin addresses can become known through:

Text
DNS history
Passive DNS
Old records
Certificates
Configuration leaks
Archived infrastructure
Related hostnames
Misconfigured DNS

Line by line: DNS history and passive DNS are records of what names pointed where over time, often collected by third parties. Old records may still be visible. Certificates issued for a name can reveal it. Configuration files can leak. Archived infrastructure pages and related hostnames can hint at it. Misconfigured DNS can expose it. So the secure assumption should always be: eventually somebody may learn the origin address, and security should still hold when they do.

Step 14: what was actually accessible?

The researcher kept impact testing limited. Without authentication, direct-origin access confirmed access to:

  • the dev microsite homepage;
  • published pages;
  • RSS/feed endpoints;
  • static content;
  • media served by the dev environment.

Line by line: RSS/feed endpoints are the machine-readable versions of a site's content that feed readers use. Static content means files like images, stylesheets and scripts that are served as-is. Media means images, audio or video. All of this was reachable without logging in, which proved that the SSO-protected application could be accessed externally without SSO.

Step 15: what was not accessible?

This is equally important in a good bug report. Testing did not demonstrate access to:

  • authenticated admin functionality;
  • protected REST API data;
  • XML-RPC;
  • backups;
  • sensitive AJAX operations;
  • credentials;
  • personally identifiable information;
  • unpublished drafts;
  • remote code execution;
  • SSRF.

Line by line: an API is a way for programs to talk to each other; REST is a common style of web API. XML-RPC is an older protocol for remote procedure calls. AJAX operations are background requests a web page makes without reloading. Personally identifiable information means data that identifies a real person. Remote code execution means making the server run your code. SSRF, server-side request forgery, means tricking a server into making requests on your behalf. None of these were shown.

Why list them? Because a good report separates what was proved from what might theoretically exist. That makes the report more trustworthy.

Step 16: the impact

The demonstrated impact was:

An unauthenticated external user could bypass the corporate SSO gate and access a development environment that was intended to require authentication.

Even if some of the content happened to be similar to public production content, the security boundary was still broken. The intended rule was:

Text
Protected dev site
      ↓
Staff authentication required

Line by line: only signed-in staff should get in. The actual rule became:

Text
Protected dev site
      ↓
Know/reach origin
      ↓
No authentication required

Line by line: anyone who knew or could reach the origin got in with no login. That is an access-control failure: the system failed to control who is allowed access.

Step 17: do not exaggerate the impact

It would be easy to write "critical internal environment compromise". But that was not what was demonstrated. No admin access was obtained, no credentials were exposed and no code execution was achieved. The strongest accurate claim was:

The CDN SSO boundary protecting the dev environment could be completely bypassed through direct-origin access.

That is still meaningful. Good bug bounty writing does not need dramatic language; the architecture and evidence should speak for themselves.

Step 18: why this pattern matters for bug hunters

This vulnerability is useful because the pattern appears in many environments:

Text
Dev sites
QA environments
Staging websites
Internal tools
WordPress staging estates
Admin interfaces
Employee applications
Partner portals
Preview deployments

Line by line: staging is a near-final copy of a site used for last checks. WordPress is a popular website platform, and a staging estate is a set of staging copies of WordPress sites. Preview deployments are temporary copies created for review. Any time you see:

Text
Application
   ↓
CDN
   ↓
Authentication rule

Line by line: an application behind a CDN, with the login rule at the CDN. Ask: can I reach whatever is behind the CDN directly? That question can expose an entirely different attack surface, meaning the set of ways an attacker could try to get in.

Step 19: do not only test the application, test the route to it

Most web testing focuses on:

Text
Parameters
Cookies
APIs
Authentication
Authorization
Inputs

Line by line: parameters are the values in a URL or form. Cookies are the small stored pieces of data mentioned earlier. APIs are program-to-program interfaces. Authentication is proving who you are; authorization is what you are allowed to do once identified. Inputs are the data a user types in. But sometimes the bug is in the network path:

Text
User
 ↓
DNS
 ↓
CDN
 ↓
WAF
 ↓
Load balancer
 ↓
Reverse proxy
 ↓
Application

Line by line: a reverse proxy is a server that sits in front of others and forwards requests. Security controls may exist at only one of these layers. Then ask: can I reach a later layer without passing through the earlier security control? That is exactly what happened here.

Step 20: edge security versus origin security

A useful mental model is:

Edge control

Text
Internet
   ↓
CDN
   ↓
"Are you authenticated?"

Line by line: the CDN asks whether the visitor is logged in.

Origin control

Text
Request reaches server
        ↓
"Did this request come through our trusted edge?"
        ↓
"Is the user authenticated?"

Line by line: the origin asks two questions: did this come through our trusted edge, and is the user logged in? If only the first kind of control exists, direct-origin connectivity becomes dangerous.

Step 21: how should this be fixed?

There are several layers.

Fix 1: restrict who can reach the origin

The most important network fix is:

Text
Internet
   ✗
   │
   │ blocked
   ▼
Origin

Line by line: direct internet access to the origin is blocked. While allowing:

Text
CDN
 ↓
Origin

Line by line: the CDN can still reach the origin. For example, security groups or firewalls can restrict origin access to trusted CDN infrastructure where practical. A security group is a cloud firewall rule set. Now even if someone discovers the origin address:

Text
Attacker
   ↓
Origin
   ↓
Blocked

Line by line: the attacker's connection is refused.

Step 22: Fix 2: do not rely only on edge authentication

The origin should not blindly assume:

Text
"If I received the request, the CDN must have authenticated it."

Line by line: receiving a request does not prove the CDN checked it. Critical authorization should ideally still be validated at an appropriate trusted application or origin layer. Think of CDN authentication as one layer, not the only layer.

Step 23: Fix 3: make the origin verify the edge

Another approach is requiring proof that the request really came through trusted edge infrastructure. Examples can include architectures using:

Text
mTLS

Line by line: mTLS, mutual TLS, means both sides of an encrypted connection present certificates, so each proves its identity to the other.

Text
CDN-generated/verifiable tokens
signed origin requests
secret or cryptographically protected origin headers

Line by line: a token is a piece of data proving something, here that the request came from the CDN. Signed requests carry a cryptographic signature the origin can check. Secret headers are extra headers only the CDN knows. The exact design depends on the CDN and infrastructure. The principle is simple: the origin should have a reliable way to distinguish trusted CDN traffic from arbitrary internet traffic.

Step 24: a secret header alone needs care

A static header may look like:

Text
X-Origin-Secret: some-secret-value

Line by line: a header named X-Origin-Secret carrying a fixed value. The CDN adds it before forwarding traffic. That is better than checking only Host, but a static secret must itself remain protected and be rotated appropriately, meaning changed regularly. Cryptographically verifiable or network-enforced approaches can provide stronger guarantees depending on the architecture. The important lesson is not one specific header; it is that the origin needs proof of how the request arrived.

Step 25: Fix 4: reduce origin exposure

Removing unnecessary DNS records for backend infrastructure can make discovery harder. For example, avoid publicly exposing names such as:

Text
origin.example.com
backend.example.com
dev-proxy.example.com
alb.example.com

Line by line: these are example names that hint at backend infrastructure. When they are not needed publicly, they should not be published. But remember: origin secrecy should reduce exposure, not provide authentication. Even if the IP becomes public tomorrow, the security model should remain safe.

Step 26: Fix 5: monitor direct-origin traffic

A protected site's origin receiving requests directly from unknown internet clients can itself be a useful detection signal. Monitor for things like:

Text
Protected Host header
        +
Source not expected CDN infrastructure

Line by line: a request claiming to be for the protected site, coming from somewhere that is not the CDN. That could indicate configuration mistakes, scanners, bypass attempts, old DNS records or accidentally exposed origins.

Step 27: a simple methodology for finding this class of bug

Here is the reusable hunting process.

Step 1: find something protected at the edge

Look for applications protected by:

Text
SSO
CDN Access
Zero Trust
WAF authentication
edge workers
login redirects

Line by line: Zero Trust is a security model where nothing is trusted by default and every request is verified. Edge workers are small programs that run at the CDN edge. Login redirects are the 302s to a login page.

Step 2: establish normal behaviour

Without authentication:

Text
Request application
      ↓
302 / 401 / 403
      ↓
authentication required

Line by line: 401 means unauthorised (not logged in), 403 means forbidden (logged in but not allowed). Save this as your baseline.

Step 3: understand the infrastructure

Ask:

Text
What sits behind the CDN?
Text
Load balancer?
Reverse proxy?
Cloud origin?
Another hostname?

Line by line: identify what is behind the CDN and whether another hostname points at it.

Step 4: determine whether the origin is public

The key question is: can arbitrary internet users establish a connection to the backend? If not, good. If yes, keep investigating within program scope, meaning the rules of the bug bounty programme you are testing under.

Step 5: preserve the original hostname

Remember that the backend may use:

Text
Host: protected.example.com

Line by line: the backend may pick the site from the Host header. A request to an IP address alone may return:

Text
Default backend
404
Different application

Line by line: 404 means not found. That does not necessarily mean the protected application is unreachable; it may just mean you asked for the wrong name.

Step 6: compare edge vs origin behaviour

You want a simple comparison:

Text
EDGE
Text
Unauthenticated
    ↓
SSO redirect

Line by line: at the edge, an unauthenticated visitor is redirected to SSO.

versus:

Text
ORIGIN
Text
Unauthenticated
    ↓
Application content

Line by line: at the origin, the same visitor gets the application content. That is extremely easy for a triager to understand. A triager is the person at the bug bounty platform who first reviews your report.

Step 7: prove minimal impact

Demonstrate only what is necessary. For example:

Text
Protected homepage

Line by line: the protected homepage alone may already prove the authentication boundary failed. There is no need to aggressively explore sensitive administrative functionality just to make the report look stronger.

Step 28: the most important question

Whenever authentication is implemented by infrastructure in front of an application, ask: what prevents me from going around that infrastructure? Examples:

Text
CDN
WAF
reverse proxy
API gateway
identity-aware proxy
load balancer
edge worker

Line by line: an API gateway is a front door for APIs. An identity-aware proxy is a proxy that checks who you are before forwarding. If the security control lives here:

Text
Internet
   ↓
[ SECURITY CONTROL ]
   ↓
Application

Line by line: the control sits between the internet and the application. Look for whether this is possible:

Text
Internet
   ─────────────────→ Application

Line by line: a path that skips the control entirely. Sometimes the easiest way to bypass a security control is not to break it, but to avoid it.

Step 29: a real-world analogy

Imagine a private office. The front entrance has:

Text
Security guard
Employee badge check
Visitor registration

Line by line: three checks at the front door. Nobody without authorization gets through. Perfect. But behind the building is another door. That door:

Text
has no guard
has no badge reader
is reachable from the street

Line by line: no checks at all, and anyone can walk up to it. The company's front-door security is not broken. The building's security design is broken. That is exactly how direct-to-origin authentication bypass works.

Step 30: the larger lesson

The bug was not:

Text
"SSO doesn't work."

Line by line: SSO worked. It was not:

Text
"The CDN is broken."

Line by line: the CDN behaved correctly. The vulnerability was:

Text
SSO existed only on one network path.

Line by line: there was a second path with no login check. The system assumed everyone would follow:

Text
User
 ↓
CDN
 ↓
SSO
 ↓
Origin

Line by line: the intended route. But the infrastructure also allowed:

Text
User
 ↓
Origin

Line by line: a route with no equivalent authentication boundary. That is why architecture matters in bug bounty. Sometimes the interesting question is not "can I break this security control?" but "do I need to pass through this security control at all?"

Final takeaway

A CDN can have perfectly configured SSO and still fail to protect an application. A WAF can be configured correctly. An edge access rule can work exactly as designed. None of that matters if attackers can simply connect to the origin behind them.

The rule to remember is: if authentication exists only at the CDN edge, the origin must not be directly usable by untrusted internet clients.

And for bug bounty hunters: when a protected site sits behind a CDN, do not only test the gate. Understand whether there is another route to the application that never passes through the gate.

Glossary

  • 302: an HTTP status code meaning a redirect; the server tells the client to go to another address.
  • 401: an HTTP status code meaning the request needs authentication.
  • 403: an HTTP status code meaning the server understood the request but refuses to allow it.
  • 404: an HTTP status code meaning the requested resource was not found.
  • 200 OK: an HTTP status code meaning the request succeeded and the content is returned.
  • Access control: the rules deciding who is allowed to access what.
  • AJAX: background requests a web page makes without reloading the whole page.
  • ALB (Application Load Balancer): an AWS service that receives requests and spreads them across several backend servers.
  • API: a defined way for programs to talk to each other.
  • API gateway: a front door that manages and routes traffic to APIs.
  • Authentication: proving who you are, usually by logging in.
  • Authorization: what an identified user is allowed to do.
  • AWS: Amazon Web Services, a large cloud computing provider.
  • Baseline: the recorded normal behaviour of a system, used for comparison.
  • Bot protection: controls that try to tell human visitors from automated programs.
  • Bypass: going around a security control instead of breaking it.
  • CDN (content delivery network): a network of servers that caches and delivers websites close to visitors, and can also enforce security checks.
  • Cookie: a small piece of data a server asks a browser to store and send back on later requests.
  • Credentials: data used to prove identity, such as usernames and passwords.
  • curl: a command-line tool for making HTTP requests and showing raw responses.
  • DNS (domain name system): the internet's address book, translating names into numeric addresses.
  • DNS history / passive DNS: records of what domain names pointed to over time, often collected by third parties.
  • Edge: the outermost layer of a network, closest to the internet, such as a CDN.
  • Edge worker: a small program that runs at the CDN edge.
  • Header: a labelled line of extra information sent with an HTTP request or response.
  • Host header: the header that names which website the request is for.
  • HTTP: the protocol browsers and servers use to exchange requests and responses.
  • HTTPS: HTTP protected by TLS encryption.
  • Identity-aware proxy: a proxy that checks a user's identity before forwarding requests.
  • Load balancer: a server that distributes incoming requests across several backend servers.
  • Microsite: a small, focused website, often part of a larger one.
  • mTLS (mutual TLS): an encrypted connection where both sides present certificates to prove their identity.
  • Origin: the real backend server or servers that hold and serve a website.
  • Parameter: a value passed in a URL or form.
  • Personally identifiable information (PII): data that identifies a real person.
  • QA (quality assurance): the testing stage of software development.
  • Rate limiting: capping how many requests a client can make in a period.
  • Redirect: a response telling the client to go to a different address.
  • Remote code execution (RCE): making a server run code supplied by an attacker.
  • REST: a common style of web API.
  • Reverse proxy: a server that sits in front of other servers and forwards requests to them.
  • RSS/feed endpoint: a machine-readable version of a site's content for feed readers.
  • Security group: a cloud firewall rule set controlling which traffic can reach a resource.
  • SNI (Server Name Indication): the part of a TLS handshake that tells the server which hostname the client wants.
  • SSO (single sign-on): one central login shared by many systems.
  • SSRF (server-side request forgery): tricking a server into making requests on the attacker's behalf.
  • Staging: a near-final copy of a site used for last checks before release.
  • Static content: files served as-is, such as images, stylesheets and scripts.
  • TCP: the basic connection protocol used by HTTP and HTTPS.
  • TLS: the encryption layer that makes HTTPS secure.
  • Token: a piece of data that proves something, such as that a request came from a trusted source.
  • Triager: the person at a bug bounty platform who first reviews a submitted report.
  • Virtual host: one of several websites configured on the same server.
  • WAF (web application firewall): a filter that inspects requests and blocks malicious ones.
  • XML-RPC: an older protocol for remote procedure calls.
  • Zero Trust: a security model where nothing is trusted by default and every request is verified.

More by redhunter01

View all

24 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.