Bypassing 2FA using OpenID Misconfiguration
The client website accepted an authentication method (SMS) that was not intended to be used for two-factor authentication, allowing an attacker to bypass the Google Authenticator step by requesting SMS as the second factor. An attacker with valid credentials could log in without the OTP.
A two factor authentication bypass caused by an over-permissive AMR configuration in an OpenID identity provider, reported as High severity.
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 client website had both OTP and SMS enabled as acceptable authentication methods in its OpenID configuration, even though there was no user interface for enabling SMS, so the identity provider honoured a request for SMS and skipped the intended OTP.
Impact
An attacker who knows a victim's password could bypass the Google Authenticator second factor by choosing SMS instead, gaining access to the account.
What the attacker needed
Valid user credentials; access to a phone number for SMS
How it was found
- Observe the login request containing the acr_values parameter set to otp+password.
- Change the acr_values value to sms+password and submit the login form with valid credentials.
- The identity provider presents an SMS verification step instead of the Google Authenticator prompt.
- Use a one-time SMS verification service to receive the code, add the phone number, and confirm ownership.
- Complete the SMS verification and get logged in, bypassing the Google Authenticator window.
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.
Two-factor authentication (2FA) adds a second step, like a code from an app, after your password. Here, the login system was told which second step to use, but it also accepted a different step (a text message code) that the site did not really offer. So someone with just the password could choose the text message option and get in without the app code.
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.