Skip to content
OAuth / SSO Write-up Intermediate

Oh-Auth - Abusing OAuth to take over millions of accounts

OAuth implementations on Vidio, Bukalapak, and Grammarly failed to verify that access tokens were issued for their own app IDs, allowing an attacker to reuse tokens from a malicious site to take over victim accounts.

Aviad Carmel Follow

Published on salt.security

OAuth (Open Authorization) is one of the fastest adopted technologies in the AppSec domain. From its first introduction in 2006, as an attempt to introduce a standard authorization protocol, it has become one of the most popular protocols for both user authorization and authentication, and it’s being used by almost…

Aviad Carmel, Security Researcher, on salt.security

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 take over accounts on Vidio, Bukalapak, and Grammarly, accessing private data and performing actions on behalf of victims; all three companies fixed the issue.

What the attacker needed

Victim has an account on the target site; victim logs in to attacker's site with Facebook; attacker obtains victim's token

The fix

The fix is to verify that the access token was issued for the application's own app ID, as per the provider's documentation.

How it was found

  1. Attacker creates a malicious website (YourTimePlanner.com) that offers Facebook login.
  2. Victims log in to the malicious site with Facebook, giving the attacker access tokens generated for that site.
  3. Attacker sends a victim's token to the vulnerable website's OAuth endpoint (e.g., /api/facebook/auth on Vidio).
  4. The vulnerable website accepts the token without verifying it was issued for its own app ID and returns the victim's credentials.
  5. Attacker uses the credentials to take over the victim's account.

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 to log in to a website using another service, like Facebook. When you log in, Facebook gives the website a special code (token) that proves who you are. If the website doesn't check that the token was meant for it, an attacker can use a token from a different site to log in as you.

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 Aviad Carmel

View all

4 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.