Skip to content
Account takeover Disclosed report Intermediate

unvalid open authentication with facebook

The Vimeo Facebook login flow did not restrict accepted redirect URIs, so if an open redirect exists on a Vimeo domain an attacker could chain it to send the authorisation code to a site they control, then act on the victim's Vimeo account.

ckmk44 Follow

Originally disclosed on HackerOne

  • Fixed in 9 hours
  • Disclosed after 25 hours

Hi, vimeo site is using facebook for open authentication . The authentication url is in this way https://www.facebook.com/dialog/oauth?client_id=19884028963&redirect_uri=https://vimeo.com/_facebook/join?ssl=0&iframe=0&popup=0&player=0&product_id=0&scope=email,basic_info,read_stream,publish_actions&state=

problem is that facebook oauth also looks for sub domains so your app is open to redirect attacks, an attacker could make a plan like this

1)Attacker makes an app with vimeo api 2)And register his redirect_uri as www.prashanthvarma.in/code.php?code= 3)so the redirect_uri for facebook is https://api.vimeo.com/oauth/authorize?response_type=code&client_id=9f3bb9f9186bc825434330567c99283f6dd57586&state=912145450290129&redirect_uri=http://www.prashanthvarma.in/code=

  1. the final url for attack is

https://www.facebook.com/dialog/oauth?client_id=19884028963&redirect_uri=https://api.vimeo.com/oauth/authorize%3Fresponse_type%3Dcode%26client_id%3D9f3bb9f9186bc825434330567c99283f6dd57586%26state%3D912145450290129%26redirect_uri%3Dhttp://www.prashanthvarma.in/code=&iframe=0&popup=0&player=0&product_id=0&scope=email,basic_info,read_stream,publish_actions

  1. attacker could post ,read stream and do many things with your app ,the above example is just for demonstration .This attack can be done if an open redirect is found in vimeo domains

solution: This issue can be solved by using an option in facebook app_settings>Advanced>Valid OAuth redirect URIs>YOUR_REDIRECT_URI

let me know if any info is required from my end

Thank you, prashanth varma

The original report as published on HackerOne, by ckmk44. 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 Facebook app's Valid OAuth redirect URIs setting was not restricted, so the redirect_uri could point at a Vimeo endpoint that itself forwards to an attacker-controlled address.

Impact

An attacker could obtain an authorisation code and use it to read the victim's stream and post on their behalf, but the report notes this only works if an open redirect exists on a Vimeo domain.

What the attacker needed

Attacker has a Vimeo API app; an open redirect on a Vimeo domain

The fix

The Facebook app should be configured with an explicit allow-list of Valid OAuth redirect URIs so the redirect cannot be pointed elsewhere.

How it was found

  1. The attacker creates an app using the Vimeo API.
  2. The attacker registers their own redirect URI for that app.
  3. The attacker builds a Facebook authorisation URL whose redirect_uri points at the Vimeo OAuth endpoint, which in turn points at the attacker's site.
  4. The authorisation code is delivered to the attacker, who can then read the stream and post on the victim's behalf.

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, Facebook sends a short-lived code back to the website that asked for it. If the website does not check exactly where that code is allowed to go, an attacker can arrange for it to be sent to their own server instead. The attacker then uses the code to get into the victim's account.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

More by ckmk44

View all

3 more disclosed reports, best first.

More from Vimeo

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.