Skip to content
IDOR Write-up Beginner

Hacking A Company And Able To Access 1 Lakh Customers Personal Details

An API endpoint that returned user details accepted a numeric user identifier without checking that the requester owned that account. By changing the identifier, an attacker could retrieve the personal details of any customer, including phone numbers, addresses and emails.

Ajay Sharma Follow

Published on infosecwriteups.com

This is My First Blog on Bug Bounty and I am really excited about it at the time of writing this.

Ajay Sharma, on infosecwriteups.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 looked up a user by the identifier supplied in the URL and returned the record without verifying that the authenticated user was that same user.

Impact

An attacker could read the phone numbers, addresses and emails of around one lakh customers.

What the attacker needed

A free user account; ability to intercept requests

How it was found

  1. Sign up as a normal user on the main domain.
  2. Inspect requests in Burp and find the user details endpoint.
  3. Change the numeric identifier in the endpoint to another value.
  4. Observe that the response contains another customer's personal details.

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 website often uses a number in the address to say which record to show, such as a user profile. If the site does not check that the person asking is allowed to see that record, anyone can change the number and read someone else's data. This is called an insecure direct object reference, or IDOR.

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.