Skip to content

Reading list

Learn OAuth / SSO from real reports

Mistakes in OAuth, OpenID Connect, SAML or token handling that leak codes and tokens or link an attacker's identity to a victim's account.

12 reports, easiest first.

  1. Application-Secret-Embedded-In-Login-Flow-For-Facebook-Swag-Store

    Meta Beginner

    The login flow for Facebook's swag stores included the application secret in the OAuth URL, exposing it to anyone who initiated login. An attacker could use the leaked secret to obtain an app access token and query Facebook's Graph API for application roles and insights.

    When you log in to a website using Facebook, the site sends you to Facebook with a special URL that includes an application ID (like a username) and a secret (like a password). Here, the secret was included in that URL, so anyone who saw the URL could copy it. With that secret, a person could pretend to be the application and ask Facebook for private information about the app.

    The lesson. The application secret was included as a parameter in the OAuth authorisation URL, exposing it to the client.

  2. JWT: How I turned a Regular User into an Admin in 3 Steps

    Beginner

    A JWT implementation accepted tokens with the algorithm set to 'none', skipping signature verification. An attacker could forge a token with an admin role and gain administrator access.

    A JSON Web Token (JWT) is like a digital ID badge that a server gives you after login. The server is supposed to check a special signature on the badge to make sure nobody tampered with it. In this case, the server was tricked into ignoring the signature, so someone could change their badge to say 'admin' and the server believed it.

    The lesson. The server trusted the algorithm specified in the token's header and accepted 'none', thereby skipping signature verification.

  3. Possible to redirect to a (non-existing) subdomain after logging in via GitHub (leaking the token)

    Ed Beginner

    The OAuth redirect_uri whitelist allowed redirects to subdomains of the target domain, including non-existent ones. If a subdomain is vulnerable, the login token could potentially be stolen.

    When you log in with GitHub, the site sends you back to a pre-approved address. Here, the approval list was too loose and accepted any subdomain, even one that does not exist. If an attacker can control such a subdomain, they could intercept the login code.

    The lesson. Likely the OAuth application's redirect_uri whitelist was configured to allow any subdomain of the target domain rather than exact URLs.

  4. How an OAuth 2.0 Redirect URI Bypass Led to Account Takeover and an $8,000 Bounty

    Intermediate

    The identity provider validated the OAuth redirect URI with a loose prefix match instead of an exact match, so a path traversal in the redirect URI could point to an open redirect on the client application. An attacker could then capture the authorization code and exchange it for the victim's session, leading to account takeover.

    When you log in with a third-party service, that service sends a temporary code back to the app. If the app or the third-party service checks the return address loosely, an attacker can trick the system into sending the code to a server they control. The attacker then uses that code to log in as the victim.

  5. Breaking “Login with Google” Without Touching Google: An OAuth redirect_uri Account Takeover…

    Intermediate

    The OAuth callback handler on huddleboard.io accepted an undocumented redirect_uri override parameter and forwarded the resulting session token to it without cross-checking against the value used in the initial authorization request. An attacker could send a crafted login link that, after the victim approved Google's consent screen, delivered the victim's session token to an attacker-controlled server, allowing full account takeover.

    When you click 'Sign in with Google', the app sends you to Google, then Google sends you back with a special one-time code. The app is supposed to check that the address it sends you back to is its own. Here, the app had a hidden setting that let an attacker change that return address, so the victim's login token ended up at the attacker's server.

    The lesson. Likely the relying party's callback handler trusted a legacy, undocumented redirect_uri override parameter and failed to bind the redirect target used for token delivery to the one used in the initial authorization request, also resolving duplicate parameters to the last value.

  6. Incorrect param parsing in Digits web authentication

    X / xAI Intermediate

    The Digits web authentication client-side parameter parser only splits on ampersand, while the server also accepts semicolons as delimiters. An attacker could craft a URL that bypasses host validation and redirects the OAuth flow to a domain they control, potentially stealing the victim's OAuth credentials.

    The report shows the check could be fooled by using a semicolon instead of an ampersand in the web address, letting an attacker send the login result to their own site and retrieve OAuth credential data.

    The lesson. The client-side JavaScript parser assumed only '&' separates parameters, but the server also accepted ';', creating a parsing mismatch that allowed host validation bypass.

  7. Account Takeover via Misconfigured OAuth in Android

    Intermediate

    Two Android apps using Auth0 had redirect URIs in their allowlist that no Android app owned, and the server did not enforce PKCE. An attacker could register the unclaimed URI in a malicious app, send a victim a login link, intercept the authorization code, and exchange it for tokens, leading to full account takeover.

    OAuth is a way for apps to let you log in with another service. The service sends a secret code back to the app using a special link. If the app doesn't properly claim that link, another app can claim it and steal the code. This report shows two cases where that happened, letting an attacker get tokens that give full access to the victim's account.

    The lesson. Likely the auth server allowed redirect URIs that were not registered by the legitimate Android app and did not enforce PKCE, so an attacker could register the unclaimed URI and intercept the authorization code.

  8. Device OAuth flow allows for "cross window forgery" due to ID on accept button, leading to full API access as victim (regression)

    GitLab Intermediate

    The device OAuth flow's Authorize button had an ID attribute, enabling a cross-window forgery attack where an attacker could trick a victim into authorising a device and then obtain an API token with full account access. This was a regression of a previously fixed issue.

    This is about a login flow where a user approves a device (like a TV) to access their account. The approval button had a name (ID) that let an attacker's website secretly click it for the victim, so the attacker could get a token to control the victim's account.

    The lesson. The Authorize button in the device OAuth flow had an ID attribute, allowing it to be targeted by a fragment identifier in a cross-window forgery attack.

  9. $8,800 for a Redirect Nobody Validated: Stealing OAuth Tokens Thr

    Intermediate

    An open redirect on the OAuth provider's own domain allowed an attacker to register a redirect_uri that passed domain validation but then forwarded the access token to an attacker-controlled site. In the implicit flow, the token was carried in the URL fragment through the redirect, letting the attacker steal it and gain the approved permissions.

    OAuth is a way for apps to ask a user to grant access to their account without sharing a password. In the implicit flow, the access token (a key that grants access) is sent back in the URL after the user approves. Here, the site trusted any address on its own domain, but that domain had a redirect feature that could send the token on to an attacker.

    The lesson. The OAuth authorization endpoint validated redirect_uri by domain only, without accounting for open redirect paths on that same trusted domain.

  10. OneLogin authentication bypass on WordPress sites

    Uber Intermediate $10,000

    The OneLogin SAML SSO WordPress plugin failed to validate SAML responses when the signature element was omitted, allowing forged responses to log in. Admin access required guessing a role name or existing user details.

    SAML lets websites trust a central login service. The plugin checked the response only if it contained a signature, so an attacker could send one without and it was accepted. This allowed login without a password, though admin access needed guessing a role name or existing user details.

    The lesson. The plugin's signature verification was conditional on the presence of a signature element, so omitting that element bypassed all validation.

  11. Insufficient OAuth Revocation

    GitLab Intermediate

    When a user revokes an OAuth application's access, only access tokens are revoked, not the authorization grants. An attacker can store an authorization code and redeem it within 10 minutes after revocation to regain access.

    OAuth lets you sign into a third-party app using your account on another service, like GitLab. When you revoke that app's access, you expect it to be fully disconnected. Here, the app could keep a special code and use it shortly after you revoke to get back in.

  12. API: missing invalidation of OAuth2 Authorization Code during access revocation causes authorization bypass

    Vimeo Intermediate

    Vimeo's OAuth2 API did not invalidate authorization codes when a user revoked an application's access, only revoking access tokens. A malicious application could exchange a previously issued authorization code for a new access token after revocation, regaining access to the victim's account.

    OAuth2 lets you give a third-party app permission to access your account without sharing your password. When you revoke that permission, the app's existing access token should stop working, but here the app could use an old intermediate code to get a new token and keep access. This means revoking access did not actually remove the app's ability to read your account.

    The lesson. Likely the revocation process only invalidated access tokens and failed to invalidate outstanding authorization codes for the same user-application pair.