Skip to content
Open redirect Write-up Beginner

How I could have hacked your Medium account by phishing your FB, Twitter, Google credentials

The login flow accepted a redirect parameter that was not validated, so an attacker could craft a link that sent users to an attacker-controlled site after they clicked a social login button. This could be used to phish social media credentials.

renganathan Follow

Published on infosecwriteups.com

This write-up is about the vulnerability that I found on Medium which will allow me to hack your medium account by phishing your FB, Twitter & Google credentials.

Renganathan, 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 application did not validate the redirect parameter, allowing an attacker to specify an external domain.

Impact

An attacker could phish social media credentials by redirecting users to a fake login page after they click a social login button.

What the attacker needed

Victim clicks a crafted link; victim uses social login

The fix

The redirect parameter should be validated to ensure it only allows redirects to trusted domains.

How it was found

  1. Find the login page and identify the redirect parameter.
  2. Change the redirect parameter value to an attacker-controlled domain.
  3. Click the social login button (e.g., Sign in with Twitter).
  4. Observe that the browser is redirected to the attacker's domain.

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.

When you log in with a social media account, the website often sends you back to where you came from using a 'redirect' parameter in the URL. If the website does not check that this parameter points to its own site, an attacker can change it to point to a fake site that looks like the real login page. Then the attacker can steal your username and password.

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 renganathan

View all

4 more disclosed reports, best first.

More from Medium

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.