Skip to content
Crypto Disclosed report Beginner

Open Url redirection on login with facebook

The login flow with Facebook accepted a redirect parameter and sent the user to an arbitrary external site after registration. An attacker could craft a link that redirects victims to a malicious site after they complete the Facebook login.

d1pakda5 Follow

Originally disclosed on HackerOne

  • Disclosed after 2 months

steps to produce: 1, go to the site imgur.com and login with facebook and if you are new user then u must be asked for username on the link https://imgur.com/register/thirdparty/facebook?redirect=http://imgur.com/

nw just change the parameter redirect= value to https://google.com and hit enter and give username and click next and you will redirected to google

Regards Dipak

The original report as published on HackerOne, by d1pakda5. 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 application did not validate that the redirect parameter pointed to an allowed domain before sending the user there.

Impact

An attacker could redirect users to an arbitrary external site after they complete Facebook login.

What the attacker needed

Victim clicks a crafted link; victim logs in with Facebook; new user registration flow

How it was found

  1. Go to the site and start logging in with Facebook as a new user.
  2. The registration page includes a redirect parameter in the URL.
  3. Change the redirect parameter value to an external site such as Google.
  4. Enter a username and click next.
  5. The browser is redirected to the external 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 with Facebook on a site, a redirect parameter decides where you go next. If the site does not check that address, an attacker can change it to another site, and after logging in you are sent there.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

More by d1pakda5

View all

6 more disclosed reports, best first.

More from Imgur

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.