SSO through odnoklassniki uses http rather than https
The SSO flow through Odnoklassniki used an HTTP URL instead of HTTPS, so an attacker who can intercept traffic could steal the victim's Odnoklassniki credentials or perform a CSRF attack on the login form. The report describes two impact scenarios with specific conditions.
Originally disclosed on HackerOne
- Triaged in 51 days
- Fixed in 53 days
- Paid in 53 days
- Disclosed after 3 months
SUMMARY When using single-sign on through odnoklassniki, the user is sent to an http (non-https) URL, allowing an attacker (under some conditions) to log in to the victim's Badoo account by stealing odnoklassniki credentials, as well as to execute a CSRF-attack on the log-in form.
RECOMMENDATION Let https://badoo.com/ok/authorize.phtml?rt=060285&js_use_scheme=https redirect to https://www.odnoklassniki.ru rather than the http version.
STEPS TO REPRODUCE
- The victim navigates to https://badoo.com/nl/signin/ and selects 'odnoklassniki'
- The victim is forwarded to http://www.odnoklassniki.ru/oauth/authorize?response_type=code&display=popup&client_id=126351872&scope=VALUABLE_ACCESS%3BGET_EMAIL&state=<state>&redirect_uri=https%3A%2F%2Fbadoo.com%2Fexternal%2Fredirector.phtml
Impact 1: 3) The attacker intercepts the http traffic and presents the victim a fake odnoklassniki log-in page 4) The attacker intercepts the odnoklassniki credentials entered by the victim 5) The attacker uses the intercepted odnoklassniki credentials to log in to the victim's Badoo account
Impact 2: 3) The attacker intercepts the URL at http://www.odnoklassniki.ru/ to which the victim is forwarded (which notably includes the state variable, which is connected to the victim's session) 4) The attacker browses to this URL and enters its own odnoklassniki credentials 5) The attacker intercepts the URL returning to https://badoo.com/external/redirector.phtml (including its parameters) and invites the victim to visit this URL 6) The attacker is now logged in to Badoo on the victim's device
Impact
Impact 1: The attacker can log in to the victim's Badoo account by stealing odnoklassniki credentials, under the following conditions:
- The attacker can modify traffic between the user and badoo.com (e.g. the user is connected to a rogue access point)
- The victim is willing to enter his odnoklassniki credentials on a http version of the site
Impact 2: The attacker can execute a CSRF attack on the log-in form (i.e. the attacker log himself in to badoo.com on the victim's browser), under the following conditions:
- The attacker can intercept traffic between the user and badoo.com (e.g. the attacker is connected to the same unprotected wifi network)
- The attacker succeeds in causing the victim to browse to a URL provided by the attacker.
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 SSO redirect URL was hardcoded to use HTTP instead of HTTPS, so the authentication flow was not protected by TLS.
Impact
Under specific conditions (attacker can intercept traffic and victim enters credentials on an HTTP page), the attacker could steal Odnoklassniki credentials and log in to the victim's Badoo account; alternatively, the attacker could perform a CSRF attack to log the victim into the attacker's Badoo account.
What the attacker needed
Attacker can intercept traffic; victim enters credentials on HTTP page; victim clicks attacker-provided URL
How it was found
- The victim navigates to the sign-in page and selects Odnoklassniki.
- The victim is forwarded to an HTTP URL on Odnoklassniki.
- The attacker intercepts the HTTP traffic and presents a fake Odnoklassniki login page.
- The attacker intercepts the credentials entered by the victim.
- The attacker uses the stolen credentials to log in to the victim's Badoo account.
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 using another service (like Odnoklassniki), the site sends you to that service. Here, that redirect used an insecure HTTP address instead of HTTPS. An attacker on the same network could intercept the traffic, show a fake login page, and steal your password or trick your browser into logging in as the attacker.
What is OAuth / SSO?
Mistakes in OAuth, OpenID Connect, SAML or token handling that leak codes and tokens or link an attacker's identity to a victim's account.