Skip to content
IDOR Write-up Beginner

From Zero to Security Researcher: How I Found a Critical IDOR Vulnerability at Swiggy.

An invoice download endpoint used a token parameter that did not verify the requesting user's ownership of the invoice, allowing access to other users' invoices. An attacker could download PDF invoices containing delivery addresses, payment information, and order details for other users.

binuconcept_22420 Follow

Published on medium.com

Linkedin Profile: https://in.linkedin.com/in/binuconcept

Binu B, 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 invoice endpoint lacked an authorization check to confirm the authenticated user owned the requested invoice.

Impact

An attacker could access complete order history, build profiles, map delivery patterns, and extract payment information for millions of users, potentially automated for mass data theft.

What the attacker needed

A Swiggy user account; access to the web application; knowledge of another user's invoice token

The fix

The vulnerability was fixed by adding proper authentication checks to ensure users could only download invoices they own.

How it was found

  1. Navigate to the order history section of the web application.
  2. Locate an invoice download link that includes a token parameter.
  3. Replace the token with a different value (e.g., from another order) and request the invoice.
  4. Observe that the response contains another user's invoice PDF with sensitive information.

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 (Insecure Direct Object Reference) happens when a website uses a simple identifier, like an order number or token, to fetch a file but forgets to check that the person asking actually owns that file. Here, changing the token in an invoice link let the researcher see someone else's invoice. This is like a hotel giving you a room key that opens any door if you just try a different room number.

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.