Okta SSO Bypass via Client-Side Login Restriction on Shared Session Store
A production application restricted to corporate Okta single sign-on shared its session store with a development instance on a vendor domain that offered Google sign-in. Because the server never checked which authentication method created a session, any Google account holder could sign in on the dev domain and reuse that session on production, bypassing the SSO restriction.
Published on abdelnasserr.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
The target was an internal trip management tool used by a European low-cost airline. The application is built with Nuxt.js and was found deployed on two domains: a production instance at redacted.com, which enforces Okta corporate SSO, and a development instance at dev.redacted-vendor.com, a vendor's domain, which exposes a "Sign in with Google" button.
The production domain is meant to be restricted to corporate @redacted-corp.com credentials through Okta SSO. The Google sign-in option is hidden there, but the hiding is done in client-side code only. Both domains share the same session database, which is what turns the hidden button into an authentication bypass.
The researcher found the same issue on two different platforms belonging to the same company. Both were accepted as medium severity, since no sensitive data was exposed behind the bypass.
Setup
No special accounts, tools or versions are described. The preconditions that matter are architectural:
- The same Nuxt.js application is served from a production domain and from a vendor development domain.
- Production is supposed to accept only Okta SSO with corporate credentials.
- The development domain offers Google sign-in.
- Both domains use one shared session store.
Any Google account is sufficient for the attacker side of the flow.
Finding it
While poking at the trip management tool, the researcher noticed that the same Nuxt.js application was deployed on two domains. The production instance enforces Okta corporate SSO, but the development instance at the vendor's domain shows a "Sign in with Google" button. The restriction on production is purely client-side, and both domains share the same session database.
That combination is what makes the finding interesting: a session created via Google on the development domain is valid on production, so Okta SSO can be bypassed entirely.
Exploitation
Step 1: Confirm how the button is hidden
On production, the Google sign-in button is hidden using a client-side Nuxt config flag:
window.__NUXT__.config = { public: { googleLoginDisabledHosts: "redacted.com" }}
This is a public config value exposed to the browser, used to hide the Google login option on production. Nothing on the server enforces the same rule, so the flag only affects rendering.
Step 2: Note the missing host check on the callback
The server-side /api/auth/callback/google endpoint does not check the requesting hostname. It processes Google OAuth callbacks from any domain running the application. Because the development domain runs the same app, its Google OAuth flow completes normally and produces a session in the shared store.
Step 3: Create a session on the development domain
Visit dev.redacted-vendor.com and sign in with any Google account. This produces a valid session in the shared session store, tied to a Google identity rather than to Okta.
Step 4: Copy the session cookie
Copy the __Secure-better-auth.session_token cookie value from the development domain.
Step 5: Replay the cookie on production
Set the same cookie on redacted.com and request the session endpoint:
GET https://redacted.com/api/auth/get-session
The endpoint returns 200 with a valid authenticated session. The production domain accepts the token even though the session was created through Google on the vendor domain, not through Okta.

