Skip to content
IDOR Write-up Advanced

Beyond the Cipher: Breaking Client-Side Encryption and Uncovering

The Android app encrypted API traffic with AES-256-CBC but embedded the key and IV in the binary, and the backend failed to enforce authentication and object-level authorization. An attacker could extract the keys, decrypt traffic, and access other users' financial and personal data by changing a client-supplied user ID.

HR Follow

Published on medium.com

When an enterprise mobile app ships with AES-256 encryption wrapped around every API request and response, there’s a natural instinct — among developers, product owners, and sometimes security teams — to treat it as a meaningful security control. The logic seems airtight: intercept the traffic, you get ciphertext.

HR, 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 backend trusted client-side controls (encryption, SSL pinning, root detection) and failed to enforce authentication and authorization server-side, while the encryption key and IV were hardcoded in the app binary.

Impact

An attacker could access financial records, employee data, dealer hierarchies, and personal information of all users, and some endpoints were accessible without any authentication.

What the attacker needed

Android device or emulator; Ability to install the app; Frida and Burp Suite; Network access to the API

The fix

The report states the issues were fully remediated, but does not detail the fix; generally, authentication and authorization should be enforced server-side, and secrets should not be hardcoded in the client.

How it was found

  1. Obtain the APK from the Play Store or via ADB.
  2. Extract the AES key and IV from the Flutter binary using static string extraction.
  3. Bypass root detection and SSL pinning using Frida runtime instrumentation.
  4. Deploy a custom Burp Suite extension to transparently decrypt and re-encrypt traffic.
  5. Enumerate endpoints, including those missing authentication enforcement.
  6. Exploit BOLA by enumerating sequential LoginUserId values across data endpoints.

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 scrambled its network messages with a secret code, but the code was written directly into the app, so anyone could find it. Once decoded, the server did not check who was asking for data, so changing a number let you 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.