Skip to content
Access control Write-up Intermediate

Bypassing Otp Verification For Changing Pin In Registered Mobile Banking Account

The mobile banking app's credential status endpoint accepted a phone number supplied by the client and returned different statuses, including one for numbers that were registered but had no PIN set. By swapping the phone number in that request, the author was shown the PIN setup form, but the text states this only changed their own PIN and did not take over the other account.

yoshi m lutfi Follow

Published on infosecwriteups.com

I started with the mechanism of this application. My mobile number was registered in this mobile banking application and I was set up my PIN for login.

yoshi m lutfi, on infosecwriteups.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 status endpoint trusted a client-supplied phone number and returned account state for it without tying the request to the authenticated user.

Impact

The author states the takeover chance is very small and that in their test only their own PIN changed while the account stayed blocked, so no real account takeover is demonstrated.

What the attacker needed

A registered mobile banking account; the app installed on a device; ability to intercept app traffic

How it was found

  1. Register several phone numbers with the banking system to get different account states.
  2. Send the credential status request and observe that the response differs per phone number.
  3. Use an automated tool to try the four known numbers and note the four distinct statuses.
  4. Intercept the status request while loading the app and replace the phone number with one that is registered but has no PIN.
  5. Observe that the app displays the PIN setup form.

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.

A banking app asks the server whether a phone number is registered before showing a PIN screen. The server trusted the phone number the app sent rather than checking it against the logged-in user, so the author could make the app show a PIN setup screen for a different number. In the end the author says this did not actually let them control the other account.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.