The Dangling CDN Record That Unlocked SSO
An Uber hostname still had a DNS alias pointing at a CloudFront distribution that nobody owned, so the researcher could claim that CDN slot and serve content on an Uber hostname. Because Uber's cookie-sharing single sign-on treated sibling hostnames as one trust domain, this could escalate into an authentication bypass reaching SSO-protected properties.
Published on masimshahzad.medium.com
Bug Bounty
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.
Context
Uber had moved toward a single sign-on system that shared session cookies across sibling hostnames. In that model, a cookie set on the parent domain is sent by the browser to every hostname inside that domain, so the sign-on session is only as safe as the weakest hostname that shares the cookie scope.
Separately, Uber ran a static-content hostname that still carried a DNS alias to Amazon CloudFront, while the matching CloudFront distribution was no longer registered. The two facts combined into an authentication bypass of Uber's SSO, reaching properties that SSO protected, including rider, partner, developer and vault-style applications. The research was done by Arne Swinnen and published on 25 June 2017 as "Authentication bypass on Uber's Single Sign-On via subdomain takeover".

AI-generated illustration.
Setup
The disclosure does not describe accounts, roles, tooling or versions. What it does establish as preconditions:
- A hostname under Uber's domain whose DNS alias pointed at a CloudFront distribution that nobody owned any more.
- An SSO design that issued session cookies on the parent domain, so sibling hostnames could see them.
- Two countermeasures already in place on Uber's side: a shortened lifetime for the shared cookies, and a login anti-forgery check.
The researcher submitted the report on 7 April 2017.
Finding it
A leftover DNS alias is easy to file as housekeeping. Here it was not housekeeping: the static-content hostname still resolved, via its alias, to a CloudFront distribution that was no longer registered. Because the distribution slot was unclaimed, the researcher could claim it and serve content on an Uber hostname.
That alone would be a subdomain takeover. What made it an SSO problem is the cookie scope: parent-domain cookies are visible to sibling hosts, so an attacker-controlled hostname inside that cookie scope can observe SSO material the browser sends there. The neglected static host was not just a cosmetic leftover; it sat inside the trust domain of the sign-on system.
Exploitation
Step 1: Claim the unused CDN slot
The dangling pointer let the researcher claim the unused CloudFront distribution and serve content on an Uber hostname. The disclosure does not reproduce the claim procedure or the requests used.
Step 2: Receive SSO material on the attacker-controlled hostname
With content served from a hostname inside the parent-domain cookie scope, the browser sends the shared SSO cookies to that host. The attacker-controlled hostname can therefore observe the SSO material the browser transmits there.
Step 3: Relay the sign-on
Uber had tried to shrink the lifetime of the shared cookies and had added a login anti-forgery check. Those countermeasures did not stop a relayed sign-on once a sibling hostname was attacker-controlled. The article deliberately does not reconstruct that relay.
Step 4: Reach SSO-protected properties
The result was described as an authentication bypass of Uber's SSO, reaching the properties SSO protected: rider, partner, developer and vault-style applications. Already-authenticated sessions were in scope, not merely visitors of the neglected static hostname.
Root cause
The design mistake is cookie-sharing SSO combined with a trust domain that included sibling hostnames. A parent-domain cookie is sent to every sibling hostname, so the sign-on inherits the weakest sibling. A dangling cloud alias turned one of those siblings into an attacker-controlled host.
The existing defences did not stop it. Shortening the cookie lifetime and adding a login anti-forgery check address the window and the login step, but neither removes the fact that an attacker-controlled sibling hostname can observe SSO material and relay a sign-on. The disclosure does not go further into the mechanism, and the relay itself is intentionally omitted.
Impact
An attacker could bypass Uber's SSO and reach properties that SSO protected, including rider, partner, developer and vault-style applications. The scope included already-authenticated sessions, not only visitors of the neglected static hostname. The researcher noted residual risk when attacker and victim share an external address.
Uber removed the dangling record and paid $5,000 for the combined findings, per the researcher. No severity or CVSS score is reported, and no CVE is stated in the disclosure.
Fix
What Uber actually did, per the disclosure:
- Removed the DNS alias on 7 June 2017, after the researcher noted he still controlled the hostname.
- Paid a total of $5,000.
- Confirmed an extra binding check on session use on 7 July 2017.
The researcher recommended returning to OAuth-style federation. The following remediation points are the article author's own analysis, not part of the original disclosure.
- Treat unclaimed cloud aliases as production incidents. Continuously inventory canonical names that point at CDNs, load balancers and SaaS vendors, and fail a release when the provider no longer has a matching owned resource.
def assert_alias_owned(hostname, provider): target = dns.cname(hostname) if target is None: return if not provider.distribution_claims(hostname): raise DanglingAlias(hostname)def issue_session(response, token): response.set_cookie( "session", token, secure=True, httponly=True, samesite="Lax", path="/", )
- Stop sharing session cookies with every sibling. Issue host-only cookies, or the
__Host-prefix, instead of parent-domain cookies. A marketing hostname should never observe a sign-on cookie. - Prefer token-based SSO with exact redirect allowlists.
- Scope review to the real trust domain. Every hostname that can see parent-domain cookies belongs in security testing and in the bug-bounty policy, including leftovers from old campaigns.
- Treat address binding as extra depth, not the fix.
Variants to test
- Dangling CNAME to a CDN or SaaS provider. Enumerate canonical names under the target domain and check whether the provider still has a matching owned resource. A positive result is a hostname that resolves to a provider endpoint you can claim and serve content from.
- Parent-domain cookie scope. Inspect which cookies are set on the registrable domain rather than host-only. A positive result is a sign-on or session cookie visible to a sibling hostname you control or can take over.
- Sibling hostnames outside the security programme. Look for leftovers from old campaigns, marketing hosts and static-content hosts that share the cookie scope but are not covered by testing or bounty policy. A positive result is a hostname in the trust domain with no owner and no monitoring.
- Countermeasure bypass. Where the target shortens cookie lifetime or adds a login anti-forgery check, test whether a relayed sign-on still works from an attacker-controlled sibling. A positive result is a session established on the victim's behalf despite those checks.
- Address-binding limits. Where session use is bound to an address, consider the case where attacker and victim share an external address. A positive result is a binding check that does not distinguish the two.
What happened, in plain words
Imagine a large company with many websites: one for booking rides, one for drivers who want to earn money, one for developers who build on the company's tools, and one for storing sensitive documents. To save people from logging in again and again, the company built a single sign-on system. You log in once, and every one of those websites recognises you.
To make that work, the sign-on system leaves a small piece of information in your browser, called a cookie. A cookie is a tiny label that a website asks your browser to keep and to show again on later visits, a bit like a cloakroom ticket: you hand it over and get your coat back without proving who you are all over again. The problem was where that ticket was valid. The company's cookie was set for the whole main domain, so the browser would show it to every website that lived under that domain, not just the one that issued it.
Separately, one of the company's older website names, used only for serving static files such as images, still had a forwarding entry in the internet's address book pointing at a content delivery service. A content delivery network, or CDN, is a service that stores copies of files on servers around the world so pages load quickly. The company had stopped using that particular CDN slot, but the forwarding entry was never cleaned up. Anyone who noticed could take over the empty slot and start serving their own content under the company's own website name.
Put those two facts together and you get a serious problem. The researcher, Arne Swinnen, could take over the forgotten website name, and because that name sat inside the same cookie scope as the sign-on system, the browser would send SSO material there. From there the sign-on could be relayed, meaning passed along to the real service, and the result was described as an authentication bypass of Uber's SSO.
Uber removed the dangling record and paid $5,000 for the combined findings, according to the researcher. The report was submitted on 7 April 2017.

