Mfa Vulnerability Exploited For Account Hijacking
The application's signup verification could be bypassed by changing a parameter to authenticate with a password instead of the emailed code, allowing account creation with any email. The activation link was also returned in the API response, enabling account activation without email access.
Published on systemweakness.com
This blog is about how I was able to takeover the account and bypass multifactor authentication using manual analysis. Take a seat belt and enjoy, this gonna be long ride.
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 server trusted a client-supplied parameter to choose the authentication method, allowing password-based verification instead of the required email code, and it exposed the activation link in the API response.
Impact
An attacker could create an account using any victim's email address, join their organisation's team, and read or write all chats and photos shared in that team.
What the attacker needed
Victim's email address; no access to victim's email needed
How it was found
- Go to the signup page and start registering a new account with any email address.
- Enter a random wrong verification code and intercept the request.
- Change the grant_type parameter to use password authentication instead of the code.
- Submit the modified request to create the account without the correct code.
- Intercept the API call that sends the activation link and observe the link in the response.
- Use the activation link from the response to activate the account without accessing the victim's email.
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.
When you sign up, the app sends a code to your email to prove you own it. The researcher found that by changing a setting in the request, the app would accept your password instead of the code, so you could sign up with someone else's email. Also, the activation link was sent back in the response, so you didn't need to open the email to activate the 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.