Skip to content
OAuth / SSO Write-up Intermediate

A Critical OAuth Vulnerability in a Data Visualization Platform:

The OAuth registration endpoint lacked authentication, allowing anyone to register a client with an arbitrary redirect URI. An attacker could craft an authorization link that sends the victim's authorization code to their own server, then exchange it for tokens and gain full read/write access to the victim's visualisations and stories.

karincayiyen Follow

Published on cybersecuritywriteups.com

A technical analysis of a security vulnerability discovered through bug bounty — and thoughts on how AI should be used in this process.

karincayiyen, on cybersecuritywriteups.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.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Impact

An attacker could gain read/write access to all of the victim's visualisations and stories, with persistent access via the refresh token, requiring only that the victim clicks a link and approves access.

What the attacker needed

Victim clicks a link; victim grants permission

How it was found

  1. Send a registration request to the /oauth/register endpoint with a chosen redirect URI and scopes, without any authentication.
  2. Receive a client_id for the newly registered OAuth client.
  3. Generate PKCE code_verifier and code_challenge values.
  4. Craft an authorization URL using the client_id, the attacker's redirect URI, and the PKCE challenge, then send it to the victim.
  5. The victim clicks the link and grants permission, causing the authorization code to be sent to the attacker's redirect URI.
  6. Exchange the stolen authorization code for access and refresh tokens using the attacker's PKCE verifier, then use the token to access the MCP API.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

OAuth is a way for apps to ask a user for permission to access their data on another service. Here, the service let anyone create a fake app without logging in, and it trusted any web address the app said it would send the user back to. So an attacker could make a link that looks real, trick the victim into approving access, and steal the code that grants access to the victim's account.

What is OAuth / SSO?

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.

Similar reports

View all

Same bug class and techniques, clearest first.

OAuth and single sign-on flaws

The lesson behind this report.

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.