Skip to content
Account takeover Disclosed report Intermediate

open authentication bug

The OAuth endpoint accepted a redirect URI without a scheme and redirected the user to www.coinbase.comexample.com, a site other than the real application. An attacker could use this to steal the token.

ckmk44 Follow

Originally disclosed on HackerOne

  • Triaged in 2 days
  • Fixed in 21 days
  • Paid in 21 days
  • Disclosed after 21 days

Hi, If developer registers one of the three url's with out http protocol (ex:example.com) in oauth registration then he would be redirected to www.coinbase.comexample.com.This makes the user to redirect to another site than the real application.Attacker could take advantage of this and steal the token using that site as a medium. Type:Oauth impact:high authentication:yes this works if developer does a mistake but the vulnerability lies in the coinbase oauth. Proof of concept: https://www.coinbase.com/oauth/authorize?response_type=code&client_id=3616ab93541ef90540a0c991e113b22c1ccefa96996f70fcdc49a68d900cb761&redirect_uri=prashanthvarma.in/code.php&scope=user

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

Impact

An attacker could steal the OAuth token or code, but only if the developer had registered a redirect URI without a scheme.

What the attacker needed

Developer registers a scheme-less redirect URI; victim clicks an authorisation link

The fix

The Coinbase OAuth server should not accept scheme-less redirect URIs that resolve to another site.

How it was found

  1. Register a redirect URI without the http protocol in the OAuth app settings.
  2. Send the victim to the authorisation URL with that redirect_uri value.
  3. The victim is redirected to www.coinbase.comexample.com, a site other than the real application.
  4. The attacker could use that site to steal the token.

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.

OAuth lets an app ask another service for access to your account. The service should send you back only to the app's own address. Here, if the app's address was saved without 'http://', the service sent you to www.coinbase.comexample.com instead, and an attacker could use that to steal the token.

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 Coinbase

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.