Internet Bank Account Takeover Of 1m Users Without User Interaction
The bank's OAuth/OpenID Connect password reset flow issued an access token before verifying the OTP sent to the user's phone. An attacker could enter a victim's national ID with an unregistered mobile number and still receive a valid token, allowing takeover of over a million accounts.
Published on infosecwriteups.com
OAuth is an open protocol to allow authorization in a simple and standard method from web, mobile and desktop applications. OAuth is an open standard for access delegation, commonly used as a way for Internet users to grant websites or applications access to their information on other websites but without giving them…
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
Impact
An attacker could take over any account whose national ID was known, potentially affecting over one million users, without user interaction.
What the attacker needed
Victim's national ID; no user interaction
The fix
The vulnerability was patched; the flow should not issue an access token until the OTP has been verified.
How it was found
- Start the bank's login and click 'Forgot your password?'.
- Enter a victim's national ID and a mobile number not registered to that account.
- Observe the error 'mobile and username are not matched'.
- Click the log in button again and receive a 302 redirect with an access token.
- Use the token to access the victim's internet banking 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 write-up has not been written yet. The Original tab links to the source.
When you reset a password, the site should only log you in after you prove you own the phone number by entering a one-time code. Here, the bank gave out a login token before that check, so anyone who knew a person's national ID could get into their account without the code.
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.