Skip to content
Open redirect Disclosed report Intermediate

OAuth open redirect

The Twitter OAuth flow on the site accepted a redirect parameter that could point to any host, so after a victim authorised their Twitter account the browser was sent to the attacker's chosen site. The attacker also received the OAuth token and verifier for that victim.

melvin Follow

Originally disclosed on HackerOne

  • Triaged in 10 hours
  • Fixed in 3 days
  • Disclosed after 4 days

An attacker can use an open redirect vulnerability in the Twitter OAuth process to redirect someone to his/her webpage, while also obtaining the OAuth token and verifier of the victim.

The vulnerability is right here: https://app.respond.ly/_oauth/twitter/?requestTokenAndRedirect=https://hackerone.com. When someone authorizes their Twitter account using that URL, the redirect will go to https://hackerone.com.

Recommendation: make sure the requestTokenAndRedirect paramater only accepts hosts on whitelisted domains.

The original report as published on HackerOne, by melvin. 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 callback handler trusted a user-supplied redirect parameter without checking that it pointed to an allowed host.

Impact

An attacker could redirect a victim to an arbitrary site and obtain that victim's OAuth token and verifier.

What the attacker needed

Victim clicks a crafted OAuth link; victim authorises their Twitter account

How it was found

  1. Craft a link to the site's Twitter OAuth endpoint with the redirect parameter set to an attacker-controlled host.
  2. Send the link to a victim, who authorises their Twitter account through it.
  3. The victim's browser is redirected to the attacker's site, and the attacker obtains the OAuth token and verifier.

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.

When you click 'log in with Twitter', the site sends you to Twitter and then back again, carrying a short code that proves the login worked. Here the site let the attacker choose where that return trip ended, and the code travelled with it. So the attacker got both the victim's browser and the secret code needed to finish the login.

What is Open redirect?

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.

More by melvin

View all

12 more disclosed reports, best first.

More from Respondly

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.