Skip to content
Open redirect Disclosed report Intermediate

Improper Host Detection During Team Up on tweetdeck.twitter.com

The team-authorisation endpoint on twitter.com did not properly validate the host in its callback parameter, so a crafted value could redirect a user to an attacker-chosen site after they authorised a second account. An attacker could use this to send victims to a phishing page.

avinash_ Follow

Originally disclosed on HackerOne

Bounty$280 View original
  • Triaged in 4 days
  • Fixed in 16 days
  • Paid in 18 days
  • Disclosed after 31 days

Hi

Give this url https://twitter.com/teams/authorize?target_screen_name=&authorize_callback=https%3A%2F%2F%0Agoogle.com%[email protected] to any authorised user for team up and after authorization of his 2nd account he will be redirected to google.com .

First I tried to make it malicious with adding %0Agoogle.com%5C@x but it not redirected me but after adding %0Agoogle.com%5C@x.twitter.com in it, this redirected me to google.com. Which shows in this endpoint url isn't properly validating the Host after login.

Vulnerable Url: https://twitter.com/teams/authorize?target_screen_name=&authorize_callback=https%3A%2F%2F%0Agoogle.com%[email protected]

Malicious point: %0Agoogle.com%[email protected]

PoC video attached

With Best Regards

Impact

Impact: Attacker can use this for tricking users to Phising attacks.

Attachments

PoC_Monday_04_December_2017_10_07_38__IST.mp4 From the original on HackerOne

The original report as published on HackerOne, by avinash_. 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 callback parameter was only checked for a trusted-looking suffix rather than parsing the URL and confirming the real host, so a crafted value slipped through.

Impact

An attacker could use the redirect to trick users into phishing attacks.

What the attacker needed

Victim is an authorised user; victim authorises a second account; victim opens the crafted link

How it was found

  1. Give the crafted team-authorise link to an authorised user.
  2. The user authorises their second account for the team-up.
  3. The user is redirected to the attacker-chosen site.

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 log in to a site through another service, the site often sends you back to a web address given in the link. If it trusts any address without checking, an attacker can make that link point to their own fake page. Here the check on the address was flawed, so a specially built link sent people to a different site.

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 avinash_

View all

6 more disclosed reports, best first.

More from X / xAI

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.