Skip to content
Account takeover Write-up Intermediate

Pre-Account Takeover Leading To Broken Access Control

The account verification endpoint lacked authorization checks, allowing an attacker to brute-force another user's password and access sensitive data. The attacker could then view account activity and change the card PIN of another user.

bcarikci-dev Follow

Published on medium.com

Greetings everyone. Today I would like to tell you about my article about the pre-account takeover vulnerability, which I detected in a mobile application penetration test study and verified by taking advantage of the Broken Access Control vulnerability, and the details of the vulnerability.

Berkay Çarıkçıoğlu, on medium.com

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 endpoint relied only on a valid JWT token without verifying that the token belonged to the user whose account was being accessed, and it lacked rate limiting or CAPTCHA.

Impact

An attacker could take over another user's account, view sensitive information such as account activity and card details, and change the card PIN of that user.

What the attacker needed

Mobile app with SSL pinning; ability to intercept traffic; victim's phone number known

The fix

The application should enforce proper authorization checks to ensure that a user can only access their own account and perform actions on their own resources, and implement rate limiting or CAPTCHA to prevent brute-force attacks.

How it was found

  1. Install the app and bypass SSL pinning using Frida.
  2. Capture the login request to /v1/Account/VerifyPersonalAccount.
  3. Notice that the request lacks authorization checks and returns sensitive user data.
  4. Perform a brute-force attack on another user's phone number to guess their password.
  5. Use the obtained account number to query the account activity section for that user.
  6. Send a request to /v1/Account/UpdateCardPin with the victim's card number to change their PIN.

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.

This report describes a flaw where a login endpoint did not check who was making the request. An attacker could try many passwords for other users' accounts and, once successful, view their private information and even change their card PIN.

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.

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.