The diagram illustrates the core of the issue: the domains share one session store, and the server trusts the session token without verifying which authentication method created it, so any Gmail user can authenticate on the corporate-only production domain.
Root cause
The authentication restriction exists only in client-side code. The googleLoginDisabledHosts value lives in the public Nuxt config and controls whether the button is rendered; it does not influence what the server accepts. The /api/auth/callback/google endpoint processes Google OAuth callbacks from any host running the application, and the session validation path trusts the session token without checking which authentication method produced it.
Because both domains share one session store, a session minted through Google on the development domain is indistinguishable, to the production server, from a legitimate one. Hiding the button never applied to the server side, so it could not stop a user who obtained a session elsewhere and replayed the cookie.
Impact
Any Gmail user can authenticate on the corporate-only production domain, bypassing Okta SSO. The attacker needs a Google account, and the resulting session is accepted on production through the shared session store.
Both were accepted as medium severity because no sensitive data was exposed behind the bypass. The impact is therefore an authentication control bypass rather than confirmed access to sensitive data.
Fix
The report does not describe a fix that was applied. The takeaway it states is that authentication restrictions enforced only in client-side code are not restrictions, and that if two domains share a session store, both need the same server-side auth controls. In practice that means enforcing the allowed authentication methods on the server rather than relying on a public config flag to hide a button.
Variants to test
- Look for the same application served on more than one hostname, for example a vendor or staging domain. A positive result is a second host that renders a different set of login options for the same app.
- Inspect the client-side framework config (for example
window.__NUXT__.config) for flags that disable login methods per host. A positive result is a restriction expressed only in that public config. - Send an OAuth callback to the production host from a session created on the other host. A positive result is a
200from the session endpoint with an authenticated session. - Compare session cookies across hosts. A positive result is a cookie name and value from one host being accepted unchanged by the other.
- Check whether the session record stores which authentication method created it. A positive result is a session accepted regardless of which authentication method created it.
What happened, in plain words
A security researcher was looking at an internal trip management tool used by a European low-cost airline. The tool is a web application, meaning a program you use through your browser rather than installing on your computer. It was built with Nuxt.js, a framework (a ready-made set of building blocks) for making websites.
The researcher noticed the same application was running on two different web addresses, called domains. A domain is the part of a web address after the https://, such as example.com. One domain was the real, production version used by the company. The other was a development version, a copy used for testing, hosted on a vendor's domain. A vendor here is an outside company that supplies or hosts software for the airline.
The production domain is supposed to let people in only through Okta, a corporate single sign-on (SSO) system. SSO means one login system that many applications trust, so staff sign in once with their company account. On production, only company email addresses ending in @redacted-corp.com should be accepted.
The development domain, however, shows a "Sign in with Google" button. That button lets anyone with a Google account log in. On production the button is hidden, but the hiding happens only in the browser, in code the visitor's own computer runs. The server, the computer that actually stores data and decides who is allowed in, never checks the same rule.
Both domains also share one session database. A session is the state of being logged in: after you sign in, the server gives your browser a small piece of data called a token, and the browser sends it back with every request so the server knows who you are. A session database is where the server keeps the list of valid sessions. Because the two domains use the same list, a session created through Google on the development domain is accepted on production. That means Okta SSO can be skipped entirely.
The researcher found the same issue on two different platforms belonging to the same company. Both were accepted as medium severity, a rating for how serious a bug is. Medium here reflects that no sensitive data was exposed behind the bypass: the researcher could get in, but did not show access to private information.
The setup
The report does not describe special accounts, tools or software versions. What matters is how the system is built:
- The same Nuxt.js application is served from a production domain and from a vendor development domain.
- Production is supposed to accept only Okta SSO with corporate credentials.
- The development domain offers Google sign-in.
- Both domains use one shared session store.
On the attacker's side, any Google account is enough.
Finding it
While poking at the trip management tool, the researcher saw that the same Nuxt.js application was deployed on two domains. Production enforces Okta corporate SSO. The development instance at the vendor's domain shows a "Sign in with Google" button. The restriction on production is purely client-side, and both domains share the same session database.
That combination is what makes the finding interesting: a session created through Google on the development domain is valid on production, so Okta SSO can be bypassed entirely.
Exploitation
Step 1: Confirm how the button is hidden
On production, the Google sign-in button is hidden with a client-side Nuxt config flag. A config flag is a setting in the application's configuration. "Client-side" means the setting is sent to and read by the browser, not enforced by the server.
window.__NUXT__.config = { public: { googleLoginDisabledHosts: "redacted.com" }}
Line by line:
window.__NUXT__.config = { ... }stores a settings object on the browser'swindow, the global object every page has.__NUXT__is the name Nuxt.js uses for its own data, so this is the application's configuration as seen by the browser.public: { ... }marks the values inside as public, meaning they are exposed to the browser.googleLoginDisabledHosts: "redacted.com"is the actual rule: on the hostredacted.com, do not show the Google login option. A host is the domain name part of an address.
This value only tells the browser which host should not display the Google login option. Nothing on the server enforces the same rule, so the flag affects only what is drawn on the screen.
Step 2: Note the missing host check on the callback
The server-side /api/auth/callback/google endpoint does not check the requesting hostname. An endpoint is a specific address on a server that performs an action when a request is sent to it; an API is the collection of such endpoints an application offers. A callback is the address the login provider sends the user back to after they sign in. Here, Google sends the user back to this endpoint, and the endpoint processes Google OAuth callbacks from any domain running the application. OAuth is the standard mechanism behind "Sign in with Google": Google confirms who the user is and hands the application a result.
Because the development domain runs the same application, its Google OAuth flow completes normally and produces a session in the shared store.
Step 3: Create a session on the development domain
Visit dev.redacted-vendor.com and sign in with any Google account. This produces a valid session in the shared session store, tied to a Google identity rather than to Okta. The reason for this step is to obtain a session through the weaker login route, on the domain where that route is available.
Step 4: Copy the session cookie
Copy the __Secure-better-auth.session_token cookie value from the development domain. A cookie is a small piece of data a website asks your browser to store and send back on later requests. This particular cookie holds the session token, the value that proves you are logged in. The __Secure- prefix marks cookies that browsers only accept over secure connections.
Step 5: Replay the cookie on production
Set the same cookie on redacted.com and request the session endpoint. "Replaying" means taking a value captured in one place and sending it again somewhere else. The reason for this step is to test whether production accepts a session that was never created through Okta.
GET https://redacted.com/api/auth/get-session
Line by line:
GETis the HTTP method, the verb of a web request. GET means "give me this resource". HTTP is the protocol browsers and servers use to talk.https://redacted.comis the production domain, the one that is supposed to require Okta./api/auth/get-sessionis the endpoint that reports the current session. If the server recognises the cookie as a valid session, it answers with the details of that session.
The endpoint returns 200 with a valid authenticated session. 200 is the HTTP status code for success. The production domain accepts the token even though the session was created through Google on the vendor domain, not through Okta.

