Skip to content
OAuth / SSO Disclosed report Intermediate

Problem with OAuth

A third-party Twitter follower-tracking site reused a single OAuth authorisation link across sessions, so an attacker could authorise the link with their own account and then have the victim's browser complete the flow, logging the victim into the site as the attacker. The text claims this lets one user end up logged in as another on the tracking site.

sandeep10092819 Follow

Originally disclosed on HackerOne

Bounty$1,260 View original
  • Triaged in 7 days
  • Fixed in 7 months
  • Paid in 9 days
  • Disclosed after 9 months

There are many website that tracks the unfollowers and all like: http://unfollowerstats.com [Steps]:

  1. Login with ur twitter account, i.e. [email protected]
  2. Open http://unfollowerstats.com, This will ask you to login with twitter:
  3. you will get a link like this:

https://api.twitter.com/oauth/authenticate?oauth_token=xpXP21WOzwvsocu7yjQBafl8BKRtKdeH

Open Another browser and login with some other user i.e. : [email protected] 5. Open this oAuth link(https://api.twitter.com/oauth/authenticate?oauth_token=xpXP21WOzwvsocu7yjQBafl8BKRtKdeH) on the other browser 6. Authorize this OAuth with user [email protected]

  1. Go to the first browser, and refresh the page and continue to authorize. You will be logged into http://unfollowerstats.com with [email protected] user

-- Tested with 2 such websites

The original report as published on HackerOne, by sandeep10092819. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

How it worked

Root cause

Likely the OAuth flow lacked a per-session state value binding the authorisation request to the browser that started it, so a completed callback could be replayed into another session.

What the attacker needed

A Twitter account; victim opens the shared OAuth link; third-party tracking site

How it was found

  1. Log in to the tracking site with one Twitter account to obtain an OAuth authorisation link.
  2. Open a second browser and log in to Twitter with a different account.
  3. Open the same OAuth link in the second browser and authorise it.
  4. Return to the first browser, refresh and continue authorising.
  5. The first browser is now logged in to the tracking site as the second 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 report has not been written yet. The Original tab links to the source.

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 from X / xAI

View all

The newest disclosed reports for this program.

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.