Skip to content
IDOR Write-up Beginner

My First Medium Write-Up: Critical IDOR in a City’s Public Tra

A profile update request used a customer number parameter that identified the account being edited, and the server did not check that the account belonged to the caller. By changing that value, an attacker could modify other users' profile details such as name, address and phone number, and could automate this to mass-update many accounts.

Amarendra Prakash Follow

Published on medium.com

As a passionate bug bounty hunter, this particular vulnerability stood out not only for its technical value but for the real-world disruption it could have caused if exploited maliciously. The vulnerability was discovered on a foreign country’s public transport system website — used by thousands (if not lakhs) of…

Amarendra Prakash, 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 profile update endpoint used a client-supplied customer number to pick the record to modify without verifying that the record belonged to the authenticated user.

Impact

An attacker could change other users' personal details, including emergency contacts, and could automate this to affect all registered users, potentially disrupting the city transport service; the text also calls the bug unauthenticated, which conflicts with its own description of being logged in.

What the attacker needed

A registered account on the site; ability to intercept requests

The fix

The platform's security team acknowledged the issue and fixed it, though the text does not describe the fix itself.

How it was found

  1. Log in to the platform with an own account and open the profile section.
  2. Intercept the profile update request in Burp Suite and note the customer number parameter.
  3. Replace the customer number with a different value and resend the request.
  4. Create a second test account and use Repeater and Intruder to automate testing of the id parameter.
  5. Observe that profile data of other users can be updated in bulk.

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.

When you edit your profile, the site sends a request that names which account to change. Here that name was a simple customer number, and the server trusted whatever number was sent. So anyone logged in could swap in someone else's number and edit that person's details instead of their own.

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.