Skip to content
IDOR Write-up Advanced

How I Bypassed VPN Detection, Broke Client-Side Crypto and Found Multiple IDORS

The mobile wallet app used client-side encryption with ephemeral AES keys and trusted client-supplied account identifiers. An attacker with a rooted device could bypass VPN and SSL pinning checks, capture the AES keys, decrypt traffic, and change the account_mid parameter to access other users' transaction histories and perform actions on their accounts.

wajidareeb Follow

Published on medium.com

I ran a security test on a popular local mobile wallet Android App [REDACTED APP]. Using a rooted virtual Android, runtime hooks, and Flutter reversing tools, I bypassed SSL pinning and VPN checks, captured ephemeral AES keys/IVs with Frida, decrypted the app’s traffic, and discovered several business-logic IDORs that…

Wajid Ahadpoor, 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 server trusted client-supplied account identifiers without proper authorization checks, and the client-side encryption keys were accessible to an attacker who controls the device.

Impact

An attacker could access other users' transaction histories, potentially initiate fraudulent transfers, and freeze or unfreeze other users' cards, though a 4-digit PIN was required for transfers and server-side checks were weak.

What the attacker needed

Rooted or virtual Android device; Magisk modules to bypass checks; Frida and reversing tools; interception proxy

The fix

The issues were fixed within two weeks after being reported privately.

How it was found

  1. Set up a rooted or virtual Android environment with Magisk modules to bypass VPN and SSL pinning checks.
  2. Use Radare2 to reverse the Flutter app and locate the crypto functions genHexStr and decByAESArg.
  3. Write Frida hooks to intercept the AES key and IV right after generation.
  4. Capture and decrypt the app's network traffic using the intercepted keys.
  5. Modify the account_mid parameter in decrypted requests to reference another user's account.
  6. Re-encrypt the modified request with the same AES key/IV and replay it to the server.

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.

The app tried to protect data by encrypting it on the phone, but the keys were created and stored on the phone itself. Someone with full control of the phone could grab those keys and read the secret messages. Also, the server did not check whether the person asking for account data was allowed to see it, so changing a number in the request let them see other people's information.

What is IDOR?

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.