Skip to content
IDOR Write-up Intermediate

The Looming Threat: How an IDOR Vulnerability Could Have Exposed Millions of Merchants Details.

An API endpoint that returned merchant details based on a QR code identifier did not check whether the caller was authorised to view that merchant. An attacker could change the identifier to another merchant's code and retrieve their phone number, email, address and other confidential information.

cy3erbeast Follow

Published on medium.com

Hey there, readers! It’s Rahul, aka “Cy3erBeast.” Today, we’re diving into a critical topic: IDOR vulnerability.

Rahul, 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 API trusted the QR code identifier supplied by the client and returned merchant details without verifying that the authenticated user was entitled to that merchant's data.

Impact

An attacker could retrieve sensitive details of registered merchants, including phone number, email and residence address, by changing the QR code identifier.

What the attacker needed

Android app with SSL pinning bypassed; A valid merchant QR code identifier; Ability to intercept and modify API requests

The fix

The bug was fixed after about 20 days and the author retested to confirm.

How it was found

  1. Bypass the Android app's SSL verification to inspect API traffic.
  2. Explore the app and capture API requests.
  3. Notice a GET request in the QR Details section that fetches details by QR code.
  4. Reproduce the request with an intercepting proxy and send it to Repeater.
  5. Resend the request to check for token validation.
  6. Change the QR code parameter value and observe another merchant's details in the response.

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.

An IDOR is when a website or app uses a simple identifier, like a number or code, to decide which record to show, but forgets to check that the person asking is allowed to see that record. Here, the app fetched merchant details from a QR code value without verifying ownership, so changing the code returned someone else's private data.

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.