AI-generated illustration.
A note on authorship before we go further: the article this is based on was drafted with AI assistance as an analytical case study of a public disclosure, and it is not the author's own discovery. The research belongs to Arne Swinnen, who published it on 25 June 2017 under the title "Authentication bypass on Uber's Single Sign-On via subdomain takeover".
The pieces you need to know first
Before walking through the story, here are the ideas it leans on, explained from scratch.
Hostname and domain. A hostname is one specific name on the internet, like help.example.com. A domain is the shared part at the end, like example.com. Everything that ends in the same domain is called a sibling: help.example.com and shop.example.com are siblings under example.com.
DNS and CNAME records. DNS is the internet's address book. It translates names people type into the addresses computers use. A CNAME record is a forwarding entry in that book: it says "this name is really just another name, go look that one up instead". Companies use CNAMEs to point their own names at services run by other companies, such as a CDN.
CDN and distribution. A content delivery network is a paid service that hosts copies of your files close to your users. Each setup you create inside it is often called a distribution. You register a distribution, the CDN gives you an address for it, and your DNS points at that address.
Subdomain takeover. If your DNS still points at a CDN distribution that you have deleted, the pointer dangles. Someone else can register that same distribution name at the CDN, and now your website name serves their content. That is a subdomain takeover: an attacker effectively borrows your name. The everyday comparison is a mail-forwarding instruction that still sends letters to an old office. If a stranger moves into that office, your post now lands on their desk.
Cookie and cookie scope. A cookie is a small piece of data a site stores in your browser and gets back on later requests. The scope is the set of names the browser is allowed to send it to. A cookie set on the parent domain, example.com, is sent to every sibling hostname under it. A host-only cookie is sent only to the exact hostname that set it. Think of a parent-domain cookie as a staff pass valid in every building on a campus, and a host-only cookie as a key that opens one door.
Session and session cookie. A session is the state of being logged in. The session cookie is the ticket that proves it. Whoever holds a valid session cookie is treated as the logged-in user, which is why these cookies are valuable to attackers.
SSO, single sign-on. One login that works across many separate applications. It is convenient, and it concentrates risk: if the shared ticket leaks, it leaks for everything at once.
Authentication bypass. Getting in without legitimately proving who you are. Here it means reaching accounts and applications without knowing the victim's password.
Anti-forgery check. A defence where the login step requires an extra value that only the real login page could have produced, so an attacker cannot simply replay a login request from elsewhere. It protects the login step itself.
Relay. Passing something along. In this story, a relayed sign-on means the attacker's server forwards the sign-on exchange to the real service so that the service believes the victim is logging in.
Address binding. Tying a session to the network address it was created from, so a stolen session is less useful from a different address.
CWE and CVE. CWE is a catalogue of weakness types; CVE is a catalogue of specific publicly tracked vulnerabilities. The article maps the issue to CWE-283 and CWE-565 as its own analysis, and states that no CVE is given in the disclosure.
The setup
The disclosure does not describe accounts, roles, tooling or versions. What it does establish as preconditions:
- A hostname under Uber's domain whose DNS alias pointed at a CloudFront distribution that nobody owned any more. CloudFront is Amazon's CDN.
- An SSO design that issued session cookies on the parent domain, so sibling hostnames could see them.
- Two countermeasures already in place on Uber's side: a shortened lifetime for the shared cookies, and a login anti-forgery check.
The researcher submitted the report on 7 April 2017.
Why these three matter: the first gives an attacker a foothold under the company's name. The second means that foothold sits inside the trust boundary of the login system. The third tells us Uber had already added countermeasures, which makes the outcome more interesting, because those defences were not enough.
Finding it
A leftover DNS alias is easy to file as housekeeping. Here it was not housekeeping: the static-content hostname still resolved, via its alias, to a CloudFront distribution that was no longer registered. Because the distribution slot was unclaimed, the researcher could claim it and serve content on an Uber hostname.
That alone would be a subdomain takeover. What made it an SSO problem is the cookie scope: parent-domain cookies are visible to sibling hosts, so an attacker-controlled hostname inside that cookie scope can observe SSO material the browser sends there. The neglected static host was not just a cosmetic leftover; it sat inside the trust domain of the sign-on system.
In plain terms: the forgotten name was not a dead end. It was a door into the same building where the login tickets were honoured.
Exploitation
Step 1: Claim the unused CDN slot
The dangling pointer let the researcher claim the unused CloudFront distribution and serve content on an Uber hostname. The disclosure does not reproduce the claim procedure or the requests used.
Why this step comes first: without control of the hostname, there is nothing to receive cookies with. Claiming the slot is what turns a stale DNS entry into an attacker-controlled website under the company's own name.
Step 2: Receive SSO material on the attacker-controlled hostname
With content served from a hostname inside the parent-domain cookie scope, the browser sends the shared SSO cookies to that host. The attacker-controlled hostname can therefore observe the SSO material the browser transmits there.
Why this works: the browser is not being tricked. It is following the rules exactly. The cookie was marked for the parent domain, the hostname is inside that domain, so the browser attaches the cookie. The attacker simply owns a hostname the rules include.
Step 3: Relay the sign-on
Uber had tried to shrink the lifetime of the shared cookies and had added a login anti-forgery check. Those countermeasures did not stop a relayed sign-on once a sibling hostname was attacker-controlled. The article deliberately does not reconstruct that relay.
Why the countermeasures fell short: a shorter cookie lifetime reduces the window in which a stolen cookie is useful, and an anti-forgery check protects the login form. Neither removes the underlying fact that an attacker-controlled sibling hostname can see the sign-on material and pass the exchange along. The disclosure does not go further into the mechanism, and the relay itself is intentionally omitted.
Step 4: Reach SSO-protected properties
The result was described as an authentication bypass of Uber's SSO, reaching the properties SSO protected: rider, partner, developer and vault-style applications. Already-authenticated sessions were in scope, not merely visitors of the neglected static hostname.
Why that last sentence matters: this was not only about people who happened to visit the forgotten site. People who were already logged in elsewhere were exposed, not only visitors of the neglected static hostname.
Root cause
The design mistake is cookie-sharing SSO combined with a trust domain that included hostnames nobody was watching. A parent-domain cookie is sent to every sibling hostname, so the sign-on inherits the weakest sibling. A dangling cloud alias turned one of those siblings into an attacker-controlled host.
The existing defences did not stop it. Shortening the cookie lifetime and adding a login anti-forgery check address the window and the login step, but neither removes the fact that an attacker-controlled sibling hostname can observe SSO material and relay a sign-on.
The everyday comparison: a company issues one master key that opens every office in its building. That is fine until one office is rented out to a stranger and nobody updates the lock list. The master key was never stolen; the building simply included a door the company no longer controlled.
Impact
An attacker could bypass Uber's SSO and reach properties that SSO protected, including rider, partner, developer and vault-style applications. The scope included already-authenticated sessions, not only visitors of the neglected static hostname. The researcher noted residual risk in the later address-binding check when attacker and victim share an external address.
Uber removed the dangling record and paid $5,000 for the combined findings, per the researcher. No severity or CVSS score is reported, and no CVE is stated in the disclosure.
Fix
What Uber actually did, per the disclosure:
- Removed the DNS alias on 7 June 2017, after the researcher noted he still controlled the hostname.
- Paid a total of $5,000.
- Confirmed an extra binding check on session use on 7 July 2017.
The researcher recommended returning to OAuth-style federation. OAuth is a standard way for one service to grant another limited access on your behalf, using tokens with defined scope instead of a shared cookie that every sibling can see.
The following remediation points are the article author's own analysis, not part of the original disclosure.
- Treat unclaimed cloud aliases as production incidents. Continuously inventory canonical names that point at CDNs, load balancers and SaaS vendors, and fail a release when the provider no longer has a matching owned resource.
def assert_alias_owned(hostname, provider): target = dns.cname(hostname) if target is None: return if not provider.distribution_claims(hostname): raise DanglingAlias(hostname)def issue_session(response, token): response.set_cookie( "session", token, secure=True, httponly=True, samesite="Lax", path="/", )
Line by line, in plain words:
def assert_alias_owned(hostname, provider):starts a check that takes a website name and a cloud provider to ask.target = dns.cname(hostname)looks up the forwarding entry for that name, the same way a browser would.if target is None:andreturnmean: if there is no forwarding entry, there is nothing to check, so stop here.if not provider.distribution_claims(hostname):asks the provider whether anyone still owns the resource this name points at.raise DanglingAlias(hostname)stops the process with an error naming the offending hostname, so a deployment cannot go ahead with a dangling pointer.def issue_session(response, token):starts the part that hands a logged-in user their session cookie.response.set_cookie(begins setting that cookie on the outgoing response."session", token,names the cookie and gives it the session value.secure=True, httponly=True, samesite="Lax",are three safety settings: send it only over encrypted connections, hide it from page scripts, and do not attach it to cross-site requests except in limited cases.path="/",makes the cookie valid for the whole site it was set on.
-
Stop sharing session cookies with every sibling. Issue host-only cookies, or the
__Host-prefix, instead of parent-domain cookies. A marketing hostname should never observe a sign-on cookie. The__Host-prefix is a naming convention browsers enforce, which forces a cookie to be host-only, secure and set from the root path. -
Prefer token-based SSO with exact redirect allowlists. A token is a piece of data issued for a specific purpose and audience, and an allowlist is a fixed list of addresses that are permitted, so nothing outside the list is accepted.
-
Scope review to the real trust domain. Every hostname that can see parent-domain cookies belongs in security testing and in the bug-bounty policy, including leftovers from old campaigns.
-
Treat address binding as extra depth, not the fix. The researcher noted residual risk when attacker and victim share an external address.
Variants to test
If you are learning to look for this class of problem, these are the angles the write-up lists. Each one names what a positive result looks like, so you know when you have found something.
- Dangling CNAME to a CDN or SaaS provider. Enumerate canonical names under the target domain and check whether the provider still has a matching owned resource. A positive result is a hostname that resolves to a provider endpoint you can claim and serve content from.
- Parent-domain cookie scope. Inspect which cookies are set on the registrable domain rather than host-only. A positive result is a sign-on or session cookie visible to a sibling hostname you control or can take over.
- Sibling hostnames outside the security programme. Look for leftovers from old campaigns, marketing hosts and static-content hosts that share the cookie scope but are not covered by testing or bounty policy. A positive result is a hostname in the trust domain with no owner and no monitoring.
- Countermeasure bypass. Where the target shortens cookie lifetime or adds a login anti-forgery check, test whether a relayed sign-on still works from an attacker-controlled sibling. A positive result is a session established on the victim's behalf despite those checks.
- Address-binding limits. Where session use is bound to an address, consider the case where attacker and victim share an external address. A positive result is a binding check that does not distinguish the two.
Key takeaways
Dangling cloud aliases are takeover primitives, not leftover DNS trivia. A takeover primitive is a small weakness that, on its own, may look minor, but becomes serious when combined with something else.
Cookie-sharing SSO inherits the weakest sibling hostname in the parent domain. The security of the login system is the security of the least-watched name inside its scope.
Ownership checks belong in deploy automation, not in a yearly spreadsheet. A check that runs on every release catches a dangling pointer the day it appears; a spreadsheet catches it a year later, if at all.
Glossary
- Address binding: tying a session to the network address it was created from, so a stolen session is less useful from elsewhere.
- Anti-forgery check: a defence that requires an extra value only the real login page could have produced, so a login request cannot simply be replayed.
- Authentication bypass: getting into an account or application without legitimately proving who you are.
- Canonical name (CNAME): a DNS record that says one name is an alias for another name.
- CDN (content delivery network): a service that stores copies of files on servers around the world so pages load quickly.
- CloudFront: Amazon's content delivery network service.
- Cookie: a small piece of data a website stores in your browser and gets back on later requests.
- Cookie scope: the set of hostnames the browser is allowed to send a given cookie to.
- CVE: a catalogue entry for a specific publicly tracked vulnerability.
- CWE: a catalogue of weakness types, used to classify classes of bug.
- Distribution: a setup you create inside a CDN, which gets its own address for your files.
- DNS: the internet's address book, translating names into the addresses computers use.
- Domain: the shared part of a name, such as
example.com. - Dangling record: a DNS entry that points at a resource nobody owns any more.
- Host-only cookie: a cookie sent only to the exact hostname that set it, not to siblings.
- Hostname: one specific name on the internet, such as
help.example.com. __Host-prefix: a cookie naming convention browsers enforce, forcing the cookie to be host-only, secure and set from the root path.- OAuth: a standard way for one service to grant another limited access on your behalf, using scoped tokens.
- Parent-domain cookie: a cookie set on the shared domain, sent by the browser to every sibling hostname under it.
- Relay: passing an exchange along to the real service so it appears to come from the victim.
- Session: the state of being logged in.
- Session cookie: the ticket that proves a session is valid.
- Sibling hostname: another hostname under the same parent domain.
- Single sign-on (SSO): one login that works across many separate applications.
- Subdomain takeover: registering a cloud resource that a target's DNS still points at, so your content is served under their name.
- Token: a piece of data issued for a specific purpose and audience, used instead of a shared cookie.
- Trust domain: the set of names and systems that are treated as belonging to the same security boundary.