Skip to content
OAuth / SSO Write-up Intermediate

Masked Menace: How a Fake OAuth App and a Loose GraphQL Endpoint

The OAuth authorisation endpoint accepted unvalidated redirect URIs, and the client secret was exposed in client-side JavaScript, allowing an attacker to obtain authorisation codes and exchange them for access tokens. The GraphQL endpoint also lacked authorisation checks on a query that returned sensitive user data, enabling access to any user's account including admin accounts.

iski Follow

Published on infosecwriteups.com

Free link 🎈

Iski, on infosecwriteups.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

Root cause

Likely the OAuth server failed to validate redirect URIs and exposed the client secret in client-side JavaScript, while the GraphQL endpoint lacked authorisation checks on sensitive queries.

Impact

An attacker could access any victim's account, including admin accounts, and retrieve sensitive data such as email addresses, password hashes, and API keys.

What the attacker needed

Victim clicks a link; attacker has a server to receive codes; access to the target's JavaScript files

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 let you log in with another service without sharing your password. Here, the service did not check where it sent the login code, and it left a secret key in its public website code, so an attacker could pretend to be the app and steal access. The GraphQL endpoint, which is like a query system for data, also let anyone ask for private user details without checking if they were allowed.

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.

More by iski

View all

186 more disclosed reports, best first.

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.