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.
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…
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
- Set up a rooted or virtual Android environment with Magisk modules to bypass VPN and SSL pinning checks.
- Use Radare2 to reverse the Flutter app and locate the crypto functions genHexStr and decByAESArg.
- Write Frida hooks to intercept the AES key and IV right after generation.
- Capture and decrypt the app's network traffic using the intercepted keys.
- Modify the account_mid parameter in decrypted requests to reference another user's account.
- 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.