The diagram shows the core of the issue: the domains share one session store, and the server trusts the session token without verifying which authentication method created it, so any Gmail user can authenticate on the corporate-only production domain.
Root cause
The authentication restriction exists only in client-side code. The googleLoginDisabledHosts value lives in the public Nuxt config and controls whether the button is rendered; it does not influence what the server accepts. The /api/auth/callback/google endpoint processes Google OAuth callbacks from any host running the application, and the session validation path trusts the session token without checking which authentication method produced it.
Because both domains share one session store, a session minted through Google on the development domain is indistinguishable, to the production server, from a legitimate one. Hiding the button never applied to the server side, so it could not stop a user who obtained a session elsewhere and replayed the cookie.
A useful comparison: hiding a door with a curtain stops nobody who knows the door is there. The lock has to be on the door itself, which in web terms means the server, not the browser.
Impact
Any Gmail user can authenticate on the corporate-only production domain, bypassing Okta SSO. The attacker needs a Google account, and the resulting session is accepted on production through the shared session store.
Both were accepted as medium severity because no sensitive data was exposed behind the bypass. The impact is therefore an authentication control bypass rather than confirmed access to sensitive data.
Fix
The report does not describe a fix that was applied. The takeaway it states is that authentication restrictions enforced only in client-side code are not restrictions, and that if two domains share a session store, both need the same server-side auth controls. In practice that means enforcing the allowed authentication methods on the server rather than relying on a public config flag to hide a button.
Variants to test
- Look for the same application served on more than one hostname, for example a vendor or staging domain. A positive result is a second host that renders a different set of login options for the same app.
- Inspect the client-side framework config (for example
window.__NUXT__.config) for flags that disable login methods per host. A positive result is a restriction expressed only in that public config. - Send an OAuth callback to the production host from a session created on the other host. A positive result is a
200from the session endpoint with an authenticated session. - Compare session cookies across hosts. A positive result is a cookie name and value from one host being accepted unchanged by the other.
- Check whether the session record stores which authentication method created it. A positive result is a session accepted regardless of which authentication method created it.
Glossary
- API: the set of addresses and rules an application offers so other software, such as a browser, can ask it to do things.
- Authentication: proving who you are, usually by signing in.
- Authentication bypass: getting past a login check without satisfying it as intended.
- Callback: the address a login provider sends you back to after you sign in there.
- Client-side: code that runs in the visitor's browser, which the visitor can read and change.
- Config flag: a setting in an application's configuration that switches a behaviour on or off.
- Cookie: a small piece of data a website asks your browser to store and send back on later requests.
- Credentials: the details used to prove identity, such as an email address and password.
- Domain: the name part of a web address, such as
example.com. - Endpoint: a specific address on a server that performs an action when a request is sent to it.
- Framework: a ready-made set of building blocks for making software, here Nuxt.js for websites.
- GET: the HTTP method meaning "give me this resource".
- Host / hostname: the domain name part of an address, used to tell one site from another.
- HTTP / HTTPS: the protocol browsers and servers use to talk; HTTPS is the encrypted version.
- Medium severity: a rating for a bug of moderate seriousness.
- Nuxt.js: a framework for building web applications, which keeps some configuration in the browser under
window.__NUXT__. - OAuth: the standard mechanism behind "Sign in with Google", where one service confirms your identity to another.
- Okta: a corporate single sign-on system.
- Production: the live version of an application that real users use.
- Replay: sending a captured value, such as a cookie, again somewhere else.
- Request: a message a browser sends to a server asking it to do something.
- Root cause: the underlying reason a bug exists, as opposed to its symptoms.
- Server: the computer that stores data and decides who is allowed in.
- Server-side: code that runs on the server, which the visitor cannot see or change.
- Session: the state of being logged in, tracked by the server.
- Session store / session database: where the server keeps the list of valid sessions.
- Session token: the value in a cookie that proves you are logged in.
- Single sign-on (SSO): one login system that many applications trust, so you sign in once.
- Status code: a number in a server's reply saying what happened, such as 200 for success.
- Vendor: an outside company that supplies or hosts software for another organisation.
- 200: the HTTP status code for success.