Skip to content
IDOR Write-up Beginner

How I got Critical IDOR in one of India’s Best Known Food Delivery Website

An endpoint that returned restaurant registration details used a sequential numeric identifier, so changing the number exposed other restaurants' information. An attacker could enumerate identifiers to read all registered restaurants' details.

bajajkrrish11 Follow

Published on medium.com

Today I am going to share how I got Critical IDOR on Swiggy BBP. This is my first bug bounty write-up so, pardon me for my mistakes.

Krrish Bajaj, 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 endpoint used a predictable numeric identifier and did not check that the logged-in user owned the requested restaurant record.

Impact

An attacker could read the details of all registered restaurants, not just their own.

What the attacker needed

A mobile number for OTP registration; an incomplete restaurant application

The fix

The report says the issue was fixed by the security team about five days after being reported.

How it was found

  1. Register and log in with a mobile number and OTP.
  2. Start a restaurant application and leave it incomplete.
  3. Re-login and open the incomplete application to find the endpoint with a numeric ID.
  4. Capture the request and send it to an intruder tool.
  5. Brute-force the numeric identifier and observe other restaurants' details in responses.

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.

A web address ended with a simple number that identified a restaurant's application. By changing that number, the person could see other restaurants' private details instead of only their own. This is called an IDOR: the site checked that you were logged in but not that the record belonged to you.

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.